uwb_core.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 
19 #ifndef UWB_CORE_H
20 #define UWB_CORE_H
21 
22 #include <stdint.h>
23 #include "event.h"
24 #if IS_USED(MODULE_UWB_CORE_EVENT_THREAD)
25 #include "event/thread.h"
26 #endif
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
35 #ifndef UWB_CORE_EVENT_THREAD_QUEUE
36 #define UWB_CORE_EVENT_THREAD_QUEUE EVENT_PRIO_MEDIUM
37 #endif
38 
42 #ifndef UWB_CORE_PRIO
43 #define UWB_CORE_PRIO (THREAD_PRIORITY_MAIN - 2)
44 #endif
45 
49 #ifndef UWB_CORE_STACKSIZE
50 #define UWB_CORE_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
51 #endif
52 
56 void uwb_core_riot_init(void);
57 
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* UWB_CORE_H */
event queue structure
Definition: event.h:156
Provides utility functions for event handler threads.
void uwb_core_riot_init(void)
Setup and run uwb-core thread.
event_queue_t * uwb_core_get_eventq(void)
Retrieves the default event queue.