From 6b34bf362d99d766e14bea4e04cfefe4ea8d3fb8 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Sun, 5 Nov 2023 18:33:12 +0100 Subject: [PATCH] Linux: declared an instance of Module17 calibration data to allow linking with Module17 UI code. Declared the "mod17CalData" variable inside linux platform.c to make the symbol available to the linker when building the linux emulator with the Module17 UI. --- platform/targets/linux/platform.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/targets/linux/platform.c b/platform/targets/linux/platform.c index f2e346d2..6979a245 100644 --- a/platform/targets/linux/platform.c +++ b/platform/targets/linux/platform.c @@ -15,11 +15,20 @@ * along with this program; if not, see * ***************************************************************************/ +#include #include #include #include #include "emulator.h" +/* + * Create the data structure holding Module17 calibration data to make the + * corresponding symbol available to the ui.c object file and, consequently, allow + * the linker doing its job. This allows to compile and execute OpenRTX on linux + * with the Module17 UI to make development faster. + */ +mod17Calib_t mod17CalData; + static const hwInfo_t hwInfo = {