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:
parent
f82c173065
commit
7382fc6316
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user