arduino-audio-tools
Loading...
Searching...
No Matches
zephyr.h
Go to the documentation of this file.
1#pragma once
2
3
4#include <zephyr/sys/util.h>
5
6#define IS_ZEPHYR
7#define NO_INPLACE_INIT_SUPPORT
8#define USE_TIMER
9#define USE_PWM
10//#define USE_ZEPHYR_LOGGER
11//#define USE_TYPETRAITS
12
13#if defined(CONFIG_I2S)
14# define USE_I2S
15#endif
16
17#if defined(CONFIG_DAC) || defined(CONFIG_ADC)
18# define USE_ANALOG
19#endif
20
21#if IS_ENABLED(CONFIG_DAC)
22# define USE_ANALOG_DAC
23#endif
24
25#if IS_ENABLED(CONFIG_ADC)
26# define USE_ANALOG_ADC
27#endif
28
29// Enable PSRAM allocator if the external memory heap is available
30#if defined(CONFIG_HEAP_MEM_POOL_SIZE) && CONFIG_HEAP_MEM_POOL_SIZE > 0
31# define USE_PSRAM
32#endif
33
34// Enable WiFi support if networking is enabled
35#if defined(CONFIG_NETWORKING)
36# define USE_WIFI
37#endif