EZR32 Leopard Gecko Software Documentation  ezr32lg-doc-5.1.2
ezradiodrv_config.h
Go to the documentation of this file.
1 /***************************************************************************/
32 #ifndef __SILICON_LABS_EZRADIODRV_CONFIG_H__
33 #define __SILICON_LABS_EZRADIODRV_CONFIG_H__
34 
35 /***************************************************************************/
40  /***************************************************************************/
45 #define EZRADIODRV_COMM_CTS_RETRY 10000
47 
49 //#define EZRADIODRV_COMM_USE_GPIO1_FOR_CTS
50 
52 //#define EZRADIODRV_DISABLE_PTI
53 
56 //#define EZRADIODRV_SPI_4WIRE_MODE
57 
58 // ONly EZR32 devices support these macros by default, we need to add these for other
59 // devices. Uncomment & define all the following RF_* macros to support the EzRadio
60 // device on other EFM32 micros.
61 
62 //#define RF_USARTRF_LOCATION 1 /**< RF SPI-port (USART) location number. */
63 //#define RF_USARTRF_CS_PORT 3 /**< Bit banged RF SPI CS GPIO port no. */
64 //#define RF_USARTRF_CS_PIN 3 /**< Bit banged RF SPI CS GPIO pin number.*/
65 //#define RF_USARTRF_CLK_PORT 3 /**< RF SPI CLK GPIO port number. */
66 //#define RF_USARTRF_CLK_PIN 2 /**< RF SPI CLK GPIO pin number. */
67 //#define RF_USARTRF_MISO_PORT 3 /**< RF SPI MISO GPIO port number. */
68 //#define RF_USARTRF_MISO_PIN 1 /**< RF SPI MISO GPIO pin number. */
69 //#define RF_USARTRF_MOSI_PORT 3 /**< RF SPI MOSI GPIO port number. */
70 //#define RF_USARTRF_MOSI_PIN 0 /**< RF SPI MOSI GPIO pin number. */
71 //#define RF_INT_PORT 2 /**< RF interrupt GPIO port number. */
72 //#define RF_INT_PIN 0 /**< RF interrupt GPIO pin number. */
73 //#define RF_SDN_PORT 2 /**< RF SDN GPIO port number. */
74 //#define RF_SDN_PIN 3 /**< RF SDN GPIO pin number. */
75 
76 #if !(defined EZRADIODRV_DISABLE_PTI)
77 //#define RF_GPIO0_PORT 0 /**< RF GPIO0 GPIO port number. */
78 //#define RF_GPIO0_PIN 15 /**< RF GPIO0 GPIO pin number. */
79 //#define RF_GPIO1_PORT 4 /**< RF GPIO1 GPIO port number. */
80 //#define RF_GPIO1_PIN 14 /**< RF GPIO1 GPIO pin number. */
81 #endif
82 
86 #endif /* __SILICON_LABS_EZRADIODRV_CONFIG_H__ */