-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3b30a5
commit b2da994
Showing
9 changed files
with
62 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
|
||
/* | ||
Control init behaviour: | ||
By default _libc_app_init will | ||
- Check if gpio3 is pulled low and cancel boot if so | ||
- Init the debug uart to 115200 baud | ||
- Wait 10 seconds to give time to reflash on error | ||
You can define a couple of symbols which, if present, will configure these features. | ||
In order to configure them, place the following makros somewhere in the global scope of your program once. | ||
Placeing the twice will result in a linker error. | ||
*/ | ||
|
||
#ifdef __cplusplus | ||
/* Disable auto init of the debug uart */ | ||
#define INIT_DISABLE_DEBUG_UART() extern "C" { int _init_debug_uart = 0; } | ||
/* Disable 10 second delay */ | ||
#define INIT_DISABLE_SAFETY_DELAY() extern "C" { int _init_safety_delay = 0; } | ||
#else | ||
/* Disable auto init of the debug uart */ | ||
#define INIT_DISABLE_DEBUG_UART() int _init_debug_uart = 0; | ||
/* Disable 10 second delay */ | ||
#define INIT_DISABLE_SAFETY_DELAY() int _init_safety_delay = 0; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters