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:
parent
123faebacf
commit
5e815ba608
4 changed files with 29 additions and 25 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue