105#define LEDS_ARCH_L1_PORT GPIO_D_NUM
106#define LEDS_ARCH_L1_PIN 5
107#define LEDS_ARCH_L2_PORT GPIO_D_NUM
108#define LEDS_ARCH_L2_PIN 4
109#define LEDS_ARCH_L3_PORT GPIO_D_NUM
110#define LEDS_ARCH_L3_PIN 3
112#define LEDS_CONF_RED 1
113#define LEDS_CONF_GREEN 2
114#define LEDS_CONF_BLUE 4
116#define LEDS_CONF_COUNT 3
124#ifdef USB_PULLUP_PORT
125#undef USB_PULLUP_PORT
150#define UART0_RX_PORT GPIO_A_NUM
151#define UART0_RX_PIN 0
152#define UART0_TX_PORT GPIO_A_NUM
153#define UART0_TX_PIN 1
155#define UART1_RX_PORT GPIO_C_NUM
156#define UART1_RX_PIN 1
157#define UART1_TX_PORT GPIO_C_NUM
158#define UART1_TX_PIN 0
159#define UART1_CTS_PORT (-1)
160#define UART1_CTS_PIN (-1)
161#define UART1_RTS_PORT (-1)
162#define UART1_RTS_PIN (-1)
198#define ADC_SENSORS_PORT GPIO_A_NUM
200#ifndef ADC_SENSORS_CONF_ADC1_PIN
201#define ADC_SENSORS_ADC1_PIN 5
203#if ((ADC_SENSORS_CONF_ADC1_PIN != -1) && (ADC_SENSORS_CONF_ADC1_PIN != 5))
204#error "ADC1 channel should be mapped to PA5 or disabled with -1"
206#define ADC_SENSORS_ADC1_PIN ADC_SENSORS_CONF_ADC1_PIN
210#ifndef ADC_SENSORS_CONF_ADC3_PIN
211#define ADC_SENSORS_ADC3_PIN 2
213#if ((ADC_SENSORS_CONF_ADC3_PIN != -1) && (ADC_SENSORS_CONF_ADC3_PIN != 2))
214#error "ADC3 channel should be mapped to PA2 or disabled with -1"
216#define ADC_SENSORS_ADC3_PIN ADC_SENSORS_CONF_ADC3_PIN
220#ifndef ADC_SENSORS_CONF_ADC2_PIN
221#define ADC_SENSORS_ADC2_PIN (-1)
223#define ADC_SENSORS_ADC2_PIN 4
226#ifndef ADC_SENSORS_CONF_ADC4_PIN
227#define ADC_SENSORS_ADC4_PIN (-1)
229#define ADC_SENSORS_ADC4_PIN 6
232#ifndef ADC_SENSORS_CONF_ADC5_PIN
233#define ADC_SENSORS_ADC5_PIN (-1)
235#define ADC_SENSORS_ADC5_PIN 7
238#ifndef ADC_SENSORS_CONF_ADC6_PIN
239#define ADC_SENSORS_ADC6_PIN (-1)
241#define ADC_SENSORS_ADC6_PIN 3
244#ifndef ADC_SENSORS_CONF_MAX
245#define ADC_SENSORS_MAX 2
247#define ADC_SENSORS_MAX ADC_SENSORS_CONF_MAX
260#define BUTTON_USER_PORT GPIO_A_NUM
261#define BUTTON_USER_PIN 3
262#define BUTTON_USER_VECTOR GPIO_A_IRQn
267#ifdef PLATFORM_CONF_WITH_BUTTON
268#if (PLATFORM_CONF_WITH_BUTTON && (ADC_SENSORS_ADC6_PIN == 3))
269#error "The ADC6 (PA3) and user button cannot be enabled at the same time"
271#define PLATFORM_HAS_BUTTON (PLATFORM_CONF_WITH_BUTTON && \
272 !(ADC_SENSORS_ADC6_PIN == 3))
275#define PLATFORM_HAS_BUTTON !(ADC_SENSORS_ADC6_PIN == 3)
288#define SPI0_CLK_PORT GPIO_B_NUM
289#define SPI0_CLK_PIN 2
290#define SPI0_TX_PORT GPIO_B_NUM
292#define SPI0_RX_PORT GPIO_B_NUM
305#define SPI1_CLK_PORT GPIO_C_NUM
306#define SPI1_CLK_PIN 4
307#define SPI1_TX_PORT GPIO_C_NUM
309#define SPI1_RX_PORT GPIO_C_NUM
324#define I2C_SCL_PORT GPIO_C_NUM
326#define I2C_SDA_PORT GPIO_C_NUM
328#define I2C_INT_PORT GPIO_D_NUM
330#define I2C_INT_VECTOR GPIO_D_IRQn
351#define ANTENNA_RF_SW_PORT GPIO_D_NUM
352#define ANTENNA_RF_SW_PIN 2
363#ifndef REMOTE_DUAL_RF_ENABLED
364#define REMOTE_DUAL_RF_ENABLED 0
376#define CC1200_SPI_INSTANCE 0
377#define CC1200_SPI_SCLK_PORT SPI0_CLK_PORT
378#define CC1200_SPI_SCLK_PIN SPI0_CLK_PIN
379#define CC1200_SPI_MOSI_PORT SPI0_TX_PORT
380#define CC1200_SPI_MOSI_PIN SPI0_TX_PIN
381#define CC1200_SPI_MISO_PORT SPI0_RX_PORT
382#define CC1200_SPI_MISO_PIN SPI0_RX_PIN
383#define CC1200_SPI_CSN_PORT GPIO_B_NUM
384#define CC1200_SPI_CSN_PIN 5
385#define CC1200_GDO0_PORT GPIO_B_NUM
386#define CC1200_GDO0_PIN 4
387#define CC1200_GDO2_PORT GPIO_B_NUM
388#define CC1200_GDO2_PIN 0
389#define CC1200_RESET_PORT GPIO_C_NUM
390#define CC1200_RESET_PIN 7
391#define CC1200_GPIOx_VECTOR GPIO_B_IRQn
401#define USD_SPI_INSTANCE 1
402#define USD_CLK_PORT SPI1_CLK_PORT
403#define USD_CLK_PIN SPI1_CLK_PIN
404#define USD_MOSI_PORT SPI1_TX_PORT
405#define USD_MOSI_PIN SPI1_TX_PIN
406#define USD_MISO_PORT SPI1_RX_PORT
407#define USD_MISO_PIN SPI1_RX_PIN
408#define USD_CSN_PORT GPIO_A_NUM
410#define USD_SEL_PORT GPIO_A_NUM
432#define PM_DONE_PORT GPIO_D_NUM
434#define PM_CMD_PORT GPIO_D_NUM
451#define PLATFORM_HAS_RTC 1
452#define RTC_SDA_PORT I2C_SDA_PORT
453#define RTC_SDA_PIN I2C_SDA_PIN
454#define RTC_SCL_PORT I2C_SCL_PORT
455#define RTC_SCL_PIN I2C_SCL_PIN
456#define RTC_INT1_PORT GPIO_A_NUM
457#define RTC_INT1_PIN 4
458#define RTC_INT1_VECTOR GPIO_A_IRQn
475#define EXT_WDT_PORT GPIO_D_NUM
483#define BOARD_STRING "Zolertia RE-Mote revision A platform"
Header file with register and macro declarations for the cc2538 GPIO module.
Header file for the ARM Nested Vectored Interrupt Controller.