1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Get setting default values from settings.yaml (#6595)

* Get setting default values from settings.yaml

* settings: Make the generator more robust and versatile

- Add support for resolving types and values in multiple compilers
- Add support for resolving types and values in clang 10
- Add support for using the host compiler for resolving the settings

This allows us to run the generator for the unit tests, since they now
need the settings_generated.h file to get the default setting values
from it.

* Fix regexps in settings.rb and add execution bit

* Fix git revision issue

* Fix issue with settings validation

* Fix issue with targets not defining USE_MAG

Co-authored-by: Alberto García Hierro <alberto@garciahierro.com>
This commit is contained in:
Michel Pastor 2021-04-07 17:48:09 +02:00 committed by GitHub
parent 7b705bccac
commit fc0e5e2741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
85 changed files with 1708 additions and 1875 deletions

View file

@ -39,6 +39,7 @@
#include "io/serial.h"
#include "fc/config.h"
#include "fc/settings.h"
#include "msp/msp.h"
#include "msp/msp_serial.h"
@ -54,6 +55,11 @@ static mspPort_t * mspLogPort = NULL;
PG_REGISTER(logConfig_t, logConfig, PG_LOG_CONFIG, 0);
PG_RESET_TEMPLATE(logConfig_t, logConfig,
.level = SETTING_LOG_LEVEL_DEFAULT,
.topics = SETTING_LOG_TOPICS_DEFAULT
);
void logInit(void)
{
const serialPortConfig_t *portConfig = findSerialPortConfig(FUNCTION_LOG);