scheduler_types.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
22 #ifndef SCHEDULER_TYPES_H
23 #define SCHEDULER_TYPES_H
24 
25 #include "opendefs.h"
26 #include "scheduler.h"
27 #include "event/callback.h"
28 #include "memarray.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
37 typedef struct {
38  event_callback_t task_buff[TASK_LIST_DEPTH];
41 
42 #if SCHEDULER_DEBUG_ENABLE
43 
46 typedef struct {
47  uint8_t numTasksCur;
48  uint8_t numTasksMax;
49 } scheduler_dbg_t;
50 #endif
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif /* SCHEDULER_TYPES_H */
memarray_t
Memory pool.
Definition: memarray.h:31
callback.h
Provides a callback-with-argument event type.
event_callback_t
Callback Event structure definition.
Definition: callback.h:48
scheduler_vars_t::memarray
memarray_t memarray
Memarray management.
Definition: scheduler_types.h:39
scheduler_vars_t
OpenWSN scheduler variables structure.
Definition: scheduler_types.h:37