1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #3214 from haukepetersen/fix_nucleof334_gpiocleanup

board/nucleo-f334: removed obsolete GPIO defines
This commit is contained in:
Hauke Petersen 2015-06-17 11:01:41 +02:00
commit 73019e8090

View File

@ -108,59 +108,6 @@ extern "C" {
#define SPI_0_MOSI_PORT_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIOAEN)
/** @} */
/**
* @brief GPIO configuration
* @{
*/
#define GPIO_0_EN 1
#define GPIO_1_EN 1
#define GPIO_2_EN 1
#define GPIO_IRQ_PRIO 1
/* IRQ config */
#define GPIO_IRQ_0 (-1) /* not configured */
#define GPIO_IRQ_1 (-1) /* not configured */
#define GPIO_IRQ_2 GPIO_2
#define GPIO_IRQ_3 (-1) /* not configured */
#define GPIO_IRQ_4 (-1) /* not configured */
#define GPIO_IRQ_5 (-1) /* not configured */
#define GPIO_IRQ_6 (-1) /* not configured */
#define GPIO_IRQ_7 (-1) /* not configured */
#define GPIO_IRQ_8 (-1) /* not configured */
#define GPIO_IRQ_9 (-1) /* not configured */
#define GPIO_IRQ_10 GPIO_1
#define GPIO_IRQ_11 (-1) /* not configured */
#define GPIO_IRQ_12 (-1) /* not configured */
#define GPIO_IRQ_13 GPIO_0
#define GPIO_IRQ_14 (-1) /* not configured */
#define GPIO_IRQ_15 (-1) /* not configured */
/* GPIO channel 0 config */
#define GPIO_0_PORT GPIOC /* Used for user button 1 */
#define GPIO_0_PIN 13
#define GPIO_0_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIOCEN)
#define GPIO_0_EXTI_CFG1() (SYSCFG->EXTICR[3] &= ~(SYSCFG_EXTICR4_EXTI13))
#define GPIO_0_EXTI_CFG2() (SYSCFG->EXTICR[3] |= SYSCFG_EXTICR4_EXTI13_PC)
#define GPIO_0_IRQ EXTI15_10_IRQn
/* GPIO channel 1 config */
#define GPIO_1_PORT GPIOC
#define GPIO_1_PIN 10
#define GPIO_1_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIOCEN)
#define GPIO_1_EXTI_CFG1() (SYSCFG->EXTICR[2] &= ~(SYSCFG_EXTICR3_EXTI10))
#define GPIO_1_EXTI_CFG2() (SYSCFG->EXTICR[2] |= SYSCFG_EXTICR3_EXTI10_PC)
#define GPIO_1_IRQ EXTI15_10_IRQn
/* GPIO channel 2 config */
#define GPIO_2_PORT GPIOD
#define GPIO_2_PIN 2
#define GPIO_2_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIODEN)
#define GPIO_2_EXTI_CFG1() (SYSCFG->EXTICR[0] &= ~(SYSCFG_EXTICR1_EXTI2))
#define GPIO_2_EXTI_CFG2() (SYSCFG->EXTICR[0] |= SYSCFG_EXTICR1_EXTI2_PD)
#define GPIO_2_IRQ EXTI2_TSC_IRQn
/** @} */
#ifdef __cplusplus
}
#endif