20 #if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS 25 extern AP_IOMCU iomcu;
28 #define SIG_DETECT_TIMEOUT_US 500000 33 #if HAL_USE_ICU == TRUE 39 #if HAL_USE_EICU == TRUE 40 sig_reader.init(&RCININT_EICU_TIMER, RCININT_EICU_CHANNEL);
65 #if HAL_RCINPUT_WITH_AP_RADIO 105 #if HAL_RCINPUT_WITH_AP_RADIO 106 if (radio && channel == 0) {
123 for (uint8_t i = 0; i < len; i++){
124 periods[i] =
read(i);
162 #if HAL_USE_ICU == TRUE || HAL_USE_EICU == TRUE 163 uint32_t width_s0, width_s1;
180 #if HAL_RCINPUT_WITH_AP_RADIO 181 if (radio && radio->last_recv_us() != last_radio_us) {
182 last_radio_us = radio->last_recv_us();
212 #if HAL_USE_ICU == TRUE 217 #if HAL_RCINPUT_WITH_AP_RADIO 219 radio->start_recv_bind();
224 #endif //#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS bool attach_capture_timer(ICUDriver *icu_drv, icuchannel_t chan, uint8_t dma_stream, uint32_t dma_channel)
#define HAL_SEMAPHORE_BLOCK_FOREVER
static bool io_enabled(void)
static AP_Radio * instance(void)
bool read(uint32_t &widths0, uint32_t &widths1)
bool take(uint32_t timeout_ms)
void process_pulse(uint32_t width_s0, uint32_t width_s1)
uint16_t read(uint8_t chan)