mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-24 16:53:57 -04:00
HAL_ChibiOS: support DSM bind on IOMCU
This commit is contained in:
parent
4378d92c6e
commit
3ce762ab7c
@ -168,6 +168,14 @@ void RCInput::_timer_tick(void)
|
|||||||
*/
|
*/
|
||||||
bool RCInput::rc_bind(int dsmMode)
|
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
|
#if HAL_USE_ICU == TRUE
|
||||||
// ask AP_RCProtocol to start a bind
|
// ask AP_RCProtocol to start a bind
|
||||||
rcin_prot.start_bind();
|
rcin_prot.start_bind();
|
||||||
|
Loading…
Reference in New Issue
Block a user