mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
Fix the pios_overo driver for compiling against the bootloader
This commit is contained in:
parent
8f8ae5bacb
commit
26f07c21f6
@ -81,6 +81,7 @@ struct pios_overo_dev {
|
||||
uint32_t tx_out_context;
|
||||
};
|
||||
|
||||
#if defined(PIOS_INCLUDE_FREERTOS)
|
||||
//! Private methods
|
||||
static void PIOS_OVERO_WriteData(struct pios_overo_dev *overo_dev);
|
||||
static bool PIOS_OVERO_validate(struct pios_overo_dev * overo_dev);
|
||||
@ -91,10 +92,6 @@ static bool PIOS_OVERO_validate(struct pios_overo_dev * overo_dev)
|
||||
return (overo_dev->magic == PIOS_OVERO_DEV_MAGIC);
|
||||
}
|
||||
|
||||
#if !defined(PIOS_INCLUDE_FREERTOS)
|
||||
#error Requires FreeRTOS
|
||||
#endif /* PIOS_INCLUDE_FREERTOS */
|
||||
|
||||
static struct pios_overo_dev * PIOS_OVERO_alloc(void)
|
||||
{
|
||||
struct pios_overo_dev * overo_dev;
|
||||
@ -360,6 +357,15 @@ static void PIOS_OVERO_RegisterTxCallback(uint32_t overo_id, pios_com_callback t
|
||||
overo_dev->tx_out_cb = tx_out_cb;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static void PIOS_OVERO_RegisterTxCallback(uint32_t overo_id, pios_com_callback tx_out_cb, uint32_t context) {};
|
||||
static void PIOS_OVERO_RegisterRxCallback(uint32_t overo_id, pios_com_callback rx_in_cb, uint32_t context) {};
|
||||
static void PIOS_OVERO_TxStart(uint32_t overo_id, uint16_t tx_bytes_avail) {};
|
||||
static void PIOS_OVERO_RxStart(uint32_t overo_id, uint16_t rx_bytes_avail) {};
|
||||
|
||||
#endif /* PIOS_INCLUDE_FREERTOS */
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user