diff options
Diffstat (limited to 'board/nucleo-f072rb')
-rw-r--r-- | board/nucleo-f072rb/board.c | 5 | ||||
-rw-r--r-- | board/nucleo-f072rb/board.h | 4 | ||||
-rw-r--r-- | board/nucleo-f072rb/gpio.inc | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/board/nucleo-f072rb/board.c b/board/nucleo-f072rb/board.c index 1d60231ebe..48a51c7b02 100644 --- a/board/nucleo-f072rb/board.c +++ b/board/nucleo-f072rb/board.c @@ -21,9 +21,8 @@ void button_event(enum gpio_signal signal) * Dummy interrupt handler. It's supposed to be overwritten by each suite * if needed. */ -__attribute__((weak)) void cts_irq(enum gpio_signal signal) -{ -} +__attribute__((weak)) void cts_irq1(enum gpio_signal signal) {} +__attribute__((weak)) void cts_irq2(enum gpio_signal signal) {} #endif #include "gpio_list.h" diff --git a/board/nucleo-f072rb/board.h b/board/nucleo-f072rb/board.h index c008deb395..9cc2fc2d0b 100644 --- a/board/nucleo-f072rb/board.h +++ b/board/nucleo-f072rb/board.h @@ -18,10 +18,14 @@ /* Optional features */ #define CONFIG_STM_HWTIMER32 +#ifdef CTS_MODULE +#undef STM32_IRQ_EXT2_3_PRIORITY +#define STM32_IRQ_EXT2_3_PRIORITY 2 #ifdef CTS_MODULE_I2C #define CONFIG_I2C #define CONFIG_I2C_MASTER #endif +#endif #undef CONFIG_WATCHDOG_HELP #undef CONFIG_LID_SWITCH diff --git a/board/nucleo-f072rb/gpio.inc b/board/nucleo-f072rb/gpio.inc index 31149bf633..6f3b592845 100644 --- a/board/nucleo-f072rb/gpio.inc +++ b/board/nucleo-f072rb/gpio.inc @@ -13,11 +13,12 @@ GPIO_INT(USER_BUTTON, PIN(C, 13), GPIO_INT_FALLING, button_event) #ifndef CTS_MODULE_GPIO /* Overload C1 for interrupt. Enabled only for non-GPIO suites as * GPIO tests don't require a separate notification line. */ -GPIO_INT(CTS_IRQ, PIN(C, 1), GPIO_INT_FALLING | GPIO_PULL_UP , cts_irq) +GPIO_INT(CTS_IRQ1, PIN(C, 1), GPIO_INT_FALLING | GPIO_PULL_UP , cts_irq1) /* Used to disable interrupt. This IRQ# has to match the number used for the * pin set above */ #define CTS_IRQ_NUMBER STM32_IRQ_EXTI0_1 #endif +GPIO_INT(CTS_IRQ2, PIN(C, 2), GPIO_INT_FALLING | GPIO_PULL_UP , cts_irq2) #endif /* Outputs */ |