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