src/lib/paramters: Add a new interface library for protected build user side

Implement an interface for protected build to access parameters.

The implementation only does IOCTL calls to the kernel, where the parameters
live.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-11-09 08:54:10 +02:00
committed by Beat Küng
parent 41a7ae3db2
commit 0d31aadcc3
9 changed files with 613 additions and 9 deletions
+9
View File
@@ -72,6 +72,11 @@ using namespace time_literals;
/* Include functions common to user and kernel sides */
#include "parameters_common.cpp"
#if defined(__PX4_NUTTX) && !defined(CONFIG_BUILD_FLAT)
#include <px4_platform/board_ctrl.h>
#include "parameters_ioctl.h"
#endif
#if defined(FLASH_BASED_PARAMS)
#include "flashparams/flashparams.h"
#else
@@ -192,6 +197,10 @@ param_init()
param_find_perf = perf_alloc(PC_COUNT, "param: find");
param_get_perf = perf_alloc(PC_COUNT, "param: get");
param_set_perf = perf_alloc(PC_ELAPSED, "param: set");
#if defined(__PX4_NUTTX) && !defined(CONFIG_BUILD_FLAT)
px4_register_boardct_ioctl(_PARAMIOCBASE, param_ioctl);
#endif
}
/**