2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
25 #define MAX_MANUFACTURER_ID_LENGTH 4
26 #define MAX_BOARD_NAME_LENGTH 20
27 #define SIGNATURE_LENGTH 32
29 // Warning: This configuration is meant to be applied when loading the initial
30 // configuration for a generic board, and stay fixed after this, to enable
31 // identification of the hardware that this is running on.
32 // Do not modify this parameter group directly, use 'fc/board_info.h' instead.
34 typedef struct boardConfig_s
{
35 uint8_t signature
[SIGNATURE_LENGTH
];
36 char manufacturerId
[MAX_MANUFACTURER_ID_LENGTH
+ 1];
37 char boardName
[MAX_BOARD_NAME_LENGTH
+ 1];
38 uint8_t boardInformationSet
;
42 PG_DECLARE(boardConfig_t
, boardConfig
);