Create release.yml
[betaflight.git] / src / main / pg / board.h
blob2c3650aa428f5d5f26656d9e9f18c4703bd17974
1 /*
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)
8 * any later version.
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/>.
21 #pragma once
23 #include "pg/pg.h"
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;
39 uint8_t signatureSet;
40 } boardConfig_t;
42 PG_DECLARE(boardConfig_t, boardConfig);