From d5c1e5118e9ff73b02e2aa7fdb88da6790d39153 Mon Sep 17 00:00:00 2001 From: Will Hedgecock Date: Mon, 11 Sep 2023 11:54:25 -0500 Subject: [PATCH] Fix compilation issue --- software/firmware/src/peripherals/src/ranging.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/software/firmware/src/peripherals/src/ranging.c b/software/firmware/src/peripherals/src/ranging.c index fe28441f..4540eba1 100644 --- a/software/firmware/src/peripherals/src/ranging.c +++ b/software/firmware/src/peripherals/src/ranging.c @@ -175,15 +175,11 @@ void ranging_radio_init(uint8_t *uid) NVIC_EnableIRQ(GPIO0_001F_IRQn + GPIO_NUM2IDX(PIN_RADIO_INTERRUPT)); #if REVISION_ID >= REVISION_L radio_interrupt_pin = PIN_RADIO_INTERRUPT2; - am_hal_gpio_pincfg_t interrupt_pin_config = AM_HAL_GPIO_PINCFG_INPUT; - interrupt_pin_config.GP.cfg_b.ePullup = AM_HAL_GPIO_PIN_PULLDOWN_50K; configASSERT0(am_hal_gpio_pinconfig(PIN_RADIO_INTERRUPT2, interrupt_pin_config)); configASSERT0(am_hal_gpio_interrupt_control(AM_HAL_GPIO_INT_CHANNEL_0, AM_HAL_GPIO_INT_CTRL_INDV_ENABLE, &radio_interrupt_pin)); //NVIC_SetPriority(GPIO0_001F_IRQn + GPIO_NUM2IDX(PIN_RADIO_INTERRUPT2), NVIC_configMAX_SYSCALL_INTERRUPT_PRIORITY); //NVIC_EnableIRQ(GPIO0_001F_IRQn + GPIO_NUM2IDX(PIN_RADIO_INTERRUPT2)); radio_interrupt_pin = PIN_RADIO_INTERRUPT3; - am_hal_gpio_pincfg_t interrupt_pin_config = AM_HAL_GPIO_PINCFG_INPUT; - interrupt_pin_config.GP.cfg_b.ePullup = AM_HAL_GPIO_PIN_PULLDOWN_50K; configASSERT0(am_hal_gpio_pinconfig(PIN_RADIO_INTERRUPT3, interrupt_pin_config)); configASSERT0(am_hal_gpio_interrupt_control(AM_HAL_GPIO_INT_CHANNEL_0, AM_HAL_GPIO_INT_CTRL_INDV_ENABLE, &radio_interrupt_pin)); //NVIC_SetPriority(GPIO0_001F_IRQn + GPIO_NUM2IDX(PIN_RADIO_INTERRUPT3), NVIC_configMAX_SYSCALL_INTERRUPT_PRIORITY);