diff --git a/platforms/common/include/px4_platform_common/px4_work_queue/WorkQueueManager.hpp b/platforms/common/include/px4_platform_common/px4_work_queue/WorkQueueManager.hpp index dbee70a8ed9..afd97e74191 100644 --- a/platforms/common/include/px4_platform_common/px4_work_queue/WorkQueueManager.hpp +++ b/platforms/common/include/px4_platform_common/px4_work_queue/WorkQueueManager.hpp @@ -60,12 +60,16 @@ static constexpr wq_config_t SPI3{"wq:SPI3", CONFIG_WQ_SPI_STACKSIZE, (int8_t)CO static constexpr wq_config_t SPI4{"wq:SPI4", CONFIG_WQ_SPI_STACKSIZE, (int8_t)CONFIG_WQ_SPI4_PRIORITY}; static constexpr wq_config_t SPI5{"wq:SPI5", CONFIG_WQ_SPI_STACKSIZE, (int8_t)CONFIG_WQ_SPI5_PRIORITY}; static constexpr wq_config_t SPI6{"wq:SPI6", CONFIG_WQ_SPI_STACKSIZE, (int8_t)CONFIG_WQ_SPI6_PRIORITY}; +static constexpr wq_config_t SPI7{"wq:SPI7", CONFIG_WQ_SPI_STACKSIZE, (int8_t)CONFIG_WQ_SPI7_PRIORITY}; +static constexpr wq_config_t SPI8{"wq:SPI8", CONFIG_WQ_SPI_STACKSIZE, (int8_t)CONFIG_WQ_SPI8_PRIORITY}; static constexpr wq_config_t I2C0{"wq:I2C0", CONFIG_WQ_I2C_STACKSIZE, (int8_t)CONFIG_WQ_I2C0_PRIORITY}; static constexpr wq_config_t I2C1{"wq:I2C1", CONFIG_WQ_I2C_STACKSIZE, (int8_t)CONFIG_WQ_I2C1_PRIORITY}; static constexpr wq_config_t I2C2{"wq:I2C2", CONFIG_WQ_I2C_STACKSIZE, (int8_t)CONFIG_WQ_I2C2_PRIORITY}; static constexpr wq_config_t I2C3{"wq:I2C3", CONFIG_WQ_I2C_STACKSIZE, (int8_t)CONFIG_WQ_I2C3_PRIORITY}; static constexpr wq_config_t I2C4{"wq:I2C4", CONFIG_WQ_I2C_STACKSIZE, (int8_t)CONFIG_WQ_I2C4_PRIORITY}; +static constexpr wq_config_t I2C5{"wq:I2C5", CONFIG_WQ_I2C_STACKSIZE, (int8_t)CONFIG_WQ_I2C5_PRIORITY}; +static constexpr wq_config_t I2C6{"wq:I2C6", CONFIG_WQ_I2C_STACKSIZE, (int8_t)CONFIG_WQ_I2C6_PRIORITY}; // PX4 att/pos controllers, highest priority after sensors. static constexpr wq_config_t nav_and_controllers{"wq:nav_and_controllers", CONFIG_WQ_NAV_AND_CONTROLLERS_STACKSIZE, (int8_t)CONFIG_WQ_NAV_AND_CONTROLLERS_PRIORITY}; diff --git a/platforms/common/px4_work_queue/Kconfig b/platforms/common/px4_work_queue/Kconfig index 06c3592edf6..e8ee525f235 100644 --- a/platforms/common/px4_work_queue/Kconfig +++ b/platforms/common/px4_work_queue/Kconfig @@ -76,6 +76,20 @@ config WQ_SPI6_PRIORITY help Sets the relative priority for the SPI6 work queue. +config WQ_SPI7_PRIORITY + int "Relative priority for wq:SPI7" + default -7 + range -255 0 + help + Sets the relative priority for the SPI7 work queue. + +config WQ_SPI8_PRIORITY + int "Relative priority for wq:SPI8" + default -7 + range -255 0 + help + Sets the relative priority for the SPI8 work queue. + endmenu # SPI Bus Work Queues menu "I2C Bus Work Queues" @@ -122,6 +136,20 @@ config WQ_I2C4_PRIORITY help Sets the relative priority for the I2C4 work queue. +config WQ_I2C5_PRIORITY + int "Relative priority for wq:I2C5" + default -12 + range -255 0 + help + Sets the relative priority for the I2C5 work queue. + +config WQ_I2C6_PRIORITY + int "Relative priority for wq:I2C6" + default -12 + range -255 0 + help + Sets the relative priority for the I2C6 work queue. + endmenu # I2C Bus Work Queues config WQ_NAV_AND_CONTROLLERS_STACKSIZE diff --git a/platforms/common/px4_work_queue/WorkQueueManager.cpp b/platforms/common/px4_work_queue/WorkQueueManager.cpp index bfd9d552c19..20a822f563d 100644 --- a/platforms/common/px4_work_queue/WorkQueueManager.cpp +++ b/platforms/common/px4_work_queue/WorkQueueManager.cpp @@ -154,6 +154,10 @@ device_bus_to_wq(uint32_t device_id_int) case 3: return wq_configurations::I2C3; case 4: return wq_configurations::I2C4; + + case 5: return wq_configurations::I2C5; + + case 6: return wq_configurations::I2C6; } } else if (bus_type == device::Device::DeviceBusType_SPI) { @@ -171,6 +175,10 @@ device_bus_to_wq(uint32_t device_id_int) case 5: return wq_configurations::SPI5; case 6: return wq_configurations::SPI6; + + case 7: return wq_configurations::SPI7; + + case 8: return wq_configurations::SPI8; } }