mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 06:13:33 +08:00
io timer: remove some fields from io_timers_t and split out channel indexes
- reduces amount of board configuration required - removes the cyclic dependency between io_timers_t and timer_io_channels_t Fixes a bug in the fmuk66-v3 config: the 2. timer has 3 channels associated not 2. Fixes a bug in the modelai config: the 2. timer has 4 channels associated.
This commit is contained in:
@@ -58,6 +58,8 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = { };
|
||||
// Invalidate all channels (timer_channel == 0): we don't have any
|
||||
__EXPORT const timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = { };
|
||||
|
||||
__EXPORT const io_timers_channel_mapping_t io_timers_channel_mapping = { };
|
||||
|
||||
// Invalidate all timers (base == 0): we don't have any
|
||||
__EXPORT const struct io_timers_t led_pwm_timers[MAX_LED_TIMERS] = { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user