cmake: param refactoring

Use a struct to contain all the parameters so the ordering in
memory is not machine dependent.

Add number of parameters to the param struct. The struct actually
allows direct accessing by the member name if desired.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-09-11 12:41:00 -07:00
parent ad321927e9
commit fc3acdb2c1
4 changed files with 62 additions and 30 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ px4_generate_parameters()
add_executable(mainapp
${CMAKE_SOURCE_DIR}/src/platforms/posix/main.cpp
${CMAKE_BINARY_DIR}/parameters.c
${CMAKE_BINARY_DIR}/px4_parameters.c
apps.h
)