Files
edgetx-gx12/radio/src/storage/yaml/yaml_datastructs.cpp
T
3djcandGitHub bc8087cbf1 feat: Add Radiomaster Boxer (#2877)
* Radiomaster Boxer

* chore: Add Build system bits

* chore: `EEPROM_VARIANT` no longer used
2022-12-31 16:45:09 +10:00

76 lines
2.4 KiB
C++

/*
* Copyright (C) EdgeTX
*
* Based on code named
* opentx - https://github.com/opentx/opentx
* th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x
*
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include "opentx.h"
#include "yaml_node.h"
// Warning: this file must be kept in sync with the CMakeLists.txt
// in the same directory.
#include "yaml_datastructs_funcs.cpp"
#if defined(PCBX12S)
#include "yaml_datastructs_x12s.cpp"
#elif defined(PCBX10)
#include "yaml_datastructs_x10.cpp"
#elif defined(PCBNV14)
#include "yaml_datastructs_nv14.cpp"
#elif defined(PCBX7)
#if defined(RADIO_T12)
#include "yaml_datastructs_t12.cpp"
#elif defined(RADIO_TLITE)
#include "yaml_datastructs_tlite.cpp"
#elif defined(RADIO_TX12)
#include "yaml_datastructs_tx12.cpp"
#elif defined(RADIO_TX12MK2)
#include "yaml_datastructs_tx12mk2.cpp"
#elif defined(RADIO_BOXER)
#include "yaml_datastructs_boxer.cpp"
#elif defined(RADIO_ZORRO)
#include "yaml_datastructs_zorro.cpp"
#elif defined(RADIO_T8)
#include "yaml_datastructs_t8.cpp"
#elif defined(RADIO_TPRO)
#include "yaml_datastructs_tpro.cpp"
#elif defined(RADIO_LR3PRO)
#include "yaml_datastructs_lr3pro.cpp"
#else
#include "yaml_datastructs_x7.cpp"
#endif
#elif defined(PCBX9LITE) && !defined(PCBX9LITES)
#include "yaml_datastructs_x9lite.cpp"
#elif defined(PCBX9LITES)
#include "yaml_datastructs_x9lites.cpp"
#elif defined(PCBXLITE) && !defined(PCBXLITES)
#include "yaml_datastructs_xlite.cpp"
#elif defined(PCBXLITES)
#include "yaml_datastructs_xlites.cpp"
#elif defined(PCBX9E)
#include "yaml_datastructs_x9e.cpp"
#elif defined(PCBX9D) || defined(PCBX9DP)
#include "yaml_datastructs_x9d.cpp"
#else
#error "Board not supported by YAML storage"
#endif
static_assert(MAX_STR > MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN,
"MAX_STR > MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN");