µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os-hooks.h
Go to the documentation of this file.
1/*
2 * This file is part of the µOS++ project (https://micro-os-plus.github.io/).
3 * Copyright (c) 2016-2025 Liviu Ionescu. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software
6 * for any purpose is hereby granted, under the terms of the MIT license.
7 *
8 * If a copy of the license was not distributed with this file, it can
9 * be obtained from https://opensource.org/licenses/mit.
10 */
11
12#ifndef CMSIS_PLUS_RTOS_OS_HOOKS_H_
13#define CMSIS_PLUS_RTOS_OS_HOOKS_H_
14
15#include <stddef.h>
16#include <stdbool.h>
17
18// ----------------------------------------------------------------------------
19
20#if defined(__cplusplus)
21extern "C"
22{
23#endif /* __cplusplus */
24
35#pragma GCC diagnostic push
36#if defined(__clang__)
37#pragma clang diagnostic ignored "-Wreserved-identifier"
38#endif
39#pragma GCC diagnostic ignored "-Wredundant-decls"
47 void __attribute__ ((noreturn))
48 _start (void);
49#pragma GCC diagnostic pop
50
58 void
60
68 void
70
78 void
80 size_t heap_size_bytes);
81
87 void
88 os_startup_initialize_args (int* p_argc, char*** p_argv);
89
97 void
99
116 void
118
125 void __attribute__ ((noreturn))
126 os_terminate (int code);
127
144 bool
146
154 void
156
164 void
166
176#define os_initialize_hardware_early os_startup_initialize_hardware_early
177#define os_initialize_hardware os_startup_initialize_hardware
178#define os_initialize_args os_startup_initialize_args
179
188#if defined(__cplusplus)
189}
190#endif /* __cplusplus */
191
192#endif /* CMSIS_PLUS_RTOS_OS_HOOKS_H_ */
void os_startup_create_thread_idle(void)
Create the idle thread.
void os_startup_initialize_free_store(void *heap_address, size_t heap_size_bytes)
Initialise free store.
void os_startup_initialize_hardware_early(void)
Initialise hardware early.
void os_terminate(int code)
Terminate the application. There is no more life after this.
void os_terminate_goodbye(void)
Display statistics and say goodbye before terminating.
Definition os-main.cpp:194
void os_rtos_application_out_of_memory_hook(void)
Hook to handle out of memory in the application free store.
void _start(void)
The standard C application entry point.
Definition startup.cpp:241
void os_startup_initialize_args(int *p_argc, char ***p_argv)
Initialise arguments.
Definition startup.cpp:406
bool os_rtos_idle_enter_power_saving_mode_hook(void)
Hook to enter a power saving mode.
Definition os-idle.cpp:57
void os_startup_initialize_hardware(void)
Initialise hardware.
void os_rtos_system_out_of_memory_hook(void)
Hook to handle out of memory in the RTOS dynamic memory.