2 #if CONFIG_HAL_BOARD == HAL_BOARD_SITL 10 # define Debug(fmt, args ...) do {::printf("%s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); } while (0) 12 # define Debug(fmt, args ...) 21 Debug(
"set_freq(0x%04x, %u)\n", static_cast<uint32_t>(chmask), static_cast<uint32_t>(freq_hz));
33 Debug(
"enable_ch(%u)\n", ch);
41 Debug(
"disable_ch(%u)\n", ch);
#define SITL_NUM_CHANNELS
void write(uint8_t ch, uint16_t period_us) override
#define Debug(fmt, args ...)
uint16_t read(uint8_t ch) override
void disable_ch(uint8_t ch) override
uint16_t pwm_output[SITL_NUM_CHANNELS]
void enable_ch(uint8_t ch) override
uint16_t _pending[SITL_NUM_CHANNELS]
void set_freq(uint32_t chmask, uint16_t freq_hz) override
uint16_t get_freq(uint8_t ch) override