Add FORCE_BUSPAL
This commit is contained in:
@@ -5,5 +5,6 @@
|
||||
|
||||
// #define LED_DRIVER_STRESS_TEST
|
||||
#define FIXED_BUSPAL_BOOTLOADER 1 // Used to mark the fixed BusPal bootloader. Macro usage can be removed in the future.
|
||||
// #define FORCE_BUSPAL 1
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "config.h"
|
||||
#include "main.h"
|
||||
#include "init_clock.h"
|
||||
#include "init_peripherals.h"
|
||||
@@ -65,6 +66,11 @@ void main() {
|
||||
InitClock();
|
||||
InitPeripherals();
|
||||
|
||||
#ifdef FORCE_BUSPAL
|
||||
Wormhole.magicNumber = WORMHOLE_MAGIC_NUMBER;
|
||||
Wormhole.enumerationMode = EnumerationMode_BusPal;
|
||||
#endif
|
||||
|
||||
if (Wormhole.magicNumber == WORMHOLE_MAGIC_NUMBER && Wormhole.enumerationMode == EnumerationMode_BusPal) {
|
||||
Wormhole.magicNumber = 0;
|
||||
init_hardware();
|
||||
|
||||
Reference in New Issue
Block a user