This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new bb8dc18 mcu/nrf5340: HAL gpio irq should use GPIOTE0
new 758fd76 Merge pull request #2533 from vrahane/fix_hal_gpio_irq_nrf5340
bb8dc18 is described below
commit bb8dc181d8fe5fc28e573497e0de72d50ddf1cb7
Author: Vipul Rahane <[email protected]>
AuthorDate: Mon Mar 15 17:48:29 2021 -0700
mcu/nrf5340: HAL gpio irq should use GPIOTE0
- hal gpio irq should use GPIOTE0 but GPIOTE1 was getting used
---
hw/mcu/nordic/nrf5340/src/hal_gpio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/mcu/nordic/nrf5340/src/hal_gpio.c
b/hw/mcu/nordic/nrf5340/src/hal_gpio.c
index c69afc7..8d3a4db 100644
--- a/hw/mcu/nordic/nrf5340/src/hal_gpio.c
+++ b/hw/mcu/nordic/nrf5340/src/hal_gpio.c
@@ -285,8 +285,8 @@ hal_gpio_irq_setup(void)
static uint8_t irq_setup = 0;
if (!irq_setup) {
- NVIC_SetVector(GPIOTE1_IRQn, (uint32_t)hal_gpio_irq_handler);
- NVIC_EnableIRQ(GPIOTE1_IRQn);
+ NVIC_SetVector(GPIOTE0_IRQn, (uint32_t)hal_gpio_irq_handler);
+ NVIC_EnableIRQ(GPIOTE0_IRQn);
irq_setup = 1;
#if MYNEWT_VAL(MCU_GPIO_USE_PORT_EVENT)