cmake don't build param "c" files and remove param defines

- these aren't actual source code
This commit is contained in:
Daniel Agar
2019-11-11 10:25:42 -05:00
parent f984c4e450
commit 1c4e854f93
42 changed files with 34 additions and 68 deletions
+2
View File
@@ -43,6 +43,8 @@
#include "batt_smbus.h"
#include <lib/parameters/param.h>
extern "C" __EXPORT int batt_smbus_main(int argc, char *argv[]);
BATT_SMBUS::BATT_SMBUS(SMBus *interface, const char *path) :
@@ -63,6 +63,7 @@
#include <drivers/drv_range_finder.h>
#include <drivers/device/device.h>
#include <drivers/device/ringbuffer.h>
#include <lib/parameters/param.h>
#include <uORB/uORB.h>
#include <uORB/topics/distance_sensor.h>
@@ -61,6 +61,7 @@
#include <math.h>
#include <unistd.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <drivers/drv_hrt.h>
@@ -39,6 +39,7 @@
*/
#include <drivers/device/i2c.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/defines.h>
@@ -48,7 +48,7 @@
#include <unistd.h>
#include <px4_platform_common/getopt.h>
#include <errno.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
@@ -50,7 +50,7 @@
#include <unistd.h>
#include <px4_platform_common/getopt.h>
#include <errno.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
@@ -52,7 +52,7 @@
#include <errno.h>
#include <systemlib/err.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <systemlib/mavlink_log.h>
@@ -50,6 +50,7 @@
#include <errno.h>
#include <systemlib/err.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <systemlib/mavlink_log.h>
@@ -50,7 +50,7 @@
#include <unistd.h>
#include <px4_platform_common/getopt.h>
#include <errno.h>
#include <lib/parameters/param.h>
#include <systemlib/err.h>
#include <perf/perf_counter.h>
#include <systemlib/mavlink_log.h>
+1
View File
@@ -47,6 +47,7 @@
#include <termios.h>
#include <lib/parameters/param.h>
#include <mathlib/mathlib.h>
#include <matrix/math.hpp>
#include <px4_platform_common/cli.h>
+1
View File
@@ -44,6 +44,7 @@
#include <drivers/device/i2c.h>
#include <lib/led/led.h>
#include <lib/parameters/param.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#include <uORB/Subscription.hpp>
@@ -43,6 +43,7 @@
#include <drivers/device/i2c.h>
#include <lib/led/led.h>
#include <lib/parameters/param.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#include <uORB/Subscription.hpp>
-1
View File
@@ -36,7 +36,6 @@ px4_add_module(
COMPILE_FLAGS
SRCS
mkblctrl.cpp
mkblctrl_params.c
DEPENDS
mixer
)
@@ -44,6 +44,7 @@
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/getopt.h>
#include <drivers/device/i2c.h>
#include <lib/parameters/param.h>
#include <lib/perf/perf_counter.h>
#include <drivers/drv_hrt.h>
#include <uORB/uORB.h>
@@ -51,7 +51,6 @@ px4_add_module(
${FC_ADDON}/flight_controller/hexagon/inc
SRCS
mpu9x50_main.cpp
mpu9x50_params.c
DEPENDS
)
target_link_libraries(platforms__qurt__fc_addon__mpu_spi PRIVATE mpu9x50)
@@ -51,6 +51,5 @@ px4_add_module(
${FC_ADDON}/flight_controller/hexagon/inc
SRCS
rc_receiver_main.cpp
rc_receiver_params.c
)
target_link_libraries(platforms__qurt__fc_addon__rc_receiver PRIVATE rc_receiver)
@@ -51,7 +51,6 @@ px4_add_module(
${FC_ADDON}/flight_controller/hexagon/inc
SRCS
uart_esc_main.cpp
uart_esc_params.c
DEPENDS
)
target_link_libraries(platforms__qurt__fc_addon__uart_esc PRIVATE uart_esc)
+1
View File
@@ -46,6 +46,7 @@
#include <poll.h>
#include <stdio.h>
#include <termios.h>
#include <lib/parameters/param.h>
#include <uORB/SubscriptionPollable.hpp>
#include <uORB/topics/actuator_controls.h>
#include <uORB/topics/wheel_encoders.h>
@@ -37,7 +37,6 @@ px4_add_module(
COMPILE_FLAGS
SRCS
IridiumSBD.cpp
iridiumsbd_params.c
MODULE_CONFIG
module.yaml
DEPENDS
@@ -1,4 +1,3 @@
#include <parameters/param.h>
/**
* Satellite radio read interval. Only required to be nonzero if data is not sent using a ring call.
-1
View File
@@ -111,7 +111,6 @@ px4_add_module(
# Main
uavcan_main.cpp
uavcan_servers.cpp
uavcan_params.c
# Actuators
actuators/esc.cpp
-3
View File
@@ -35,9 +35,6 @@
* @author Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#include <px4_platform_common/px4_config.h>
#include <parameters/param.h>
/**
* UAVCAN mode
*
-1
View File
@@ -81,7 +81,6 @@ px4_add_module(
uavcanesc_main.cpp
indication_controller.cpp
led.cpp
uavcanesc_params.c
DEPENDS
drivers_bootloaders
git_uavcan
-1
View File
@@ -81,7 +81,6 @@ px4_add_module(
sim_controller.cpp
led.cpp
resources.cpp
uavcannode_params.c
DEPENDS
drivers_bootloaders
git_uavcan
+2 -1
View File
@@ -46,12 +46,13 @@
#include <stdint.h>
#include <px4_platform_common/defines.h>
#include <lib/parameters/param.h>
bool circuit_breaker_enabled(const char *breaker, int32_t magic)
{
int32_t val = -1;
return (PX4_PARAM_GET_BYNAME(breaker, &val) == 0) && (val == magic);
return (param_get(param_find(breaker), &val) == 0) && (val == magic);
}
bool circuit_breaker_enabled_by_val(int32_t breaker_val, int32_t magic)
-21
View File
@@ -410,27 +410,6 @@ __EXPORT void param_print_status(void);
*/
__EXPORT void param_control_autosave(bool enable);
/*
* Macros creating static parameter definitions.
*
* Note that these structures are not known by name; they are
* collected into a section that is iterated by the parameter
* code.
*
* Note that these macros cannot be used in C++ code due to
* their use of designated initializers. They should probably
* be refactored to avoid the use of a union for param_value_u.
*/
/** define an int32 parameter */
#define PARAM_DEFINE_INT32(_name, _default)
/** define a float parameter */
#define PARAM_DEFINE_FLOAT(_name, _default)
/** define a parameter that points to a structure */
#define PARAM_DEFINE_STRUCT(_name, _default)
/**
* Parameter value union.
*/
@@ -37,7 +37,7 @@
#include <px4_platform_common/defines.h>
#include <px4_platform_common/px4_config.h>
#include <lib/parameters/param.h>
#include <systemlib/mavlink_log.h>
#include <uORB/PublicationQueued.hpp>
#include <uORB/topics/vehicle_command.h>
@@ -39,6 +39,7 @@
#include <drivers/drv_hrt.h>
#include <HealthFlags.h>
#include <lib/parameters/param.h>
#include <systemlib/mavlink_log.h>
#include <uORB/Subscription.hpp>
#include <uORB/topics/subsystem_info.h>
@@ -35,6 +35,7 @@
#include <HealthFlags.h>
#include <math.h>
#include <lib/parameters/param.h>
#include <systemlib/mavlink_log.h>
#include <uORB/Subscription.hpp>
#include <uORB/topics/estimator_status.h>
@@ -34,6 +34,8 @@
#include "../PreFlightCheck.hpp"
#include <HealthFlags.h>
#include <lib/parameters/param.h>
#include <systemlib/mavlink_log.h>
#include <uORB/Subscription.hpp>
#include <uORB/topics/sensor_preflight.h>
@@ -34,6 +34,8 @@
#include "../PreFlightCheck.hpp"
#include <HealthFlags.h>
#include <lib/parameters/param.h>
#include <mathlib/mathlib.h>
#include <systemlib/mavlink_log.h>
#include <uORB/Subscription.hpp>
@@ -42,6 +42,7 @@
#include <px4_platform_common/log.h>
#include <mathlib/mathlib.h>
#include <lib/parameters/param.h>
#include "polyfit.hpp"
+1
View File
@@ -46,6 +46,7 @@
#include <px4_platform_common/tasks.h>
#include <px4_platform_common/time.h>
#include <px4_platform_common/shutdown.h>
#include <lib/parameters/param.h>
#include <cstring>
#include <float.h>
+1 -1
View File
@@ -44,7 +44,7 @@
#include <uORB/topics/vehicle_command_ack.h>
#include <uORB/topics/position_setpoint_triplet.h>
#include <drivers/drv_hrt.h>
#include <lib/parameters/param.h>
#include <px4_platform_common/defines.h>
#include <px4_platform_common/posix.h>
#include <errno.h>
+1
View File
@@ -52,6 +52,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <systemlib/err.h>
#include <lib/parameters/param.h>
#include <px4_platform_common/defines.h>
#include <px4_platform_common/tasks.h>
+1
View File
@@ -39,6 +39,7 @@
#include <unit_test.h>
#include <px4_platform_common/defines.h>
#include <lib/parameters/param.h>
#include <errno.h>
#include <fcntl.h>