µ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++ distribution.
3 * (https://github.com/micro-os-plus)
4 * Copyright (c) 2016-2023 Liviu Ionescu. All rights reserved.
5 *
6 * Permission to use, copy, modify, and/or distribute this software
7 * for any purpose is hereby granted, under the terms of the MIT license.
8 *
9 * If a copy of the license was not distributed with this file, it can
10 * be obtained from https://opensource.org/licenses/mit/.
11 */
12
13#ifndef CMSIS_PLUS_RTOS_OS_HOOKS_H_
14#define CMSIS_PLUS_RTOS_OS_HOOKS_H_
15
16#include <stddef.h>
17#include <stdbool.h>
18
19// ----------------------------------------------------------------------------
20
21#if defined(__cplusplus)
22extern "C"
23{
24#endif /* __cplusplus */
25
36#pragma GCC diagnostic push
37#if defined(__clang__)
38#pragma clang diagnostic ignored "-Wreserved-identifier"
39#endif
40#pragma GCC diagnostic ignored "-Wredundant-decls"
48 void
49 __attribute__ ((noreturn))
50 _start (void);
51#pragma GCC diagnostic pop
52
60 void
62
70 void
72
80 void
81 os_startup_initialize_free_store (void* heap_address, size_t heap_size_bytes);
82
88 void
89 os_startup_initialize_args (int* p_argc, char*** p_argv);
90
98 void
100
117 void
119
126 void
127 __attribute__ ((noreturn))
128 os_terminate (int code);
129
146 bool
148
156 void
158
166 void
168
178#define os_initialize_hardware_early os_startup_initialize_hardware_early
179#define os_initialize_hardware os_startup_initialize_hardware
180#define os_initialize_args os_startup_initialize_args
181
190#if defined(__cplusplus)
191}
192#endif /* __cplusplus */
193
194#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:186
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:250
void os_startup_initialize_args(int *p_argc, char ***p_argv)
Initialise arguments.
Definition startup.cpp:417
bool os_rtos_idle_enter_power_saving_mode_hook(void)
Hook to enter a power saving mode.
Definition os-idle.cpp:59
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.