2021-11-10 10:19:03 +00:00
|
|
|
/**
|
|
|
|
* @file config.h
|
|
|
|
* @author Jens True (jens.chr.true@gmail.com)
|
|
|
|
* @brief Global configuration
|
|
|
|
* @version 0.1
|
|
|
|
* @date 2021-11-10
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2021
|
|
|
|
*
|
|
|
|
*/
|
2019-01-10 15:42:29 +00:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
2021-11-10 10:19:03 +00:00
|
|
|
/**
|
|
|
|
* Helper for joining strings
|
|
|
|
*/
|
2019-01-10 15:42:29 +00:00
|
|
|
#define STR_HELPER(x) #x
|
2021-11-10 10:19:03 +00:00
|
|
|
/**
|
|
|
|
* Stringify macro defines
|
|
|
|
*/
|
2019-01-10 15:42:29 +00:00
|
|
|
#define STR(x) STR_HELPER(x)
|
|
|
|
|
|
|
|
|
2021-11-10 10:19:03 +00:00
|
|
|
#define PROJECT_NAME "MinimOSD-JSON" /**< Project name */
|
|
|
|
#define VERSION_MAJOR 0 /**< Major version number */
|
|
|
|
#define VERSION_MINOR 1 /**< Minor version number */
|
|
|
|
#define VERSION_BUILD 1 /**< Build number */
|
2019-01-10 15:42:29 +00:00
|
|
|
|
|
|
|
|
2021-11-10 10:19:03 +00:00
|
|
|
/**
|
|
|
|
* Semver style version number
|
|
|
|
*/
|
|
|
|
#define VERSION_STRING STR(VERSION_MAJOR) "." STR(VERSION_MINOR) "." STR(VERSION_BUILD)
|
2019-01-10 15:42:29 +00:00
|
|
|
|
2021-11-10 10:19:03 +00:00
|
|
|
#define BAUDRATE 115200 /**< Serial baudrate */
|
|
|
|
#define DISP_OFFSET_X 49 /**< Display offset along the X-axis. Varies from display to display. */
|
|
|
|
#define DISP_OFFSET_Y 27 /**< Display offset along the Y-axis. Varies from display to display. */
|
2019-01-10 15:42:29 +00:00
|
|
|
#endif /* CONFIG_H */
|