108#define LEDS_ARCH_L1_PORT GPIO_D_NUM
109#define LEDS_ARCH_L1_PIN 4
110#define LEDS_ARCH_L2_PORT GPIO_B_NUM
111#define LEDS_ARCH_L2_PIN 7
112#define LEDS_ARCH_L3_PORT GPIO_B_NUM
113#define LEDS_ARCH_L3_PIN 6
115#define LEDS_CONF_RED 1
116#define LEDS_CONF_GREEN 2
117#define LEDS_CONF_BLUE 4
119#define LEDS_CONF_COUNT 3
127#ifdef USB_PULLUP_PORT
128#undef USB_PULLUP_PORT
153#define UART0_RX_PORT GPIO_A_NUM
154#define UART0_RX_PIN 0
155#define UART0_TX_PORT GPIO_A_NUM
156#define UART0_TX_PIN 1
158#define UART1_RX_PORT GPIO_C_NUM
159#define UART1_RX_PIN 1
160#define UART1_TX_PORT GPIO_C_NUM
161#define UART1_TX_PIN 0
162#define UART1_CTS_PORT (-1)
163#define UART1_CTS_PIN (-1)
164#define UART1_RTS_PORT (-1)
165#define UART1_RTS_PIN (-1)
211#define ADC_SENSORS_PORT GPIO_A_NUM
213#ifndef ADC_SENSORS_CONF_ADC1_PIN
214#define ADC_SENSORS_ADC1_PIN 5
216#if ((ADC_SENSORS_CONF_ADC1_PIN != -1) && (ADC_SENSORS_CONF_ADC1_PIN != 5))
217#error "ADC1 channel should be mapped to PA5 or disabled with -1"
219#define ADC_SENSORS_ADC1_PIN ADC_SENSORS_CONF_ADC1_PIN
223#ifndef ADC_SENSORS_CONF_ADC3_PIN
224#define ADC_SENSORS_ADC3_PIN 2
226#if ((ADC_SENSORS_CONF_ADC3_PIN != -1) && (ADC_SENSORS_CONF_ADC3_PIN != 2))
227#error "ADC3 channel should be mapped to PA2 or disabled with -1"
229#define ADC_SENSORS_ADC3_PIN ADC_SENSORS_CONF_ADC3_PIN
233#ifndef ADC_SENSORS_CONF_ADC2_PIN
234#define ADC_SENSORS_ADC2_PIN (-1)
236#define ADC_SENSORS_ADC2_PIN 4
239#ifndef ADC_SENSORS_CONF_ADC4_PIN
240#define ADC_SENSORS_ADC4_PIN (-1)
242#define ADC_SENSORS_ADC4_PIN 6
245#ifndef ADC_SENSORS_CONF_ADC5_PIN
246#define ADC_SENSORS_ADC5_PIN (-1)
248#define ADC_SENSORS_ADC5_PIN 7
251#ifndef ADC_SENSORS_CONF_ADC6_PIN
252#define ADC_SENSORS_ADC6_PIN (-1)
254#define ADC_SENSORS_ADC6_PIN 3
257#ifndef ADC_SENSORS_CONF_MAX
258#define ADC_SENSORS_MAX 2
260#define ADC_SENSORS_MAX ADC_SENSORS_CONF_MAX
281#define BUTTON_USER_PORT GPIO_A_NUM
282#define BUTTON_USER_PIN 3
283#define BUTTON_USER_VECTOR GPIO_A_IRQn
288#ifdef PLATFORM_CONF_WITH_BUTTON
289#if (PLATFORM_CONF_WITH_BUTTON && (ADC_SENSORS_ADC6_PIN == 3))
290#error "The ADC6 (PA3) and user button cannot be enabled at the same time"
292#define PLATFORM_HAS_BUTTON (PLATFORM_CONF_WITH_BUTTON && \
293 !(ADC_SENSORS_ADC6_PIN == 3))
296#define PLATFORM_HAS_BUTTON !(ADC_SENSORS_ADC6_PIN == 3)
309#define SPI0_CLK_PORT GPIO_B_NUM
310#define SPI0_CLK_PIN 2
311#define SPI0_TX_PORT GPIO_B_NUM
313#define SPI0_RX_PORT GPIO_B_NUM
325#define SPI1_CLK_PORT GPIO_C_NUM
326#define SPI1_CLK_PIN 4
327#define SPI1_TX_PORT GPIO_C_NUM
329#define SPI1_RX_PORT GPIO_C_NUM
344#define I2C_SCL_PORT GPIO_C_NUM
346#define I2C_SDA_PORT GPIO_C_NUM
348#define I2C_INT_PORT GPIO_D_NUM
350#define I2C_INT_VECTOR GPIO_D_IRQn
371#define ANTENNA_RF_SW_PORT GPIO_D_NUM
372#define ANTENNA_RF_SW_PIN 2
383#ifndef REMOTE_DUAL_RF_ENABLED
384#define REMOTE_DUAL_RF_ENABLED 0
396#define CC1200_SPI_INSTANCE 0
397#define CC1200_SPI_SCLK_PORT SPI0_CLK_PORT
398#define CC1200_SPI_SCLK_PIN SPI0_CLK_PIN
399#define CC1200_SPI_MOSI_PORT SPI0_TX_PORT
400#define CC1200_SPI_MOSI_PIN SPI0_TX_PIN
401#define CC1200_SPI_MISO_PORT SPI0_RX_PORT
402#define CC1200_SPI_MISO_PIN SPI0_RX_PIN
403#define CC1200_SPI_CSN_PORT GPIO_B_NUM
404#define CC1200_SPI_CSN_PIN 5
405#define CC1200_GDO0_PORT GPIO_B_NUM
406#define CC1200_GDO0_PIN 4
407#define CC1200_GDO2_PORT GPIO_B_NUM
408#define CC1200_GDO2_PIN 0
409#define CC1200_RESET_PORT GPIO_C_NUM
410#define CC1200_RESET_PIN 7
411#define CC1200_GPIOx_VECTOR GPIO_B_IRQn
425#define USD_SPI_INSTANCE 1
426#define USD_CLK_PORT SPI1_CLK_PORT
427#define USD_CLK_PIN SPI1_CLK_PIN
428#define USD_MOSI_PORT SPI1_TX_PORT
429#define USD_MOSI_PIN SPI1_TX_PIN
430#define USD_MISO_PORT SPI1_RX_PORT
431#define USD_MISO_PIN SPI1_RX_PIN
432#define USD_CSN_PORT GPIO_A_NUM
434#define USD_SEL_PORT GPIO_A_NUM
456#define PM_ENABLE_PORT GPIO_D_NUM
457#define PM_ENABLE_PIN 1
474#define PLATFORM_HAS_RTC 1
475#define RTC_SDA_PORT I2C_SDA_PORT
476#define RTC_SDA_PIN I2C_SDA_PIN
477#define RTC_SCL_PORT I2C_SCL_PORT
478#define RTC_SCL_PIN I2C_SCL_PIN
479#define RTC_INT1_PORT GPIO_D_NUM
480#define RTC_INT1_PIN 3
481#define RTC_INT1_VECTOR GPIO_D_IRQn
497#define EXT_WDT_PORT GPIO_D_NUM
505#define BOARD_STRING "Zolertia RE-Mote revision B platform"
Header file with register and macro declarations for the cc2538 GPIO module.
Header file for the ARM Nested Vectored Interrupt Controller.