Date wit number of milliseconds
@@ -34,3 +34,7 @@ void busyWaitUntil (USER_MODE_ const uint32_t inDeadLineMS) {
void systickInterruptServiceRoutine (SECTION_MODE) {
gUptime += 1;
}
+
+uint32_t millis(ANY_MODE) {
+ return gUptime;
+}
@@ -12,3 +12,5 @@ void busyWaitUntil (USER_MODE_ const uint32_t inDeadLineMS);
//$interrupt-section SysTick
void systickInterruptServiceRoutine (SECTION_MODE) asm ("interrupt.section.SysTick");
+uint32_t millis(ANY_MODE);