agileRTOS (zrtos)  Version 0.8.0 (ghostbuster)
zrtos.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 ykat UG (haftungsbeschraenkt) - All Rights Reserved
3  *
4  * Permission for non-commercial use is hereby granted,
5  * free of charge, without warranty of any kind.
6  */
7 #ifndef ZRTOS_H
8 #define ZRTOS_H
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 
14 #include <zrtos/debug.h>
15 #include <zrtos/arch.h>
16 #include <zrtos/board.h>
17 
18 
19 #ifdef ZRTOS_VHEAP_TASK_SCHEDULER__CFG_ENABLED
20 
21 # define ZRTOS__DO_NOT_DISTURB(code) \
22  ZRTOS_VHEAP_TASK_SCHEDULER__DO_NOT_DISTURB(code)
23 
24 # define ZRTOS__DO_NOT_DISTURB_EX(is_locked,code) \
25  ZRTOS_VHEAP_TASK_SCHEDULER__DO_NOT_DISTURB_EX(is_locked,code)
26 
27 #else
28 
29 # define ZRTOS__DO_NOT_DISTURB(code) \
30  ZRTOS_ARCH__DO_NOT_DISTURB(code)
31 
32 # define ZRTOS__DO_NOT_DISTURB_EX(is_locked,code) \
33  ZRTOS_ARCH__DO_NOT_DISTURB_EX(is_locked,code)
34 
35 #endif
36 
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 #endif