mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-21 11:53:19 +08:00
Enable ARKV6X SPIX SYNC, enable icm426889 and iim42652 CLKIN
This commit is contained in:
@@ -50,13 +50,13 @@ namespace wq_configurations
|
||||
{
|
||||
static constexpr wq_config_t rate_ctrl{"wq:rate_ctrl", 3150, 0}; // PX4 inner loop highest priority
|
||||
|
||||
static constexpr wq_config_t SPI0{"wq:SPI0", 2352, -1};
|
||||
static constexpr wq_config_t SPI1{"wq:SPI1", 2352, -2};
|
||||
static constexpr wq_config_t SPI2{"wq:SPI2", 2352, -3};
|
||||
static constexpr wq_config_t SPI3{"wq:SPI3", 2352, -4};
|
||||
static constexpr wq_config_t SPI4{"wq:SPI4", 2352, -5};
|
||||
static constexpr wq_config_t SPI5{"wq:SPI5", 2352, -6};
|
||||
static constexpr wq_config_t SPI6{"wq:SPI6", 2352, -7};
|
||||
static constexpr wq_config_t SPI0{"wq:SPI0", 2392, -1};
|
||||
static constexpr wq_config_t SPI1{"wq:SPI1", 2392, -2};
|
||||
static constexpr wq_config_t SPI2{"wq:SPI2", 2392, -3};
|
||||
static constexpr wq_config_t SPI3{"wq:SPI3", 2392, -4};
|
||||
static constexpr wq_config_t SPI4{"wq:SPI4", 2392, -5};
|
||||
static constexpr wq_config_t SPI5{"wq:SPI5", 2392, -6};
|
||||
static constexpr wq_config_t SPI6{"wq:SPI6", 2392, -7};
|
||||
|
||||
static constexpr wq_config_t I2C0{"wq:I2C0", 2336, -8};
|
||||
static constexpr wq_config_t I2C1{"wq:I2C1", 2336, -9};
|
||||
|
||||
@@ -58,6 +58,9 @@ __BEGIN_DECLS
|
||||
#define MAX_LED_TIMERS 2
|
||||
#define MAX_TIMER_LED_CHANNELS 6
|
||||
|
||||
#define MAX_SPIX_SYNC_TIMERS 2
|
||||
#define MAX_TIMER_SPIX_SYNC_CHANNELS 2
|
||||
|
||||
#define IO_TIMER_ALL_MODES_CHANNELS 0
|
||||
|
||||
/* TIM_DMA_Base_address TIM DMA Base Address */
|
||||
@@ -134,6 +137,10 @@ __EXPORT extern const timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNEL
|
||||
__EXPORT extern const io_timers_t led_pwm_timers[MAX_LED_TIMERS];
|
||||
__EXPORT extern const timer_io_channels_t led_pwm_channels[MAX_TIMER_LED_CHANNELS];
|
||||
|
||||
__EXPORT extern const io_timers_t spix_sync_timers[MAX_SPIX_SYNC_TIMERS];
|
||||
__EXPORT extern const io_timers_channel_mapping_t spix_sync_channel_mapping;
|
||||
__EXPORT extern const timer_io_channels_t spix_sync_channels[MAX_TIMER_SPIX_SYNC_CHANNELS];
|
||||
|
||||
__EXPORT int io_timer_channel_init(unsigned channel, io_timer_channel_mode_t mode,
|
||||
channel_handler_t channel_handler, void *context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user