mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
- Including ability to define custom defaults as char[] that is baked into the build - removed unnecessary size of custom defaults header parsing (defines provided by build process or in board.h for devs).
54 lines
1.9 KiB
C
54 lines
1.9 KiB
C
/*
|
|
* This file is part of Cleanflight and Betaflight.
|
|
*
|
|
* Cleanflight and Betaflight are free software. You can redistribute
|
|
* this software and/or modify this software under the terms of the
|
|
* GNU General Public License as published by the Free Software
|
|
* Foundation, either version 3 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* Cleanflight and Betaflight are distributed in the hope that they
|
|
* 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this software.
|
|
*
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "common/utils.h"
|
|
|
|
#define FC_FIRMWARE_NAME "Betaflight"
|
|
#define FC_FIRMWARE_IDENTIFIER "BTFL"
|
|
#define FC_VERSION_MAJOR 4 // increment when a major release is made (big new feature, etc)
|
|
#define FC_VERSION_MINOR 4 // increment when a minor release is made (small new feature, change etc)
|
|
#define FC_VERSION_PATCH_LEVEL 0 // increment when a bug is fixed
|
|
|
|
#define FC_VERSION_STRING STR(FC_VERSION_MAJOR) "." STR(FC_VERSION_MINOR) "." STR(FC_VERSION_PATCH_LEVEL)
|
|
|
|
#ifndef __BOARD__
|
|
#define BOARD_NAME FC_FIRMWARE_NAME
|
|
#else
|
|
#define BOARD_NAME __BOARD__
|
|
#endif
|
|
|
|
#ifndef MANUFACTURER_ID
|
|
#define MANUFACTURER_ID FC_FIRMWARE_IDENTIFIER
|
|
#endif
|
|
|
|
extern const char* const targetName;
|
|
|
|
#define GIT_SHORT_REVISION_LENGTH 7 // lower case hexadecimal digits.
|
|
extern const char* const shortGitRevision;
|
|
|
|
#define BUILD_DATE_LENGTH 11
|
|
extern const char* const buildDate; // "MMM DD YYYY" MMM = Jan/Feb/...
|
|
|
|
#define BUILD_TIME_LENGTH 8
|
|
extern const char* const buildTime; // "HH:MM:SS"
|
|
|
|
#define MSP_API_VERSION_STRING STR(API_VERSION_MAJOR) "." STR(API_VERSION_MINOR)
|