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.
This commit is contained in:
Silvano Seva 2023-11-05 18:33:12 +01:00
parent 12e2a0f18b
commit 6b34bf362d
1 changed files with 9 additions and 0 deletions

View File

@ -15,11 +15,20 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <calibration/calibInfo_Mod17.h>
#include <interfaces/platform.h>
#include <interfaces/nvmem.h>
#include <stdio.h>
#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 =
{