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 
9 #pragma once
10 
21 #include <stdint.h>
22 #include "event.h"
23 #if IS_USED(MODULE_UWB_CORE_EVENT_THREAD)
24 #include "event/thread.h"
25 #endif
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
34 #ifndef UWB_CORE_EVENT_THREAD_QUEUE
35 #define UWB_CORE_EVENT_THREAD_QUEUE EVENT_PRIO_MEDIUM
36 #endif
37 
41 #ifndef UWB_CORE_PRIO
42 #define UWB_CORE_PRIO (THREAD_PRIORITY_MAIN - 2)
43 #endif
44 
48 #ifndef UWB_CORE_STACKSIZE
49 #define UWB_CORE_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
50 #endif
51 
55 void uwb_core_riot_init(void);
56 
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
event queue structure
Definition: event.h:153
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.