From 3251e43f03f247d760e2dcc1001beed3bed2dd63 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 15 Aug 2018 14:10:12 +1000 Subject: [PATCH] AP_Radio: adjust for namespacing of interrupt names --- libraries/AP_Radio/AP_Radio_cc2500.cpp | 2 +- libraries/AP_Radio/AP_Radio_cypress.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Radio/AP_Radio_cc2500.cpp b/libraries/AP_Radio/AP_Radio_cc2500.cpp index fc31cf3606..ef8d6c243a 100644 --- a/libraries/AP_Radio/AP_Radio_cc2500.cpp +++ b/libraries/AP_Radio/AP_Radio_cc2500.cpp @@ -287,7 +287,7 @@ void AP_Radio_cc2500::radio_init(void) #if CONFIG_HAL_BOARD == HAL_BOARD_PX4 stm32_gpiosetevent(CYRF_IRQ_INPUT, true, false, false, irq_radio_trampoline); #elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS - hal.gpio->attach_interrupt(HAL_GPIO_RADIO_IRQ, trigger_irq_radio_event, HAL_GPIO_INTERRUPT_RISING); + hal.gpio->attach_interrupt(HAL_GPIO_RADIO_IRQ, trigger_irq_radio_event, AP_HAL::GPIO::INTERRUPT_RISING); #endif initTuneRx(); diff --git a/libraries/AP_Radio/AP_Radio_cypress.cpp b/libraries/AP_Radio/AP_Radio_cypress.cpp index a9db1643f2..aa746603c5 100644 --- a/libraries/AP_Radio/AP_Radio_cypress.cpp +++ b/libraries/AP_Radio/AP_Radio_cypress.cpp @@ -648,7 +648,7 @@ void AP_Radio_cypress::radio_init(void) #if CONFIG_HAL_BOARD == HAL_BOARD_PX4 stm32_gpiosetevent(CYRF_IRQ_INPUT, true, false, false, irq_radio_trampoline); #elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS - hal.gpio->attach_interrupt(HAL_GPIO_RADIO_IRQ, trigger_irq_radio_event, HAL_GPIO_INTERRUPT_RISING); + hal.gpio->attach_interrupt(HAL_GPIO_RADIO_IRQ, trigger_irq_radio_event, AP_HAL::GPIO::INTERRUPT_RISING); #endif }