Analog Devices Wi-Fi Software Reference Manual  Release 1.0.0
adi_wifi_config.h
Go to the documentation of this file.
1 
48 /*****************************************************************************/
49 
50 
51 #ifndef ADI_WIFI_CONFIG_H_
52 #define ADI_WIFI_CONFIG_H_
53 
54 
55 #include <drivers/tmr/adi_tmr.h>
57 
68 /*********************************** Wi-Fi Module Configuration ***************************************/
69 
78 #define ADI_WIFI_TAL_PROTOCOL_CFG (1u)
79 
80 #if (ADI_WIFI_TAL_PROTOCOL_CFG == 1u)
81 
87 #define ADI_UART_DEVICE_NUM_CFG (0u)
88 #elif
89 
95 #define ADI_SPI_DEVICE_NUM_CFG (2u)
96 #endif
97 
98 /***************************************** NoOS Framework Configuration *********************************************/
99 
101 #define ADI_WIFI_NOOS_GP_TIMER_CFG (ADI_TMR_DEVICE_GP0)
102 
104 #define ADI_WIFI_BROKER_CONNECTION_GP_TIMER_CFG (ADI_TMR_DEVICE_GP1)
105 /* @} */
106 
107 /* Macro validation */
108 #if (ADI_WIFI_NOOS_GP_TIMER != ADI_TMR_DEVICE_GP0) && (ADI_WIFI_NOOS_GP_TIMER != ADI_TMR_DEVICE_GP1) && (ADI_WIFI_NOOS_GP_TIMER != ADI_TMR_DEVICE_GP2)
109 #error "Please choose a valid General Purpose Timer for adi_wifi_noos.c to use"
110 #elif (ADI_WIFI_TAL_PROTOCOL_CFG != 1u)
111 #error "Only UART is supported at the moment."
112 #elif (ADI_WIFI_BROKER_CONNECTION_GP_TIMER_CFG != ADI_TMR_DEVICE_GP0) && (ADI_WIFI_BROKER_CONNECTION_GP_TIMER_CFG != ADI_TMR_DEVICE_GP1) && (ADI_WIFI_BROKER_CONNECTION_GP_TIMER_CFG != ADI_TMR_DEVICE_GP2)
113 #error "Please choose a valid General Purpose Timer for adi_wifi_noos.c to use"
114 #endif
115 
116 #endif /* ADI_WIFI_CONFIG_H_ */
: Common definitions shared accross BLE sources