ADuCM302x Device Drivers API Reference Manual
Release 3.1.2.0
adi_global_config.h
1
46
#ifndef ADI_GLOBAL_CONFIG_H
47
#define ADI_GLOBAL_CONFIG_H
48
68
#define ADI_CFG_RTOS_NO_OS (1)
69
70
#define ADI_CFG_RTOS_MICRIUM_III (2)
71
72
#define ADI_CFG_RTOS_FREERTOS (3)
73
74
#define ADI_CFG_RTOS_THREADX (4)
75
76
#define ADI_CFG_RTOS_MICRIUM_II (5)
77
87
#define ADI_CFG_RTOS ADI_CFG_RTOS_NO_OS
88
112
#if ((ADI_CFG_RTOS != ADI_CFG_RTOS_NO_OS))
113
#define ADI_CFG_ENTER_LOW_PWR_MODE_SUPPORT (0)
114
#else
115
#define ADI_CFG_ENTER_LOW_PWR_MODE_SUPPORT (1)
116
#endif
117
121
/*
122
** Verify the macro configuration
123
*/
124
125
#if ((ADI_CFG_RTOS != ADI_CFG_RTOS_NO_OS) && \
126
(ADI_CFG_RTOS != ADI_CFG_RTOS_MICRIUM_II) && \
127
(ADI_CFG_RTOS != ADI_CFG_RTOS_MICRIUM_III) && \
128
(ADI_CFG_RTOS != ADI_CFG_RTOS_THREADX) && \
129
(ADI_CFG_RTOS != ADI_CFG_RTOS_FREERTOS))
130
#error "ADI_CFG_RTOS macro wrongly configured"
131
#endif
/* ADI_CFG_RTOS verification */
132
133
#if ((ADI_CFG_ENTER_LOW_PWR_MODE_SUPPORT != 0) && \
134
(ADI_CFG_ENTER_LOW_PWR_MODE_SUPPORT != 1))
135
#error "ADI_CFG_ENTER_LOW_PWR_MODE_SUPPORT macro is wrongly configured"
136
#endif
137
138
#if ((ADI_CFG_ENTER_LOW_PWR_MODE_SUPPORT == 1) && (ADI_CFG_RTOS != ADI_CFG_RTOS_NO_OS))
139
#error "ADI_CFG_ENTER_LOW_PWR_MODE_SUPPORT cannot be set to 1 in multi-threaded applications"
140
#endif
141
145
#endif
/* ADI_GLOBAL_CONFIG_H */
Include
config
adi_global_config.h
Generated on Mon Aug 6 2018 21:48:22 for ADuCM302x Device Drivers API Reference Manual by
1.8.13