a21f56b2d5
tested using: stmhal: https://github.com/dhylands/upy-examples/blob/master/elapsed.py teensy: https://github.com/dhylands/upy-examples/blob/master/teensy/elapsed.py
17 lines
211 B
C
17 lines
211 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
#include "mpconfig.h"
|
|
|
|
#include "Arduino.h"
|
|
|
|
#include MICROPY_HAL_H
|
|
|
|
uint32_t HAL_GetTick(void) {
|
|
return millis();
|
|
}
|
|
|
|
void HAL_Delay(uint32_t Delay) {
|
|
delay(Delay);
|
|
}
|