diff --git a/boards/cc2538dk/board.c b/boards/cc2538dk/board.c index f0761d75e2..093d7e91a1 100644 --- a/boards/cc2538dk/board.c +++ b/boards/cc2538dk/board.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2014 Loci Controls Inc. + * 2016 Freie Universität Berlin * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level @@ -14,6 +15,9 @@ * @brief Board specific implementations for the CC2538DK board * * @author Ian Martin + * @author Hauke Petersen + * + * @} */ #include @@ -21,14 +25,6 @@ #include "board.h" #include "cpu.h" -static void led_init_helper(int gpio_num) { - gpio_software_control(gpio_num); - gpio_dir_output(gpio_num); - - /* Enable output without any internal pull resistors: */ - IOC_PXX_OVER[gpio_num] = IOC_OVERRIDE_OE; -} - /** * @brief Initialize the SmartRF06 board */ @@ -38,10 +34,8 @@ void board_init(void) cpu_init(); /* initialize the boards LEDs */ - led_init_helper(LED0_GPIO); - led_init_helper(LED1_GPIO); - led_init_helper(LED2_GPIO); - led_init_helper(LED3_GPIO); + gpio_init(LED0_PIN, GPIO_OUT); + gpio_init(LED1_PIN, GPIO_OUT); + gpio_init(LED2_PIN, GPIO_OUT); + gpio_init(LED3_PIN, GPIO_OUT); } - -/** @} */ diff --git a/boards/cc2538dk/include/board.h b/boards/cc2538dk/include/board.h index b0cbf7ac40..6bd13ac5d0 100644 --- a/boards/cc2538dk/include/board.h +++ b/boards/cc2538dk/include/board.h @@ -36,26 +36,27 @@ extern "C" { #define LED2_PIN GPIO_PIN(2, 2) #define LED3_PIN GPIO_PIN(2, 3) -#define LED0_GPIO GPIO_PC0 /**< red LED */ -#define LED1_GPIO GPIO_PC1 /**< yellow LED */ -#define LED2_GPIO GPIO_PC2 /**< green LED */ -#define LED3_GPIO GPIO_PC3 /**< orange LED */ +#define LED_PORT GPIO_C +#define LED0_BIT (1 << 0) /**< red LED */ +#define LED1_BIT (1 << 1) /**< yellow LED */ +#define LED2_BIT (1 << 2) /**< green LED */ +#define LED3_BIT (1 << 3) /**< orange LED */ -#define LED0_ON cc2538_gpio_set(LED0_GPIO) -#define LED0_OFF cc2538_gpio_clear(LED0_GPIO) -#define LED0_TOGGLE cc2538_gpio_toggle(LED0_GPIO) +#define LED0_ON (LED_PORT->DATA |= LED0_BIT) +#define LED0_OFF (LED_PORT->DATA &= ~LED0_BIT) +#define LED0_TOGGLE (LED_PORT->DATA ^= LED0_BIT) -#define LED1_ON cc2538_gpio_set(LED1_GPIO) -#define LED1_OFF cc2538_gpio_clear(LED1_GPIO) -#define LED1_TOGGLE cc2538_gpio_toggle(LED1_GPIO) +#define LED1_ON (LED_PORT->DATA |= LED1_BIT) +#define LED1_OFF (LED_PORT->DATA &= ~LED1_BIT) +#define LED1_TOGGLE (LED_PORT->DATA ^= LED1_BIT) -#define LED2_ON cc2538_gpio_set(LED2_GPIO) -#define LED2_OFF cc2538_gpio_clear(LED2_GPIO) -#define LED2_TOGGLE cc2538_gpio_toggle(LED2_GPIO) +#define LED2_ON (LED_PORT->DATA |= LED2_BIT) +#define LED2_OFF (LED_PORT->DATA &= ~LED2_BIT) +#define LED2_TOGGLE (LED_PORT->DATA ^= LED2_BIT) -#define LED3_ON cc2538_gpio_set(LED3_GPIO) -#define LED3_OFF cc2538_gpio_clear(LED3_GPIO) -#define LED3_TOGGLE cc2538_gpio_toggle(LED3_GPIO) +#define LED3_ON (LED_PORT->DATA |= LED3_BIT) +#define LED3_OFF (LED_PORT->DATA &= ~LED3_BIT) +#define LED3_TOGGLE (LED_PORT->DATA ^= LED3_BIT) /** @} */ /** diff --git a/boards/cc2538dk/include/periph_conf.h b/boards/cc2538dk/include/periph_conf.h index 2fa453802f..881ec9a158 100644 --- a/boards/cc2538dk/include/periph_conf.h +++ b/boards/cc2538dk/include/periph_conf.h @@ -119,7 +119,6 @@ static const i2c_conf_t i2c_config[I2C_NUMOF] = { #define SPI_NUMOF 1 #define SPI_0_EN 1 -#ifdef HAVE_PERIPH_SPI_CONF_T static const periph_spi_conf_t spi_config[SPI_NUMOF] = { { .dev = SSI0, @@ -129,82 +128,6 @@ static const periph_spi_conf_t spi_config[SPI_NUMOF] = { .cs_pin = GPIO_PD0, }, }; -#endif - -/** @} */ - -/** - * @name GPIO configuration - * @{ - */ -#define GPIO_IRQ_PRIO 1 - -#define GPIO_0_EN 1 -#define GPIO_1_EN 1 -#define GPIO_2_EN 1 -#define GPIO_3_EN 1 -#define GPIO_4_EN 1 -#define GPIO_5_EN 1 -#define GPIO_6_EN 1 -#define GPIO_7_EN 1 -#define GPIO_8_EN 1 -#define GPIO_9_EN 1 -#define GPIO_10_EN 1 -#define GPIO_11_EN 1 -#define GPIO_12_EN 1 -#define GPIO_13_EN 1 -#define GPIO_14_EN 1 -#define GPIO_15_EN 1 -#define GPIO_16_EN 1 -#define GPIO_17_EN 1 -#define GPIO_18_EN 1 -#define GPIO_19_EN 1 -#define GPIO_20_EN 1 -#define GPIO_21_EN 1 -#define GPIO_22_EN 1 -#define GPIO_23_EN 1 -#define GPIO_24_EN 1 -#define GPIO_25_EN 1 -#define GPIO_26_EN 1 -#define GPIO_27_EN 1 -#define GPIO_28_EN 1 -#define GPIO_29_EN 1 -#define GPIO_30_EN 1 -#define GPIO_31_EN 1 - -/* GPIO channel configuration */ -#define GPIO_0_PIN GPIO_PA0 -#define GPIO_1_PIN GPIO_PA1 -#define GPIO_2_PIN GPIO_PA2 -#define GPIO_3_PIN GPIO_PA3 -#define GPIO_4_PIN GPIO_PA4 -#define GPIO_5_PIN GPIO_PA5 -#define GPIO_6_PIN GPIO_PA6 -#define GPIO_7_PIN GPIO_PA7 -#define GPIO_8_PIN GPIO_PB0 -#define GPIO_9_PIN GPIO_PB1 -#define GPIO_10_PIN GPIO_PB2 -#define GPIO_11_PIN GPIO_PB3 -#define GPIO_12_PIN GPIO_PB4 -#define GPIO_13_PIN GPIO_PB5 -#define GPIO_14_PIN GPIO_PB6 -#define GPIO_15_PIN GPIO_PB7 -#define GPIO_16_PIN GPIO_PC0 -#define GPIO_17_PIN GPIO_PC1 -#define GPIO_18_PIN GPIO_PC2 -#define GPIO_19_PIN GPIO_PC3 -#define GPIO_20_PIN GPIO_PC4 -#define GPIO_21_PIN GPIO_PC5 -#define GPIO_22_PIN GPIO_PC6 -#define GPIO_23_PIN GPIO_PC7 -#define GPIO_24_PIN GPIO_PD0 -#define GPIO_25_PIN GPIO_PD1 -#define GPIO_26_PIN GPIO_PD2 -#define GPIO_27_PIN GPIO_PD3 -#define GPIO_28_PIN GPIO_PD4 -#define GPIO_29_PIN GPIO_PD5 -#define GPIO_30_PIN GPIO_PD6 -#define GPIO_31_PIN GPIO_PD7 /** @} */ /** diff --git a/boards/openmote-cc2538/include/periph_conf.h b/boards/openmote-cc2538/include/periph_conf.h index a53eb7a07a..bf0fde9221 100644 --- a/boards/openmote-cc2538/include/periph_conf.h +++ b/boards/openmote-cc2538/include/periph_conf.h @@ -120,81 +120,6 @@ static const periph_spi_conf_t spi_config[SPI_NUMOF] = { .cs_pin = GPIO_PA3, }, }; - -/** @} */ - -/** - * @name GPIO configuration - * @{ - */ -#define GPIO_IRQ_PRIO 1 - -#define GPIO_0_EN 1 -#define GPIO_1_EN 1 -#define GPIO_2_EN 1 -#define GPIO_3_EN 1 -#define GPIO_4_EN 1 -#define GPIO_5_EN 1 -#define GPIO_6_EN 1 -#define GPIO_7_EN 1 -#define GPIO_8_EN 1 -#define GPIO_9_EN 1 -#define GPIO_10_EN 1 -#define GPIO_11_EN 1 -#define GPIO_12_EN 1 -#define GPIO_13_EN 1 -#define GPIO_14_EN 1 -#define GPIO_15_EN 1 -#define GPIO_16_EN 1 -#define GPIO_17_EN 1 -#define GPIO_18_EN 1 -#define GPIO_19_EN 1 -#define GPIO_20_EN 1 -#define GPIO_21_EN 1 -#define GPIO_22_EN 1 -#define GPIO_23_EN 1 -#define GPIO_24_EN 1 -#define GPIO_25_EN 1 -#define GPIO_26_EN 1 -#define GPIO_27_EN 1 -#define GPIO_28_EN 1 -#define GPIO_29_EN 1 -#define GPIO_30_EN 1 -#define GPIO_31_EN 1 - -/* GPIO channel configuration */ -#define GPIO_0_PIN GPIO_PA0 -#define GPIO_1_PIN GPIO_PA1 -#define GPIO_2_PIN GPIO_PA2 -#define GPIO_3_PIN GPIO_PA3 -#define GPIO_4_PIN GPIO_PA4 -#define GPIO_5_PIN GPIO_PA5 -#define GPIO_6_PIN GPIO_PA6 -#define GPIO_7_PIN GPIO_PA7 -#define GPIO_8_PIN GPIO_PB0 -#define GPIO_9_PIN GPIO_PB1 -#define GPIO_10_PIN GPIO_PB2 -#define GPIO_11_PIN GPIO_PB3 -#define GPIO_12_PIN GPIO_PB4 -#define GPIO_13_PIN GPIO_PB5 -#define GPIO_14_PIN GPIO_PB6 -#define GPIO_15_PIN GPIO_PB7 -#define GPIO_16_PIN GPIO_PC0 -#define GPIO_17_PIN GPIO_PC1 -#define GPIO_18_PIN GPIO_PC2 -#define GPIO_19_PIN GPIO_PC3 -#define GPIO_20_PIN GPIO_PC4 -#define GPIO_21_PIN GPIO_PC5 -#define GPIO_22_PIN GPIO_PC6 -#define GPIO_23_PIN GPIO_PC7 -#define GPIO_24_PIN GPIO_PD0 -#define GPIO_25_PIN GPIO_PD1 -#define GPIO_26_PIN GPIO_PD2 -#define GPIO_27_PIN GPIO_PD3 -#define GPIO_28_PIN GPIO_PD4 -#define GPIO_29_PIN GPIO_PD5 -#define GPIO_30_PIN GPIO_PD6 -#define GPIO_31_PIN GPIO_PD7 /** @} */ /** diff --git a/boards/remote-pa/board.c b/boards/remote-pa/board.c index 107d4e7dab..f95c99bb26 100644 --- a/boards/remote-pa/board.c +++ b/boards/remote-pa/board.c @@ -60,7 +60,7 @@ static void rf_switch_init(void) RF_SWITCH_PORT->DIR |= (1 << RF_SWITCH_PIN); /* configure io-mux for used pins */ - IOC->PC_OVER[RF_SWITCH_PIN] = IOC_OVERRIDE_OE; + IOC->OVER[RF_SWITCH_PIN] = IOC_OVERRIDE_OE; /* Set to default */ RF_SWITCH_INTERNAL; diff --git a/boards/remote-pa/include/board.h b/boards/remote-pa/include/board.h index 1a33a2f2e2..678cc195c6 100644 --- a/boards/remote-pa/include/board.h +++ b/boards/remote-pa/include/board.h @@ -60,7 +60,7 @@ * @name User button pin definition * @{ */ -#define BUTTON_GPIO GPIO_9_PIN +#define BTN0_PIN GPIO_PIN(0, 3) /** @} */ /** diff --git a/boards/remote-pa/include/gpio_params.h b/boards/remote-pa/include/gpio_params.h index 2a5af12f68..a98d7d9bc5 100644 --- a/boards/remote-pa/include/gpio_params.h +++ b/boards/remote-pa/include/gpio_params.h @@ -48,7 +48,7 @@ static const saul_gpio_params_t saul_gpio_params[] = }, { .name = "Button(User)", - .pin = BUTTON_GPIO, + .pin = BTN0_PIN, .mode = GPIO_IN_PU }, }; diff --git a/boards/remote-pa/include/periph_conf.h b/boards/remote-pa/include/periph_conf.h index 8a5bc20400..1d7e35ad05 100644 --- a/boards/remote-pa/include/periph_conf.h +++ b/boards/remote-pa/include/periph_conf.h @@ -78,7 +78,6 @@ static const i2c_conf_t i2c_config[I2C_NUMOF] = { #define SPI_0_EN 1 #define SPI_1_EN 1 -#ifdef HAVE_PERIPH_SPI_CONF_T static const periph_spi_conf_t spi_config[SPI_NUMOF] = { { .dev = SSI0, @@ -94,97 +93,6 @@ static const periph_spi_conf_t spi_config[SPI_NUMOF] = { .sck_pin = GPIO_PB5, }, }; -#endif - -/** @} */ - -/** - * @name GPIO configuration - * @{ - */ -#define GPIO_IRQ_PRIO 1 - -#define GPIO_0_EN 1 -#define GPIO_1_EN 1 -#define GPIO_2_EN 1 -#define GPIO_3_EN 1 -#define GPIO_4_EN 1 -#define GPIO_5_EN 1 -#define GPIO_6_EN 1 -#define GPIO_7_EN 1 -#define GPIO_8_EN 1 -#define GPIO_9_EN 1 -#define GPIO_10_EN 1 -#define GPIO_11_EN 1 -#define GPIO_12_EN 1 -#define GPIO_13_EN 1 -#define GPIO_14_EN 1 -#define GPIO_15_EN 1 -#define GPIO_16_EN 1 -#define GPIO_17_EN 1 -#define GPIO_18_EN 1 -#define GPIO_19_EN 1 -#define GPIO_20_EN 1 -#define GPIO_21_EN 1 -#define GPIO_22_EN 1 -#define GPIO_23_EN 1 -#define GPIO_24_EN 1 - -/** - * @brief Port config - * - * These defines configures the port settings - */ -/* GPIO 0 configuration - LED1 Green */ -#define GPIO_0_PIN GPIO_PD5 -/* GPIO 1 configuration - LED2 Blue */ -#define GPIO_1_PIN GPIO_PC3 -/* GPIO 2 configuration - LED3 Red */ -#define GPIO_2_PIN GPIO_PD2 -/* GPIO 3 configuration - UART0 RX */ -#define GPIO_3_PIN GPIO_PA0 -/* GPIO 4 configuration - UART0 TX */ -#define GPIO_4_PIN GPIO_PA1 -/* GPIO 5 configuration - UART1 TX */ -#define GPIO_5_PIN GPIO_PC5 -/* GPIO 6 configuration - UART1 RX */ -#define GPIO_6_PIN GPIO_PC6 -/* GPIO 7 configuration - UART1 CTS */ -#define GPIO_7_PIN GPIO_PC1 -/* GPIO 8 configuration - UART RTS */ -#define GPIO_8_PIN GPIO_PC2 -/* GPIO 9 configuration - User button/Bootloader */ -#define GPIO_9_PIN GPIO_PA3 -/* GPIO 10 configuration - ADC2 */ -#define GPIO_10_PIN GPIO_PA6 -/* GPIO 11 configuration - ADC3 */ -#define GPIO_11_PIN GPIO_PA7 -/* GPIO 12 configuration - SSI0 CC1120 CLK */ -#define GPIO_12_PIN GPIO_PD1 -/* GPIO 13 configuration - SSI0 CC1120 MOSI */ -#define GPIO_13_PIN GPIO_PD0 -/* GPIO 14 configuration - SSI0 CC1120 MISO */ -#define GPIO_14_PIN GPIO_PC4 -/* GPIO 15 configuration - I2C SCL */ -#define GPIO_15_PIN GPIO_PB1 -/* GPIO 16 configuration - I2C SDA */ -#define GPIO_16_PIN GPIO_PB0 -/* GPIO 17 configuration - RF SWITCH */ -#define GPIO_17_PIN GPIO_PD4 -/* GPIO 18 configuration - SSI1 MicroSD CLK */ -#define GPIO_18_PIN GPIO_PB5 -/* GPIO 19 configuration - SSI1 MicroSD MOSI */ -#define GPIO_19_PIN GPIO_PC7 -/* GPIO 20 configuration - SSI1 MicroSD MISO */ -#define GPIO_20_PIN GPIO_PA4 -/* GPIO 21 configuration - CC1120 CSn */ -#define GPIO_21_PIN GPIO_PD3 -/* GPIO 22 configuration - CC1120 GDO0 */ -#define GPIO_22_PIN GPIO_PB4 -/* GPIO 23 configuration - CC1120 GDO2 */ -#define GPIO_23_PIN GPIO_PB3 -/* GPIO 24 configuration - CC1120 Reset */ -#define GPIO_24_PIN GPIO_PB2 /** @} */ #ifdef __cplusplus diff --git a/boards/remote-reva/include/board.h b/boards/remote-reva/include/board.h index 78e6499925..af1cf6fe35 100644 --- a/boards/remote-reva/include/board.h +++ b/boards/remote-reva/include/board.h @@ -60,8 +60,9 @@ * @name User button pin definition * @{ */ -#define BUTTON_GPIO GPIO_3_PIN +#define BTN0_PIN GPIO_PIN(0, 3) /** @} */ + /** * @name RF switch controlled by SW * @brief Controls which RF interface goes to the RP-SMA external antenna diff --git a/boards/remote-reva/include/gpio_params.h b/boards/remote-reva/include/gpio_params.h index f578764b94..9a079e3dcd 100644 --- a/boards/remote-reva/include/gpio_params.h +++ b/boards/remote-reva/include/gpio_params.h @@ -48,7 +48,7 @@ static const saul_gpio_params_t saul_gpio_params[] = }, { .name = "Button(User)", - .pin = BUTTON_GPIO, + .pin = BTN0_PIN, .mode = GPIO_IN_PU }, }; diff --git a/boards/remote-reva/include/periph_conf.h b/boards/remote-reva/include/periph_conf.h index 14f610c49e..8205fc5b37 100644 --- a/boards/remote-reva/include/periph_conf.h +++ b/boards/remote-reva/include/periph_conf.h @@ -78,7 +78,6 @@ static const i2c_conf_t i2c_config[I2C_NUMOF] = { #define SPI_0_EN 1 #define SPI_1_EN 1 -#ifdef HAVE_PERIPH_SPI_CONF_T static const periph_spi_conf_t spi_config[SPI_NUMOF] = { { .dev = SSI0, @@ -95,113 +94,6 @@ static const periph_spi_conf_t spi_config[SPI_NUMOF] = { .cs_pin = GPIO_PA7, }, }; -#endif -/** @} */ - -/** - * @name GPIO configuration - * @{ - */ -#define GPIO_IRQ_PRIO 1 - -/* Enable only up to PD5 as PD6-PD7 are used with the 32KHz XOSC */ -#define GPIO_0_EN 1 -#define GPIO_1_EN 1 -#define GPIO_2_EN 1 -#define GPIO_3_EN 1 -#define GPIO_4_EN 1 -#define GPIO_5_EN 1 -#define GPIO_6_EN 1 -#define GPIO_7_EN 1 -#define GPIO_8_EN 1 -#define GPIO_9_EN 1 -#define GPIO_10_EN 1 -#define GPIO_11_EN 1 -#define GPIO_12_EN 1 -#define GPIO_13_EN 1 -#define GPIO_14_EN 1 -#define GPIO_15_EN 1 -#define GPIO_16_EN 1 -#define GPIO_17_EN 1 -#define GPIO_18_EN 1 -#define GPIO_19_EN 1 -#define GPIO_20_EN 1 -#define GPIO_21_EN 1 -#define GPIO_22_EN 1 -#define GPIO_23_EN 1 -#define GPIO_24_EN 1 -#define GPIO_25_EN 1 -#define GPIO_26_EN 1 -#define GPIO_27_EN 1 -#define GPIO_28_EN 1 -#define GPIO_29_EN 1 - -/** - * @brief Port config - * - * These defines configures the port settings - */ -/* UART0 RX */ -#define GPIO_0_PIN GPIO_PA0 -/* UART0 TX */ -#define GPIO_1_PIN GPIO_PA1 -/* ADC3 */ -#define GPIO_2_PIN GPIO_PA2 -/* User button/Bootloader */ -#define GPIO_3_PIN GPIO_PA3 -/* ADC2 */ -#define GPIO_4_PIN GPIO_PA4 -/* ADC1 */ -#define GPIO_5_PIN GPIO_PA5 -/* SEL MicroSD */ -#define GPIO_6_PIN GPIO_PA6 -/* CSn MicroSD (shared with ADC extRef) */ -#define GPIO_7_PIN GPIO_PA7 -/* CC1200 GDO2 */ -#define GPIO_8_PIN GPIO_PB0 -/* SSI0 CC1200 MOSI */ -#define GPIO_9_PIN GPIO_PB1 -/* SSI0 CC1200 CLK */ -#define GPIO_10_PIN GPIO_PB2 -/* SSI0 CC1200 MISO */ -#define GPIO_11_PIN GPIO_PB3 -/* CC1200 GDO0 */ -#define GPIO_12_PIN GPIO_PB4 -/* CC1200 CSn */ -#define GPIO_13_PIN GPIO_PB5 -/* JTAG TDI */ -#define GPIO_14_PIN GPIO_PB6 -/* JTAG TDO */ -#define GPIO_15_PIN GPIO_PB7 -/* UART1 TX */ -#define GPIO_16_PIN GPIO_PC0 -/* UART1 RX */ -#define GPIO_17_PIN GPIO_PC1 -/* I2C SDA */ -#define GPIO_18_PIN GPIO_PC2 -/* I2C SCL */ -#define GPIO_19_PIN GPIO_PC3 -/* SSI1 MicroSD CLK */ -#define GPIO_20_PIN GPIO_PC4 -/* SSI1 MicroSD MOSI */ -#define GPIO_21_PIN GPIO_PC5 -/* SSI1 MicroSD MISO */ -#define GPIO_22_PIN GPIO_PC6 -/* CC1200 Reset */ -#define GPIO_23_PIN GPIO_PC7 -/* Power Management (shutdown) */ -#define GPIO_24_PIN GPIO_PD0 -/* Power Management (done) */ -#define GPIO_25_PIN GPIO_PD1 -/* RF SWITCH */ -#define GPIO_26_PIN GPIO_PD2 -/* LED2 Blue/UART1 RTS */ -#define GPIO_27_PIN GPIO_PD3 -/* LED1 Green/UART1 CTS */ -#define GPIO_28_PIN GPIO_PD4 -/* LED3 Red */ -#define GPIO_29_PIN GPIO_PD5 - /** @} */ #ifdef __cplusplus diff --git a/boards/remote-revb/include/board.h b/boards/remote-revb/include/board.h index 827f7acfd0..09d5264f75 100644 --- a/boards/remote-revb/include/board.h +++ b/boards/remote-revb/include/board.h @@ -60,7 +60,7 @@ * @name User button pin definition * @{ */ -#define BUTTON_GPIO GPIO_3_PIN +#define BTN0_PIN GPIO_PIN(0, 3) /** @} */ /** diff --git a/boards/remote-revb/include/gpio_params.h b/boards/remote-revb/include/gpio_params.h index 6abc87f782..30d787c108 100644 --- a/boards/remote-revb/include/gpio_params.h +++ b/boards/remote-revb/include/gpio_params.h @@ -48,7 +48,7 @@ static const saul_gpio_params_t saul_gpio_params[] = }, { .name = "Button(User)", - .pin = BUTTON_GPIO, + .pin = BTN0_PIN, .mode = GPIO_IN_PU }, }; diff --git a/boards/remote-revb/include/periph_conf.h b/boards/remote-revb/include/periph_conf.h index cd9da90272..d83727cafb 100644 --- a/boards/remote-revb/include/periph_conf.h +++ b/boards/remote-revb/include/periph_conf.h @@ -78,7 +78,6 @@ static const i2c_conf_t i2c_config[I2C_NUMOF] = { #define SPI_0_EN 1 #define SPI_1_EN 1 -#ifdef HAVE_PERIPH_SPI_CONF_T static const periph_spi_conf_t spi_config[SPI_NUMOF] = { { .dev = SSI0, @@ -95,113 +94,6 @@ static const periph_spi_conf_t spi_config[SPI_NUMOF] = { .cs_pin = GPIO_PA7, }, }; -#endif -/** @} */ - -/** - * @name GPIO configuration - * @{ - */ -#define GPIO_IRQ_PRIO 1 - -/* Enable only up to PD5 as PD6-PD7 are used with the 32KHz XOSC */ -#define GPIO_0_EN 1 -#define GPIO_1_EN 1 -#define GPIO_2_EN 1 -#define GPIO_3_EN 1 -#define GPIO_4_EN 1 -#define GPIO_5_EN 1 -#define GPIO_6_EN 1 -#define GPIO_7_EN 1 -#define GPIO_8_EN 1 -#define GPIO_9_EN 1 -#define GPIO_10_EN 1 -#define GPIO_11_EN 1 -#define GPIO_12_EN 1 -#define GPIO_13_EN 1 -#define GPIO_14_EN 1 -#define GPIO_15_EN 1 -#define GPIO_16_EN 1 -#define GPIO_17_EN 1 -#define GPIO_18_EN 1 -#define GPIO_19_EN 1 -#define GPIO_20_EN 1 -#define GPIO_21_EN 1 -#define GPIO_22_EN 1 -#define GPIO_23_EN 1 -#define GPIO_24_EN 1 -#define GPIO_25_EN 1 -#define GPIO_26_EN 1 -#define GPIO_27_EN 1 -#define GPIO_28_EN 1 -#define GPIO_29_EN 1 - -/** - * @brief Port config - * - * These defines configures the port settings - */ -/* UART0 RX */ -#define GPIO_0_PIN GPIO_PA0 -/* UART0 TX */ -#define GPIO_1_PIN GPIO_PA1 -/* ADC3 */ -#define GPIO_2_PIN GPIO_PA2 -/* User button/Bootloader */ -#define GPIO_3_PIN GPIO_PA3 -/* ADC2 */ -#define GPIO_4_PIN GPIO_PA4 -/* ADC1 */ -#define GPIO_5_PIN GPIO_PA5 -/* SEL MicroSD or AIN6/ADC4 */ -#define GPIO_6_PIN GPIO_PA6 -/* CSn MicroSD or AIN7/ADC5 */ -#define GPIO_7_PIN GPIO_PA7 -/* CC1200 GDO2 */ -#define GPIO_8_PIN GPIO_PB0 -/* SSI0 CC1200 MOSI */ -#define GPIO_9_PIN GPIO_PB1 -/* SSI0 CC1200 CLK */ -#define GPIO_10_PIN GPIO_PB2 -/* SSI0 CC1200 MISO */ -#define GPIO_11_PIN GPIO_PB3 -/* CC1200 GDO0 */ -#define GPIO_12_PIN GPIO_PB4 -/* CC1200 CSn */ -#define GPIO_13_PIN GPIO_PB5 -/* JTAG TDI & LED3 */ -#define GPIO_14_PIN GPIO_PB6 -/* JTAG TDO & LED2 */ -#define GPIO_15_PIN GPIO_PB7 -/* UART1 TX */ -#define GPIO_16_PIN GPIO_PC0 -/* UART1 RX */ -#define GPIO_17_PIN GPIO_PC1 -/* I2C SDA */ -#define GPIO_18_PIN GPIO_PC2 -/* I2C SCL */ -#define GPIO_19_PIN GPIO_PC3 -/* SSI1 MicroSD CLK */ -#define GPIO_20_PIN GPIO_PC4 -/* SSI1 MicroSD MOSI */ -#define GPIO_21_PIN GPIO_PC5 -/* SSI1 MicroSD MISO */ -#define GPIO_22_PIN GPIO_PC6 -/* CC1200 Reset */ -#define GPIO_23_PIN GPIO_PC7 -/* GPIO */ -#define GPIO_24_PIN GPIO_PD0 -/* Power Management enable */ -#define GPIO_25_PIN GPIO_PD1 -/* RF SWITCH */ -#define GPIO_26_PIN GPIO_PD2 -/* RTCC INT1 */ -#define GPIO_27_PIN GPIO_PD3 -/* LED1 */ -#define GPIO_28_PIN GPIO_PD4 -/* External WDT */ -#define GPIO_29_PIN GPIO_PD5 - /** @} */ #ifdef __cplusplus