XF Test Bench 3.3

xf-config.h
1#ifndef XF_CONFIG_H
2#define XF_CONFIG_H
3
4#include "config/xf-port-config.h"
5
6#if (PORT_IDF_QT != 0)
7 // Defines to set to use the IDF Qt port
8 #define USE_XF_COMMON_TIMEOUTMANAGER_CLASS 1
9 #define USE_XF_COMMON_DISPATCHER_CLASS 1
10 #define USE_XF_IDF_QT_XF_CLASS 1
11 #define USE_XF_IDF_QT_EVENT_QUEUE_CLASS 1
12 #define USE_XF_IDF_QT_MUTEX_CLASS 1
13
14 #include "idf-qt/eventqueue.h"
15#endif // PORT_IDF_QT
16
17#if (PORT_IDF_STM32 != 0)
18 // Defines to set to use the IDF STM32 port
19 #define USE_XF_COMMON_TIMEOUTMANAGER_CLASS 1
20 #define USE_XF_COMMON_DISPATCHER_CLASS 1
21 #define USE_XF_IDF_STM32_XF_CLASS 1
22 #define USE_XF_IDF_STM32_EVENT_QUEUE_CLASS 1
23 #define USE_XF_IDF_STM32_MUTEX_CLASS 1
24
25 #include "idf-stm32/eventqueue.h"
26#endif // PORT_IDF_STM32
27
28#if (PORT_ACTIVE_QT != 0)
29
30 // Take the resource factory. Must provide active dispatchers!
31 #define USE_XF_PORT_ACTIVE_QT_RESOURCE_FACTORY_IMPLEMENTATION 1
32
33 // Add classes from 'default-qt' port package
34 #define USE_XF_CLASS_DEFAULT_QT_IMPLEMENTATION 1
35 #define USE_XF_PORT_FUNCTIONS_DEFAULT_QT_IMPLEMENTATION 1
36 #define USE_XF_EVENT_QUEUE_DEFAULT_QT_IMPLEMENTATION 1
37 #define USE_XF_MUTEX_DEFAULT_QT_IMPLEMENTATION 1
38 #define USE_XF_THREAD_DEFAULT_QT_IMPLEMENTATION 1
39
40 // ... and the remaining classes from the default port package.
41 #define USE_XF_DEFAULT_IMPLEMENTATION 0
42 #define USE_XF_RESOURCE_FACTORY_DEFAULT_IMPLEMENTATION 0
43 #define USE_XF_TIMEOUTMANAGER_DEFAULT_IMPLEMENTATION 1
44 #define USE_XF_DISPATCHER_DEFAULT_IMPLEMENTATION 0
45 #define USE_XF_DISPATCHER_ACTIVE_DEFAULT_IMPLEMENTATION 1
46
47 #include "default-qt/eventqueue-default.h"
48#ifdef __cplusplus
49 // Force to take the XFEventQueueDefault implementation for the event queue
50 using XFEventQueue = XFEventQueueDefault;
51#endif // __cplusplus
52#endif // PORT_ACTIVE_QT
53
54#endif // XF_CONFIG_H