mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 00:33:34 +08:00
Update px4iofirmware, px4io and drivers to uses NuttX IRQ API changes
This commit is contained in:
committed by
Daniel Agar
parent
bc81339a68
commit
21caf63e13
@@ -136,7 +136,7 @@ private:
|
||||
/**
|
||||
* Serial interrupt handler.
|
||||
*/
|
||||
static int _interrupt(int vector, void *context);
|
||||
static int _interrupt(int vector, void *context, void *arg);
|
||||
void _do_interrupt();
|
||||
|
||||
/**
|
||||
@@ -291,7 +291,7 @@ PX4IO_serial::init()
|
||||
rBRR = (mantissa << USART_BRR_MANT_SHIFT) | (fraction << USART_BRR_FRAC_SHIFT);
|
||||
|
||||
/* attach serial interrupt handler */
|
||||
irq_attach(PX4IO_SERIAL_VECTOR, _interrupt);
|
||||
irq_attach(PX4IO_SERIAL_VECTOR, _interrupt, NULL);
|
||||
up_enable_irq(PX4IO_SERIAL_VECTOR);
|
||||
|
||||
/* enable UART in DMA mode, enable error and line idle interrupts */
|
||||
@@ -657,7 +657,7 @@ PX4IO_serial::_do_rx_dma_callback(unsigned status)
|
||||
}
|
||||
|
||||
int
|
||||
PX4IO_serial::_interrupt(int irq, void *context)
|
||||
PX4IO_serial::_interrupt(int irq, void *context, void *arg)
|
||||
{
|
||||
if (g_interface != nullptr) {
|
||||
g_interface->_do_interrupt();
|
||||
|
||||
Reference in New Issue
Block a user