|
@@ -1,11 +1,13 @@
|
|
|
#include "all-headers.h"
|
|
|
|
|
|
-void startSystick (USER_MODE) {
|
|
|
+static void startSystick (BOOT_MODE) {
|
|
|
SYST_RVR = CPU_MHZ * 1000 - 1 ; // Underflow every ms
|
|
|
SYST_CVR = 0 ;
|
|
|
SYST_CSR = SYST_CSR_CLKSOURCE | SYST_CSR_ENABLE ;
|
|
|
}
|
|
|
|
|
|
+MACRO_BOOT_ROUTINE (startSystick);
|
|
|
+
|
|
|
void busyWaitDuring (USER_MODE_ const uint32_t inDelayMS) {
|
|
|
const uint32_t COUNTFLAG_MASK = 1 << 16 ;
|
|
|
for (uint32_t i = 0; i < inDelayMS; i++) {
|