diff --git a/boards/bitcraze/crazyflie/syslink/CMakeLists.txt b/boards/bitcraze/crazyflie/syslink/CMakeLists.txt index 311abb73fe..f740aab0fd 100644 --- a/boards/bitcraze/crazyflie/syslink/CMakeLists.txt +++ b/boards/bitcraze/crazyflie/syslink/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( MAIN syslink COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable - STACK_MAIN 1300 SRCS syslink_main.cpp syslink_bridge.cpp diff --git a/boards/emlid/navio2/navio_sysfs_rc_in/CMakeLists.txt b/boards/emlid/navio2/navio_sysfs_rc_in/CMakeLists.txt index 2785a22b11..6bb2164df1 100644 --- a/boards/emlid/navio2/navio_sysfs_rc_in/CMakeLists.txt +++ b/boards/emlid/navio2/navio_sysfs_rc_in/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__navio_sysfs_rc_in MAIN navio_sysfs_rc_in - STACK_MAIN 1200 COMPILE_FLAGS SRCS navio_sysfs_rc_in.cpp diff --git a/cmake/px4_add_module.cmake b/cmake/px4_add_module.cmake index e995cb2dfb..b0c1b160fe 100644 --- a/cmake/px4_add_module.cmake +++ b/cmake/px4_add_module.cmake @@ -42,7 +42,6 @@ include(px4_base) # Usage: # px4_add_module(MODULE # MAIN -# [ STACK ] !!!!!DEPRECATED, USE STACK_MAIN INSTEAD!!!!!!!!! # [ STACK_MAIN ] # [ STACK_MAX ] # [ COMPILE_FLAGS ] @@ -87,7 +86,7 @@ function(px4_add_module) px4_parse_function_args( NAME px4_add_module - ONE_VALUE MODULE MAIN STACK STACK_MAIN STACK_MAX PRIORITY + ONE_VALUE MODULE MAIN STACK_MAIN STACK_MAX PRIORITY MULTI_VALUE COMPILE_FLAGS LINK_FLAGS SRCS INCLUDES DEPENDS MODULE_CONFIG OPTIONS EXTERNAL DYNAMIC UNITY_BUILD REQUIRED MODULE MAIN @@ -166,7 +165,7 @@ function(px4_add_module) # set defaults if not set set(MAIN_DEFAULT MAIN-NOTFOUND) - set(STACK_MAIN_DEFAULT 1024) + set(STACK_MAIN_DEFAULT 2048) set(PRIORITY_DEFAULT SCHED_PRIORITY_DEFAULT) foreach(property MAIN STACK_MAIN PRIORITY) diff --git a/src/drivers/barometer/bmp280/CMakeLists.txt b/src/drivers/barometer/bmp280/CMakeLists.txt index 9d4544eb57..27ee0e615b 100644 --- a/src/drivers/barometer/bmp280/CMakeLists.txt +++ b/src/drivers/barometer/bmp280/CMakeLists.txt @@ -35,9 +35,7 @@ px4_add_module( MODULE drivers__bmp280 MAIN bmp280 COMPILE_FLAGS - -Wno-cast-align # TODO: fix and enable - STACK_MAIN - 1200 + -Wno-cast-align # TODO: fix and enable SRCS bmp280_spi.cpp bmp280_i2c.cpp diff --git a/src/drivers/barometer/lps25h/CMakeLists.txt b/src/drivers/barometer/lps25h/CMakeLists.txt index 77619cf38d..457f69aa2f 100644 --- a/src/drivers/barometer/lps25h/CMakeLists.txt +++ b/src/drivers/barometer/lps25h/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__lps25h MAIN lps25h - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/barometer/mpl3115a2/CMakeLists.txt b/src/drivers/barometer/mpl3115a2/CMakeLists.txt index 5d14aeb124..74d452b9ae 100644 --- a/src/drivers/barometer/mpl3115a2/CMakeLists.txt +++ b/src/drivers/barometer/mpl3115a2/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__mpl3115a2 MAIN mpl3115a2 - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/barometer/ms5611/CMakeLists.txt b/src/drivers/barometer/ms5611/CMakeLists.txt index 8da539b0e1..24e2d1382a 100644 --- a/src/drivers/barometer/ms5611/CMakeLists.txt +++ b/src/drivers/barometer/ms5611/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE drivers__ms5611 MAIN ms5611 - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/batt_smbus/CMakeLists.txt b/src/drivers/batt_smbus/CMakeLists.txt index 1c8ff57c14..bf60e80af3 100644 --- a/src/drivers/batt_smbus/CMakeLists.txt +++ b/src/drivers/batt_smbus/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__batt_smbus MAIN batt_smbus - STACK_MAIN 1100 COMPILE_FLAGS SRCS batt_smbus.cpp diff --git a/src/drivers/camera_trigger/CMakeLists.txt b/src/drivers/camera_trigger/CMakeLists.txt index ff9bbe487b..efe00812b9 100644 --- a/src/drivers/camera_trigger/CMakeLists.txt +++ b/src/drivers/camera_trigger/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__camera_trigger MAIN camera_trigger - STACK_MAIN 1200 COMPILE_FLAGS SRCS camera_trigger.cpp diff --git a/src/drivers/differential_pressure/ets/CMakeLists.txt b/src/drivers/differential_pressure/ets/CMakeLists.txt index cbe53b9490..fe77c1172c 100644 --- a/src/drivers/differential_pressure/ets/CMakeLists.txt +++ b/src/drivers/differential_pressure/ets/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__ets_airspeed MAIN ets_airspeed - STACK_MAIN 1200 COMPILE_FLAGS SRCS ets_airspeed.cpp diff --git a/src/drivers/differential_pressure/ms4525/CMakeLists.txt b/src/drivers/differential_pressure/ms4525/CMakeLists.txt index bb7b5c847f..4173508249 100644 --- a/src/drivers/differential_pressure/ms4525/CMakeLists.txt +++ b/src/drivers/differential_pressure/ms4525/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__ms4525_airspeed MAIN ms4525_airspeed - STACK_MAIN 1200 COMPILE_FLAGS SRCS ms4525_airspeed.cpp diff --git a/src/drivers/differential_pressure/ms5525/CMakeLists.txt b/src/drivers/differential_pressure/ms5525/CMakeLists.txt index 1e90ef4b67..7214d59378 100644 --- a/src/drivers/differential_pressure/ms5525/CMakeLists.txt +++ b/src/drivers/differential_pressure/ms5525/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__ms5525_airspeed MAIN ms5525_airspeed - STACK_MAIN 1200 COMPILE_FLAGS SRCS MS5525.cpp diff --git a/src/drivers/differential_pressure/sdp3x/CMakeLists.txt b/src/drivers/differential_pressure/sdp3x/CMakeLists.txt index bca086dbea..2c45466e72 100644 --- a/src/drivers/differential_pressure/sdp3x/CMakeLists.txt +++ b/src/drivers/differential_pressure/sdp3x/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__sdp3x_airspeed MAIN sdp3x_airspeed - STACK_MAIN 1200 COMPILE_FLAGS SRCS SDP3X.cpp diff --git a/src/drivers/distance_sensor/cm8jl65/CMakeLists.txt b/src/drivers/distance_sensor/cm8jl65/CMakeLists.txt index 3c4f667a71..e64c51a5e2 100644 --- a/src/drivers/distance_sensor/cm8jl65/CMakeLists.txt +++ b/src/drivers/distance_sensor/cm8jl65/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__cm8jl65 MAIN cm8jl65 - STACK_MAIN 1200 SRCS cm8jl65.cpp MODULE_CONFIG diff --git a/src/drivers/distance_sensor/hc_sr04/CMakeLists.txt b/src/drivers/distance_sensor/hc_sr04/CMakeLists.txt index 2491ea4202..fd32cc36a8 100644 --- a/src/drivers/distance_sensor/hc_sr04/CMakeLists.txt +++ b/src/drivers/distance_sensor/hc_sr04/CMakeLists.txt @@ -34,9 +34,8 @@ px4_add_module( MODULE drivers__hc_sr04 MAIN hc_sr04 - STACK_MAIN 1200 COMPILE_FLAGS SRCS hc_sr04.cpp DEPENDS - ) \ No newline at end of file + ) diff --git a/src/drivers/distance_sensor/leddar_one/CMakeLists.txt b/src/drivers/distance_sensor/leddar_one/CMakeLists.txt index 2ed26472c2..bbaf1e6ef1 100644 --- a/src/drivers/distance_sensor/leddar_one/CMakeLists.txt +++ b/src/drivers/distance_sensor/leddar_one/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__leddar_one MAIN leddar_one - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/distance_sensor/ll40ls/CMakeLists.txt b/src/drivers/distance_sensor/ll40ls/CMakeLists.txt index 45fd63d64a..892b597f0f 100644 --- a/src/drivers/distance_sensor/ll40ls/CMakeLists.txt +++ b/src/drivers/distance_sensor/ll40ls/CMakeLists.txt @@ -35,8 +35,6 @@ px4_add_module( MAIN ll40ls COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable - STACK_MAIN - 1500 SRCS ll40ls.cpp LidarLite.cpp diff --git a/src/drivers/distance_sensor/mappydot/CMakeLists.txt b/src/drivers/distance_sensor/mappydot/CMakeLists.txt index 51a90f77c7..089bf74222 100644 --- a/src/drivers/distance_sensor/mappydot/CMakeLists.txt +++ b/src/drivers/distance_sensor/mappydot/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__mappydot MAIN mappydot - STACK_MAIN 1200 SRCS MappyDot.cpp ) diff --git a/src/drivers/distance_sensor/mb12xx/CMakeLists.txt b/src/drivers/distance_sensor/mb12xx/CMakeLists.txt index 67fb66acd1..9d1dffd059 100644 --- a/src/drivers/distance_sensor/mb12xx/CMakeLists.txt +++ b/src/drivers/distance_sensor/mb12xx/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__mb12xx MAIN mb12xx - STACK_MAIN 1400 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/distance_sensor/srf02/CMakeLists.txt b/src/drivers/distance_sensor/srf02/CMakeLists.txt index 5f80b27be7..dd412dcdfc 100644 --- a/src/drivers/distance_sensor/srf02/CMakeLists.txt +++ b/src/drivers/distance_sensor/srf02/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__srf02 MAIN srf02 - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/distance_sensor/teraranger/CMakeLists.txt b/src/drivers/distance_sensor/teraranger/CMakeLists.txt index e3edbf7f6c..f74bb1f65d 100644 --- a/src/drivers/distance_sensor/teraranger/CMakeLists.txt +++ b/src/drivers/distance_sensor/teraranger/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__teraranger MAIN teraranger - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/gps/CMakeLists.txt b/src/drivers/gps/CMakeLists.txt index 88846a63e8..f07fac969c 100644 --- a/src/drivers/gps/CMakeLists.txt +++ b/src/drivers/gps/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_git_submodule(TARGET git_gps_devices PATH "devices") px4_add_module( MODULE drivers__gps MAIN gps - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/heater/CMakeLists.txt b/src/drivers/heater/CMakeLists.txt index a81d51ee0b..6f1fe2e249 100644 --- a/src/drivers/heater/CMakeLists.txt +++ b/src/drivers/heater/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__heater MAIN heater - STACK_MAIN 1024 COMPILE_FLAGS SRCS heater.cpp diff --git a/src/drivers/imu/adis16448/CMakeLists.txt b/src/drivers/imu/adis16448/CMakeLists.txt index 1b7d18551e..4f4463fb03 100644 --- a/src/drivers/imu/adis16448/CMakeLists.txt +++ b/src/drivers/imu/adis16448/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__imu__adis16448 MAIN adis16448 - STACK_MAIN 1400 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/imu/adis16477/CMakeLists.txt b/src/drivers/imu/adis16477/CMakeLists.txt index 132dd77cab..fb12c05ec5 100644 --- a/src/drivers/imu/adis16477/CMakeLists.txt +++ b/src/drivers/imu/adis16477/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__imu__adis16477 MAIN adis16477 - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/imu/adis16497/CMakeLists.txt b/src/drivers/imu/adis16497/CMakeLists.txt index 10c0e99d18..027d89280a 100644 --- a/src/drivers/imu/adis16497/CMakeLists.txt +++ b/src/drivers/imu/adis16497/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__imu__adis16497 MAIN adis16497 - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/imu/bmi055/CMakeLists.txt b/src/drivers/imu/bmi055/CMakeLists.txt index 049d325fd5..92b6d34da6 100644 --- a/src/drivers/imu/bmi055/CMakeLists.txt +++ b/src/drivers/imu/bmi055/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE drivers__bmi055 MAIN bmi055 - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable - SRCS + SRCS BMI055_accel.cpp BMI055_gyro.cpp bmi055_main.cpp diff --git a/src/drivers/imu/bmi088/CMakeLists.txt b/src/drivers/imu/bmi088/CMakeLists.txt index ec2b4c223e..35a92c3cfe 100644 --- a/src/drivers/imu/bmi088/CMakeLists.txt +++ b/src/drivers/imu/bmi088/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__bmi88 MAIN bmi088 - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/imu/bmi160/CMakeLists.txt b/src/drivers/imu/bmi160/CMakeLists.txt index 19f5dfc3d4..343775a3b5 100644 --- a/src/drivers/imu/bmi160/CMakeLists.txt +++ b/src/drivers/imu/bmi160/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__bmi160 MAIN bmi160 - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/imu/fxas21002c/CMakeLists.txt b/src/drivers/imu/fxas21002c/CMakeLists.txt index d547899368..ea04e45239 100644 --- a/src/drivers/imu/fxas21002c/CMakeLists.txt +++ b/src/drivers/imu/fxas21002c/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__fxas21002c MAIN fxas21002c - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/imu/fxos8701cq/CMakeLists.txt b/src/drivers/imu/fxos8701cq/CMakeLists.txt index 209615dacc..34ffa9b602 100644 --- a/src/drivers/imu/fxos8701cq/CMakeLists.txt +++ b/src/drivers/imu/fxos8701cq/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__fxos8701cq MAIN fxos8701cq - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/imu/icm20948/CMakeLists.txt b/src/drivers/imu/icm20948/CMakeLists.txt index d956d14194..0d7dcbbae8 100644 --- a/src/drivers/imu/icm20948/CMakeLists.txt +++ b/src/drivers/imu/icm20948/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__icm20948 MAIN icm20948 - STACK_MAIN 1500 COMPILE_FLAGS SRCS icm20948.cpp diff --git a/src/drivers/imu/l3gd20/CMakeLists.txt b/src/drivers/imu/l3gd20/CMakeLists.txt index 6ca8ec793d..6e090a9308 100644 --- a/src/drivers/imu/l3gd20/CMakeLists.txt +++ b/src/drivers/imu/l3gd20/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__l3gd20 MAIN l3gd20 - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/imu/lsm303d/CMakeLists.txt b/src/drivers/imu/lsm303d/CMakeLists.txt index 38d49e2955..2ad45e295f 100644 --- a/src/drivers/imu/lsm303d/CMakeLists.txt +++ b/src/drivers/imu/lsm303d/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__lsm303d MAIN lsm303d - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/imu/mpu6000/CMakeLists.txt b/src/drivers/imu/mpu6000/CMakeLists.txt index ec8c861537..ad8aa89cf1 100644 --- a/src/drivers/imu/mpu6000/CMakeLists.txt +++ b/src/drivers/imu/mpu6000/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__mpu6000 MAIN mpu6000 - STACK_MAIN 1500 SRCS MPU6000.cpp MPU6000_I2C.cpp diff --git a/src/drivers/imu/mpu9250/CMakeLists.txt b/src/drivers/imu/mpu9250/CMakeLists.txt index 747decb21a..28ef1a59f8 100644 --- a/src/drivers/imu/mpu9250/CMakeLists.txt +++ b/src/drivers/imu/mpu9250/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__mpu9250 MAIN mpu9250 - STACK_MAIN 1500 COMPILE_FLAGS SRCS AK8963_I2C.cpp diff --git a/src/drivers/lights/oreoled/CMakeLists.txt b/src/drivers/lights/oreoled/CMakeLists.txt index 33fdafbc02..4cd2df040e 100644 --- a/src/drivers/lights/oreoled/CMakeLists.txt +++ b/src/drivers/lights/oreoled/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__oreoled MAIN oreoled - STACK_MAIN 1024 COMPILE_FLAGS SRCS oreoled.cpp diff --git a/src/drivers/lights/rgbled/CMakeLists.txt b/src/drivers/lights/rgbled/CMakeLists.txt index 304c0b4686..fd69c3e836 100644 --- a/src/drivers/lights/rgbled/CMakeLists.txt +++ b/src/drivers/lights/rgbled/CMakeLists.txt @@ -34,8 +34,6 @@ px4_add_module( MODULE drivers__rgbled MAIN rgbled - STACK_MAIN - 1500 SRCS rgbled.cpp DEPENDS diff --git a/src/drivers/lights/rgbled_ncp5623c/CMakeLists.txt b/src/drivers/lights/rgbled_ncp5623c/CMakeLists.txt index b44b386842..951e1aa1d5 100755 --- a/src/drivers/lights/rgbled_ncp5623c/CMakeLists.txt +++ b/src/drivers/lights/rgbled_ncp5623c/CMakeLists.txt @@ -34,8 +34,6 @@ px4_add_module( MODULE drivers__rgbled_ncp5623c MAIN rgbled_ncp5623c - STACK_MAIN - 1500 SRCS rgbled_ncp5623c.cpp DEPENDS diff --git a/src/drivers/lights/rgbled_pwm/CMakeLists.txt b/src/drivers/lights/rgbled_pwm/CMakeLists.txt index 959864f3a8..2001cdc492 100644 --- a/src/drivers/lights/rgbled_pwm/CMakeLists.txt +++ b/src/drivers/lights/rgbled_pwm/CMakeLists.txt @@ -34,8 +34,6 @@ px4_add_module( MODULE drivers__rgbled_pwm MAIN rgbled_pwm - STACK_MAIN - 1500 SRCS rgbled_pwm.cpp DEPENDS diff --git a/src/drivers/magnetometer/ak09916/CMakeLists.txt b/src/drivers/magnetometer/ak09916/CMakeLists.txt index 6bedb1c54e..4bf7b87085 100644 --- a/src/drivers/magnetometer/ak09916/CMakeLists.txt +++ b/src/drivers/magnetometer/ak09916/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__ak09916 MAIN ak09916 - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/magnetometer/bmm150/CMakeLists.txt b/src/drivers/magnetometer/bmm150/CMakeLists.txt index 6adda9d085..0622ba76e8 100644 --- a/src/drivers/magnetometer/bmm150/CMakeLists.txt +++ b/src/drivers/magnetometer/bmm150/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__bmm150 MAIN bmm150 - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/magnetometer/hmc5883/CMakeLists.txt b/src/drivers/magnetometer/hmc5883/CMakeLists.txt index 6186e6b4b0..9933945fe0 100644 --- a/src/drivers/magnetometer/hmc5883/CMakeLists.txt +++ b/src/drivers/magnetometer/hmc5883/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__hmc5883 MAIN hmc5883 - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/magnetometer/ist8310/CMakeLists.txt b/src/drivers/magnetometer/ist8310/CMakeLists.txt index 553e18d765..a2bfd23057 100644 --- a/src/drivers/magnetometer/ist8310/CMakeLists.txt +++ b/src/drivers/magnetometer/ist8310/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MAIN ist8310 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable - STACK_MAIN 1500 SRCS ist8310.cpp DEPENDS diff --git a/src/drivers/magnetometer/lis3mdl/CMakeLists.txt b/src/drivers/magnetometer/lis3mdl/CMakeLists.txt index 2763852bde..5d159fbbaf 100644 --- a/src/drivers/magnetometer/lis3mdl/CMakeLists.txt +++ b/src/drivers/magnetometer/lis3mdl/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__lis3mdl MAIN lis3mdl - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/magnetometer/qmc5883/CMakeLists.txt b/src/drivers/magnetometer/qmc5883/CMakeLists.txt index e674ba6275..4a2b6f4650 100644 --- a/src/drivers/magnetometer/qmc5883/CMakeLists.txt +++ b/src/drivers/magnetometer/qmc5883/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__qmc5883 MAIN qmc5883 - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/magnetometer/rm3100/CMakeLists.txt b/src/drivers/magnetometer/rm3100/CMakeLists.txt index 7d9248c47c..f464153c49 100644 --- a/src/drivers/magnetometer/rm3100/CMakeLists.txt +++ b/src/drivers/magnetometer/rm3100/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__rm3100 MAIN rm3100 - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/optical_flow/paw3902/CMakeLists.txt b/src/drivers/optical_flow/paw3902/CMakeLists.txt index 04def77b74..1683937e5c 100644 --- a/src/drivers/optical_flow/paw3902/CMakeLists.txt +++ b/src/drivers/optical_flow/paw3902/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE drivers__optical_flow__paw3902 MAIN paw3902 - STACK_MAIN 1500 SRCS paw3902_main.cpp PAW3902.cpp diff --git a/src/drivers/optical_flow/pmw3901/CMakeLists.txt b/src/drivers/optical_flow/pmw3901/CMakeLists.txt index bdead0107e..e3dd59ce18 100644 --- a/src/drivers/optical_flow/pmw3901/CMakeLists.txt +++ b/src/drivers/optical_flow/pmw3901/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( MAIN pmw3901 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable - STACK_MAIN 1400 SRCS pmw3901.cpp ) diff --git a/src/drivers/optical_flow/px4flow/CMakeLists.txt b/src/drivers/optical_flow/px4flow/CMakeLists.txt index b169a5a9d3..e3928d80d1 100644 --- a/src/drivers/optical_flow/px4flow/CMakeLists.txt +++ b/src/drivers/optical_flow/px4flow/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__px4flow MAIN px4flow - STACK_MAIN 1500 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/protocol_splitter/CMakeLists.txt b/src/drivers/protocol_splitter/CMakeLists.txt index ebcad6f89d..de6865adf6 100644 --- a/src/drivers/protocol_splitter/CMakeLists.txt +++ b/src/drivers/protocol_splitter/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__protocol_splitter MAIN protocol_splitter - STACK_MAIN 1200 SRCS protocol_splitter.cpp DEPENDS diff --git a/src/drivers/pwm_input/CMakeLists.txt b/src/drivers/pwm_input/CMakeLists.txt index 3079933e78..e3e8a7d32c 100644 --- a/src/drivers/pwm_input/CMakeLists.txt +++ b/src/drivers/pwm_input/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__pwm_input MAIN pwm_input - STACK_MAIN 1024 COMPILE_FLAGS -Wno-pmf-conversions -Wno-cast-align # TODO: fix and enable diff --git a/src/drivers/px4fmu/CMakeLists.txt b/src/drivers/px4fmu/CMakeLists.txt index 42083f40a2..d2acecb551 100644 --- a/src/drivers/px4fmu/CMakeLists.txt +++ b/src/drivers/px4fmu/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__px4fmu MAIN fmu - STACK_MAIN 1200 COMPILE_FLAGS SRCS fmu.cpp diff --git a/src/drivers/px4io/CMakeLists.txt b/src/drivers/px4io/CMakeLists.txt index e7fb8eb177..f82c3f9487 100644 --- a/src/drivers/px4io/CMakeLists.txt +++ b/src/drivers/px4io/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__px4io MAIN px4io - STACK_MAIN 1816 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/drivers/qurt/fc_addon/mpu_spi/CMakeLists.txt b/src/drivers/qurt/fc_addon/mpu_spi/CMakeLists.txt index 60b553491f..15562a382e 100644 --- a/src/drivers/qurt/fc_addon/mpu_spi/CMakeLists.txt +++ b/src/drivers/qurt/fc_addon/mpu_spi/CMakeLists.txt @@ -47,7 +47,6 @@ set_target_properties(mpu9x50 PROPERTIES IMPORTED_LOCATION ${FC_ADDON}/flight_co px4_add_module( MODULE platforms__qurt__fc_addon__mpu_spi MAIN mpu9x50 - STACK_MAIN 1200 INCLUDES ${FC_ADDON}/flight_controller/hexagon/inc SRCS diff --git a/src/drivers/qurt/fc_addon/rc_receiver/CMakeLists.txt b/src/drivers/qurt/fc_addon/rc_receiver/CMakeLists.txt index 3ef6cec84a..ac5344653b 100644 --- a/src/drivers/qurt/fc_addon/rc_receiver/CMakeLists.txt +++ b/src/drivers/qurt/fc_addon/rc_receiver/CMakeLists.txt @@ -47,7 +47,6 @@ set_target_properties(rc_receiver PROPERTIES IMPORTED_LOCATION ${FC_ADDON}/fligh px4_add_module( MODULE platforms__qurt__fc_addon__rc_receiver MAIN rc_receiver - STACK_MAIN 1200 INCLUDES ${FC_ADDON}/flight_controller/hexagon/inc SRCS diff --git a/src/drivers/qurt/fc_addon/uart_esc/CMakeLists.txt b/src/drivers/qurt/fc_addon/uart_esc/CMakeLists.txt index 9694951655..64f33c77c0 100644 --- a/src/drivers/qurt/fc_addon/uart_esc/CMakeLists.txt +++ b/src/drivers/qurt/fc_addon/uart_esc/CMakeLists.txt @@ -47,7 +47,6 @@ set_target_properties(uart_esc PROPERTIES IMPORTED_LOCATION ${FC_ADDON}/flight_c px4_add_module( MODULE platforms__qurt__fc_addon__uart_esc MAIN uart_esc - STACK_MAIN 1200 INCLUDES ${FC_ADDON}/flight_controller/hexagon/inc SRCS diff --git a/src/drivers/rc_input/CMakeLists.txt b/src/drivers/rc_input/CMakeLists.txt index 87d4173814..1ad8262481 100644 --- a/src/drivers/rc_input/CMakeLists.txt +++ b/src/drivers/rc_input/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__rc_input MAIN rc_input - STACK_MAIN 1200 COMPILE_FLAGS SRCS RCInput.cpp diff --git a/src/drivers/rpi_rc_in/CMakeLists.txt b/src/drivers/rpi_rc_in/CMakeLists.txt index c16b2ebc17..69ff3eb7dc 100644 --- a/src/drivers/rpi_rc_in/CMakeLists.txt +++ b/src/drivers/rpi_rc_in/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__rpi_rc_in MAIN rpi_rc_in - STACK_MAIN 1200 COMPILE_FLAGS SRCS rpi_rc_in.cpp diff --git a/src/drivers/safety_button/CMakeLists.txt b/src/drivers/safety_button/CMakeLists.txt index 517ac72b67..f1fb9c3e6b 100644 --- a/src/drivers/safety_button/CMakeLists.txt +++ b/src/drivers/safety_button/CMakeLists.txt @@ -34,8 +34,6 @@ px4_add_module( MODULE drivers__safety_button MAIN safety_button - STACK_MAIN - 1500 SRCS SafetyButton.cpp DEPENDS diff --git a/src/drivers/telemetry/bst/CMakeLists.txt b/src/drivers/telemetry/bst/CMakeLists.txt index 1a969fa3c0..c9c9e7ff79 100644 --- a/src/drivers/telemetry/bst/CMakeLists.txt +++ b/src/drivers/telemetry/bst/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__bst MAIN bst - STACK_MAIN 1200 COMPILE_FLAGS SRCS bst.cpp diff --git a/src/drivers/telemetry/frsky_telemetry/CMakeLists.txt b/src/drivers/telemetry/frsky_telemetry/CMakeLists.txt index 8f2bed90cf..719227703b 100644 --- a/src/drivers/telemetry/frsky_telemetry/CMakeLists.txt +++ b/src/drivers/telemetry/frsky_telemetry/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__frsky_telemetry MAIN frsky_telemetry - STACK_MAIN 1500 COMPILE_FLAGS SRCS frsky_data.cpp diff --git a/src/drivers/telemetry/iridiumsbd/CMakeLists.txt b/src/drivers/telemetry/iridiumsbd/CMakeLists.txt index 5c603f91c2..7380277a73 100644 --- a/src/drivers/telemetry/iridiumsbd/CMakeLists.txt +++ b/src/drivers/telemetry/iridiumsbd/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE drivers__iridiumsbd MAIN iridiumsbd STACK 1024 - STACK_MAIN 1024 COMPILE_FLAGS SRCS IridiumSBD.cpp diff --git a/src/drivers/test_ppm/CMakeLists.txt b/src/drivers/test_ppm/CMakeLists.txt index bbc85147bc..dbe3b7b648 100644 --- a/src/drivers/test_ppm/CMakeLists.txt +++ b/src/drivers/test_ppm/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__test_ppm MAIN test_ppm - STACK_MAIN 1200 COMPILE_FLAGS SRCS test_ppm.cpp diff --git a/src/drivers/uavcan/CMakeLists.txt b/src/drivers/uavcan/CMakeLists.txt index 065e172991..702b239abd 100644 --- a/src/drivers/uavcan/CMakeLists.txt +++ b/src/drivers/uavcan/CMakeLists.txt @@ -92,8 +92,6 @@ add_custom_target(px4_uavcan_dsdlc DEPENDS px4_uavcan_dsdlc_run.stamp) px4_add_module( MODULE modules__uavcan MAIN uavcan - STACK_MAIN 3200 - STACK_MAX 1500 INCLUDES ${DSDLC_OUTPUT} ${PX4_SOURCE_DIR}/mavlink/include/mavlink diff --git a/src/examples/bottle_drop/CMakeLists.txt b/src/examples/bottle_drop/CMakeLists.txt index 7b0fc64cd6..9f02942cb9 100644 --- a/src/examples/bottle_drop/CMakeLists.txt +++ b/src/examples/bottle_drop/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE modules__bottle_drop MAIN bottle_drop - STACK_MAIN 1200 COMPILE_FLAGS SRCS bottle_drop.cpp diff --git a/src/examples/fixedwing_control/CMakeLists.txt b/src/examples/fixedwing_control/CMakeLists.txt index 3152597dfc..41b0a82856 100644 --- a/src/examples/fixedwing_control/CMakeLists.txt +++ b/src/examples/fixedwing_control/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE examples__fixedwing_control MAIN ex_fixedwing_control - STACK_MAIN 1200 STACK_MAX 1300 SRCS main.cpp diff --git a/src/examples/hwtest/CMakeLists.txt b/src/examples/hwtest/CMakeLists.txt index eb0a77cb3d..b9f3d3a9c8 100644 --- a/src/examples/hwtest/CMakeLists.txt +++ b/src/examples/hwtest/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE examples__hwtest MAIN ex_hwtest - STACK_MAIN 2000 SRCS hwtest.c DEPENDS diff --git a/src/examples/matlab_csv_serial/CMakeLists.txt b/src/examples/matlab_csv_serial/CMakeLists.txt index 9a6202d1ea..9cc4294a5b 100644 --- a/src/examples/matlab_csv_serial/CMakeLists.txt +++ b/src/examples/matlab_csv_serial/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE examples__matlab_csv_serial MAIN matlab_csv_serial - STACK_MAIN 2000 SRCS matlab_csv_serial.c DEPENDS diff --git a/src/examples/px4_mavlink_debug/CMakeLists.txt b/src/examples/px4_mavlink_debug/CMakeLists.txt index a9a0ca724f..35c91a27e1 100644 --- a/src/examples/px4_mavlink_debug/CMakeLists.txt +++ b/src/examples/px4_mavlink_debug/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE examples__px4_mavlink_debug MAIN px4_mavlink_debug - STACK_MAIN 2000 SRCS px4_mavlink_debug.cpp DEPENDS diff --git a/src/examples/px4_simple_app/CMakeLists.txt b/src/examples/px4_simple_app/CMakeLists.txt index 5685369f27..6a91bc47e1 100644 --- a/src/examples/px4_simple_app/CMakeLists.txt +++ b/src/examples/px4_simple_app/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE examples__px4_simple_app MAIN px4_simple_app - STACK_MAIN 2000 SRCS px4_simple_app.c DEPENDS diff --git a/src/examples/rover_steering_control/CMakeLists.txt b/src/examples/rover_steering_control/CMakeLists.txt index 8afaeae2c5..74213b7729 100644 --- a/src/examples/rover_steering_control/CMakeLists.txt +++ b/src/examples/rover_steering_control/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE examples__rover_steering_control MAIN rover_steering_control - STACK_MAIN 1200 STACK_MAX 1300 SRCS main.cpp diff --git a/src/examples/segway/CMakeLists.txt b/src/examples/segway/CMakeLists.txt index caf2b4401b..11dd8e917f 100644 --- a/src/examples/segway/CMakeLists.txt +++ b/src/examples/segway/CMakeLists.txt @@ -33,8 +33,6 @@ px4_add_module( MODULE examples__segway MAIN segway - STACK_MAIN 1400 - STACK_MAX 1400 SRCS blocks.cpp segway_main.cpp diff --git a/src/examples/uuv_example_app/CMakeLists.txt b/src/examples/uuv_example_app/CMakeLists.txt index bcfa534b4b..647b52168c 100644 --- a/src/examples/uuv_example_app/CMakeLists.txt +++ b/src/examples/uuv_example_app/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE examples__uuv_example_app MAIN uuv_example_app - STACK_MAIN 2000 SRCS uuv_example_app.cpp DEPENDS diff --git a/src/modules/attitude_estimator_q/CMakeLists.txt b/src/modules/attitude_estimator_q/CMakeLists.txt index 09c8fc7e2c..6563648fc5 100644 --- a/src/modules/attitude_estimator_q/CMakeLists.txt +++ b/src/modules/attitude_estimator_q/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MODULE modules__attitude_estimator_q MAIN attitude_estimator_q COMPILE_FLAGS - STACK_MAIN 1200 STACK_MAX 1600 SRCS attitude_estimator_q_main.cpp diff --git a/src/modules/commander/CMakeLists.txt b/src/modules/commander/CMakeLists.txt index 81094d3de7..d90db86817 100644 --- a/src/modules/commander/CMakeLists.txt +++ b/src/modules/commander/CMakeLists.txt @@ -36,8 +36,6 @@ add_subdirectory(failure_detector) px4_add_module( MODULE modules__commander MAIN commander - STACK_MAIN 4096 - STACK_MAX 2450 COMPILE_FLAGS SRCS accelerometer_calibration.cpp diff --git a/src/modules/dataman/CMakeLists.txt b/src/modules/dataman/CMakeLists.txt index fc67ee0a24..6c0a1ab695 100644 --- a/src/modules/dataman/CMakeLists.txt +++ b/src/modules/dataman/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE modules__dataman MAIN dataman - STACK_MAIN 1200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/modules/ekf2/CMakeLists.txt b/src/modules/ekf2/CMakeLists.txt index 890e5fab59..9c0d1df0a9 100644 --- a/src/modules/ekf2/CMakeLists.txt +++ b/src/modules/ekf2/CMakeLists.txt @@ -34,8 +34,7 @@ px4_add_module( MODULE modules__ekf2 MAIN ekf2 COMPILE_FLAGS - STACK_MAIN 2500 - STACK_MAX 4000 + STACK_MAX 2400 SRCS ekf2_main.cpp DEPENDS diff --git a/src/modules/events/CMakeLists.txt b/src/modules/events/CMakeLists.txt index 86607d9bb6..a05f52919b 100644 --- a/src/modules/events/CMakeLists.txt +++ b/src/modules/events/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE modules__events MAIN send_event - STACK_MAIN 2200 COMPILE_FLAGS SRCS rc_loss_alarm.cpp diff --git a/src/modules/fw_pos_control_l1/CMakeLists.txt b/src/modules/fw_pos_control_l1/CMakeLists.txt index 21d0b666ee..920a635ee3 100644 --- a/src/modules/fw_pos_control_l1/CMakeLists.txt +++ b/src/modules/fw_pos_control_l1/CMakeLists.txt @@ -37,7 +37,6 @@ add_subdirectory(runway_takeoff) px4_add_module( MODULE modules__fw_pos_control_l1 MAIN fw_pos_control_l1 - STACK_MAIN 1200 SRCS FixedwingPositionControl.cpp DEPENDS diff --git a/src/modules/land_detector/CMakeLists.txt b/src/modules/land_detector/CMakeLists.txt index 89ea165fac..2ae0d3a475 100644 --- a/src/modules/land_detector/CMakeLists.txt +++ b/src/modules/land_detector/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE modules__land_detector MAIN land_detector - STACK_MAIN 1200 COMPILE_FLAGS SRCS land_detector_main.cpp diff --git a/src/modules/landing_target_estimator/CMakeLists.txt b/src/modules/landing_target_estimator/CMakeLists.txt index b8b8c40755..146869aa3f 100644 --- a/src/modules/landing_target_estimator/CMakeLists.txt +++ b/src/modules/landing_target_estimator/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE modules__landing_target_estimator MAIN landing_target_estimator - STACK_MAIN 1200 COMPILE_FLAGS SRCS landing_target_estimator_main.cpp diff --git a/src/modules/load_mon/CMakeLists.txt b/src/modules/load_mon/CMakeLists.txt index 52d4350715..d98108ca2d 100644 --- a/src/modules/load_mon/CMakeLists.txt +++ b/src/modules/load_mon/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE modules__load_mon MAIN load_mon - STACK_MAIN 1200 COMPILE_FLAGS SRCS load_mon.cpp diff --git a/src/modules/logger/CMakeLists.txt b/src/modules/logger/CMakeLists.txt index ef5e4eab62..5949f50e0b 100644 --- a/src/modules/logger/CMakeLists.txt +++ b/src/modules/logger/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MODULE modules__logger MAIN logger PRIORITY "SCHED_PRIORITY_MAX-30" - STACK_MAIN 2200 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/modules/mavlink/CMakeLists.txt b/src/modules/mavlink/CMakeLists.txt index 201d98ebf4..0df7d2ff49 100644 --- a/src/modules/mavlink/CMakeLists.txt +++ b/src/modules/mavlink/CMakeLists.txt @@ -36,8 +36,6 @@ px4_add_git_submodule(TARGET git_mavlink_v2 PATH "${PX4_SOURCE_DIR}/mavlink/incl px4_add_module( MODULE modules__mavlink MAIN mavlink - STACK_MAIN 1600 - STACK_MAX 1600 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable -Wno-address-of-packed-member # TODO: fix in c_library_v2 diff --git a/src/modules/mc_att_control/CMakeLists.txt b/src/modules/mc_att_control/CMakeLists.txt index 1d0c445fdd..82b8ad4e87 100644 --- a/src/modules/mc_att_control/CMakeLists.txt +++ b/src/modules/mc_att_control/CMakeLists.txt @@ -36,7 +36,6 @@ add_subdirectory(AttitudeControl) px4_add_module( MODULE modules__mc_att_control MAIN mc_att_control - STACK_MAIN 1200 STACK_MAX 3500 COMPILE_FLAGS SRCS diff --git a/src/modules/mc_pos_control/CMakeLists.txt b/src/modules/mc_pos_control/CMakeLists.txt index 8b9e61a8a4..6a75028b01 100644 --- a/src/modules/mc_pos_control/CMakeLists.txt +++ b/src/modules/mc_pos_control/CMakeLists.txt @@ -38,7 +38,6 @@ px4_add_module( MAIN mc_pos_control COMPILE_FLAGS -Wno-implicit-fallthrough # TODO: fix and remove - STACK_MAIN 1500 SRCS mc_pos_control_main.cpp PositionControl.cpp diff --git a/src/modules/navigator/CMakeLists.txt b/src/modules/navigator/CMakeLists.txt index a11c4de27e..61d846de4a 100644 --- a/src/modules/navigator/CMakeLists.txt +++ b/src/modules/navigator/CMakeLists.txt @@ -34,8 +34,6 @@ px4_add_module( MODULE modules__navigator MAIN navigator - STACK_MAIN 1300 - COMPILE_FLAGS SRCS navigator_main.cpp navigator_mode.cpp diff --git a/src/modules/replay/CMakeLists.txt b/src/modules/replay/CMakeLists.txt index 53655e2974..d93d254915 100644 --- a/src/modules/replay/CMakeLists.txt +++ b/src/modules/replay/CMakeLists.txt @@ -34,8 +34,6 @@ px4_add_module( MODULE modules__replay MAIN replay COMPILE_FLAGS - STACK_MAIN 1000 - STACK_MAX 4000 SRCS replay_main.cpp DEPENDS diff --git a/src/modules/sensors/CMakeLists.txt b/src/modules/sensors/CMakeLists.txt index 30115e313b..b9f845434e 100644 --- a/src/modules/sensors/CMakeLists.txt +++ b/src/modules/sensors/CMakeLists.txt @@ -38,7 +38,6 @@ px4_add_module( MODULE modules__sensors MAIN sensors PRIORITY "SCHED_PRIORITY_MAX-5" - STACK_MAIN 1500 SRCS voted_sensors_update.cpp rc_update.cpp diff --git a/src/modules/sih/CMakeLists.txt b/src/modules/sih/CMakeLists.txt index 23ebf62b91..53b3d9f333 100644 --- a/src/modules/sih/CMakeLists.txt +++ b/src/modules/sih/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE modules__sih MAIN sih - STACK_MAIN 1200 STACK_MAX 1024 COMPILE_FLAGS SRCS diff --git a/src/modules/uORB/CMakeLists.txt b/src/modules/uORB/CMakeLists.txt index 38ca2f9f5f..365127e73e 100644 --- a/src/modules/uORB/CMakeLists.txt +++ b/src/modules/uORB/CMakeLists.txt @@ -39,7 +39,6 @@ if(NOT "${PX4_BOARD}" MATCHES "px4_io") # TODO: fix this hack (move uORB to plat px4_add_module( MODULE modules__uORB MAIN uorb - STACK_MAIN 2100 SRCS ORBSet.hpp Publication.hpp diff --git a/src/modules/uORB/uORB_tests/CMakeLists.txt b/src/modules/uORB/uORB_tests/CMakeLists.txt index ac8472a4a5..ea77e368f3 100644 --- a/src/modules/uORB/uORB_tests/CMakeLists.txt +++ b/src/modules/uORB/uORB_tests/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE modules__uORB__uORB_tests MAIN uorb_tests - STACK_MAIN 2048 PRIORITY "SCHED_PRIORITY_MAX" SRCS uORB_tests_main.cpp diff --git a/src/modules/vmount/CMakeLists.txt b/src/modules/vmount/CMakeLists.txt index 8b996ffeb2..069a1cca13 100644 --- a/src/modules/vmount/CMakeLists.txt +++ b/src/modules/vmount/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE drivers__vmount MAIN vmount COMPILE_FLAGS - STACK_MAIN 1024 SRCS input.cpp input_mavlink.cpp @@ -48,4 +47,4 @@ px4_add_module( git_ecl ecl_geo ) - + diff --git a/src/modules/vtol_att_control/CMakeLists.txt b/src/modules/vtol_att_control/CMakeLists.txt index a5f5dabc8d..067b35a262 100644 --- a/src/modules/vtol_att_control/CMakeLists.txt +++ b/src/modules/vtol_att_control/CMakeLists.txt @@ -33,8 +33,6 @@ px4_add_module( MODULE modules__vtol_att_control MAIN vtol_att_control - STACK_MAIN 1300 - COMPILE_FLAGS SRCS vtol_att_control_main.cpp tiltrotor.cpp diff --git a/src/systemcmds/dmesg/CMakeLists.txt b/src/systemcmds/dmesg/CMakeLists.txt index 556ae6d37a..089bddcb8d 100644 --- a/src/systemcmds/dmesg/CMakeLists.txt +++ b/src/systemcmds/dmesg/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__dmesg MAIN dmesg - STACK_MAIN 900 SRCS dmesg.cpp ) diff --git a/src/systemcmds/hardfault_log/CMakeLists.txt b/src/systemcmds/hardfault_log/CMakeLists.txt index c48b372839..fca7fc6839 100644 --- a/src/systemcmds/hardfault_log/CMakeLists.txt +++ b/src/systemcmds/hardfault_log/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__hardfault_log MAIN hardfault_log - STACK_MAIN 2100 COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable SRCS diff --git a/src/systemcmds/led_control/CMakeLists.txt b/src/systemcmds/led_control/CMakeLists.txt index 46be8140e4..a7396160cc 100644 --- a/src/systemcmds/led_control/CMakeLists.txt +++ b/src/systemcmds/led_control/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__led_control MAIN led_control - STACK_MAIN 2500 COMPILE_FLAGS SRCS led_control.cpp diff --git a/src/systemcmds/motor_ramp/CMakeLists.txt b/src/systemcmds/motor_ramp/CMakeLists.txt index da92a7bf5a..b5684aeb6d 100644 --- a/src/systemcmds/motor_ramp/CMakeLists.txt +++ b/src/systemcmds/motor_ramp/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__motor_ramp MAIN motor_ramp - STACK_MAIN 1200 COMPILE_FLAGS -Wno-write-strings SRCS diff --git a/src/systemcmds/mtd/CMakeLists.txt b/src/systemcmds/mtd/CMakeLists.txt index 1251613e96..5e077f91eb 100644 --- a/src/systemcmds/mtd/CMakeLists.txt +++ b/src/systemcmds/mtd/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__mtd MAIN mtd - STACK_MAIN 1500 COMPILE_FLAGS SRCS mtd.c diff --git a/src/systemcmds/nshterm/CMakeLists.txt b/src/systemcmds/nshterm/CMakeLists.txt index bed8206351..a8bb6ce56f 100644 --- a/src/systemcmds/nshterm/CMakeLists.txt +++ b/src/systemcmds/nshterm/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE systemcmds__nshterm MAIN nshterm PRIORITY "SCHED_PRIORITY_DEFAULT-30" - STACK_MAIN 1500 COMPILE_FLAGS SRCS nshterm.c diff --git a/src/systemcmds/param/CMakeLists.txt b/src/systemcmds/param/CMakeLists.txt index 91a2640ca8..0a27cf9589 100644 --- a/src/systemcmds/param/CMakeLists.txt +++ b/src/systemcmds/param/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__param MAIN param - STACK_MAIN 2500 COMPILE_FLAGS -Wno-array-bounds SRCS diff --git a/src/systemcmds/perf/CMakeLists.txt b/src/systemcmds/perf/CMakeLists.txt index adecec55c2..efae6abb16 100644 --- a/src/systemcmds/perf/CMakeLists.txt +++ b/src/systemcmds/perf/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__perf MAIN perf - STACK_MAIN 1800 COMPILE_FLAGS SRCS perf.c diff --git a/src/systemcmds/pwm/CMakeLists.txt b/src/systemcmds/pwm/CMakeLists.txt index 98d5603bb8..859ce1c8d3 100644 --- a/src/systemcmds/pwm/CMakeLists.txt +++ b/src/systemcmds/pwm/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__pwm MAIN pwm - STACK_MAIN 2500 COMPILE_FLAGS -Wno-array-bounds SRCS diff --git a/src/systemcmds/reboot/CMakeLists.txt b/src/systemcmds/reboot/CMakeLists.txt index ea30185f39..a7b33ea7ee 100644 --- a/src/systemcmds/reboot/CMakeLists.txt +++ b/src/systemcmds/reboot/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__reboot MAIN reboot - STACK_MAIN 800 COMPILE_FLAGS SRCS reboot.c diff --git a/src/systemcmds/sd_bench/CMakeLists.txt b/src/systemcmds/sd_bench/CMakeLists.txt index 86a3820269..8522c57ad0 100644 --- a/src/systemcmds/sd_bench/CMakeLists.txt +++ b/src/systemcmds/sd_bench/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__sd_bench MAIN sd_bench - STACK_MAIN 2500 COMPILE_FLAGS SRCS sd_bench.c diff --git a/src/systemcmds/shutdown/CMakeLists.txt b/src/systemcmds/shutdown/CMakeLists.txt index 7f791b80c2..82b7ebaa42 100644 --- a/src/systemcmds/shutdown/CMakeLists.txt +++ b/src/systemcmds/shutdown/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__shutdown MAIN shutdown - STACK_MAIN 800 COMPILE_FLAGS SRCS shutdown.c diff --git a/src/systemcmds/top/CMakeLists.txt b/src/systemcmds/top/CMakeLists.txt index 4e51d44139..f2f7f290c3 100644 --- a/src/systemcmds/top/CMakeLists.txt +++ b/src/systemcmds/top/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__top MAIN top - STACK_MAIN 2000 PRIORITY "SCHED_PRIORITY_MAX" COMPILE_FLAGS SRCS diff --git a/src/systemcmds/topic_listener/CMakeLists.txt b/src/systemcmds/topic_listener/CMakeLists.txt index 3b759e8cec..7f64ee157c 100644 --- a/src/systemcmds/topic_listener/CMakeLists.txt +++ b/src/systemcmds/topic_listener/CMakeLists.txt @@ -46,7 +46,6 @@ add_custom_target(generate_topic_listener px4_add_module( MODULE systemcmds__topic_listener MAIN listener - STACK_MAIN 1800 COMPILE_FLAGS INCLUDES ${CMAKE_CURRENT_SOURCE_DIR} diff --git a/src/systemcmds/tune_control/CMakeLists.txt b/src/systemcmds/tune_control/CMakeLists.txt index 38a8ea1d2f..c90ae25793 100644 --- a/src/systemcmds/tune_control/CMakeLists.txt +++ b/src/systemcmds/tune_control/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__tune_control MAIN tune_control - STACK_MAIN 2500 # TODO: choose an appropriate stack size COMPILE_FLAGS SRCS tune_control.cpp diff --git a/src/systemcmds/ver/CMakeLists.txt b/src/systemcmds/ver/CMakeLists.txt index 347f890d51..e4f3353fa0 100644 --- a/src/systemcmds/ver/CMakeLists.txt +++ b/src/systemcmds/ver/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE systemcmds__ver MAIN ver - STACK_MAIN 1224 COMPILE_FLAGS SRCS ver.c diff --git a/src/templates/module/CMakeLists.txt b/src/templates/module/CMakeLists.txt index 75dfa2a6a8..876988238b 100644 --- a/src/templates/module/CMakeLists.txt +++ b/src/templates/module/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE templates__module MAIN module - STACK_MAIN 1024 SRCS module.cpp DEPENDS