1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Add ability to specify a config.c file for a config target (#14180)

- adding configTargetPreInit() method to execute code for the config target
This commit is contained in:
Jay Blackman 2025-01-21 10:58:26 +11:00 committed by GitHub
parent 123faebacf
commit 5e815ba608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 25 deletions

View file

@ -278,15 +278,15 @@ void init(void)
// initialize IO (needed for all IO operations)
IOInitGlobal();
#ifdef USE_HARDWARE_REVISION_DETECTION
detectHardwareRevision();
#endif
#if defined(USE_TARGET_CONFIG)
// Call once before the config is loaded for any target specific configuration required to support loading the config
targetConfiguration();
#endif
#if defined(USE_CONFIG_TARGET_PREINIT)
configTargetPreInit();
#endif
enum {
FLASH_INIT_ATTEMPTED = (1 << 0),
SD_INIT_ATTEMPTED = (1 << 1),