5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-09 09:28:31 -04:00

HAL_ChibiOS: support DSM bind on IOMCU

This commit is contained in:
Andrew Tridgell 2019-05-10 11:56:11 +10:00 committed by Randy Mackay
parent f82c173065
commit 7382fc6316

View File

@ -168,6 +168,14 @@ void RCInput::_timer_tick(void)
*/
bool RCInput::rc_bind(int dsmMode)
{
#if HAL_WITH_IO_MCU
rcin_mutex.take(HAL_SEMAPHORE_BLOCK_FOREVER);
if (AP_BoardConfig::io_enabled()) {
iomcu.bind_dsm(dsmMode);
}
rcin_mutex.give();
#endif
#if HAL_USE_ICU == TRUE
// ask AP_RCProtocol to start a bind
rcin_prot.start_bind();