1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Reenable sending from the overo tx method but no longer yield since we aren't

using a blocking write anyway.
This commit is contained in:
James Cotton 2012-07-24 11:29:24 -05:00
parent 6561b9b164
commit 30085d23ff

View File

@ -127,9 +127,11 @@ static void PIOS_OVERO_WriteData(struct pios_overo_dev *overo_dev)
bytes_added = (overo_dev->tx_out_cb)(overo_dev->tx_out_context, writing_pointer, max_bytes, NULL, &tx_need_yield); bytes_added = (overo_dev->tx_out_cb)(overo_dev->tx_out_context, writing_pointer, max_bytes, NULL, &tx_need_yield);
#if OVERO_USES_BLOCKING_WRITE
if (tx_need_yield) { if (tx_need_yield) {
vPortYieldFromISR(); vPortYieldFromISR();
} }
#endif
overo_dev->writing_offset += bytes_added; overo_dev->writing_offset += bytes_added;
} }
} }
@ -324,7 +326,7 @@ static void PIOS_OVERO_TxStart(uint32_t overo_id, uint16_t tx_bytes_avail)
// DMA TX enable (enable IRQ) ? // DMA TX enable (enable IRQ) ?
// Load any pending bytes from TX fifo // Load any pending bytes from TX fifo
//PIOS_OVERO_WriteData(overo_dev); PIOS_OVERO_WriteData(overo_dev);
} }
static void PIOS_OVERO_RegisterRxCallback(uint32_t overo_id, pios_com_callback rx_in_cb, uint32_t context) static void PIOS_OVERO_RegisterRxCallback(uint32_t overo_id, pios_com_callback rx_in_cb, uint32_t context)