diff options
| author | Sean Cross <sean@xobs.io> | 2020-04-14 11:07:53 +0800 |
|---|---|---|
| committer | Sean Cross <sean@xobs.io> | 2020-04-16 09:26:08 +0800 |
| commit | 6885ffc9afd8b5558bf301e2ade6c8a89abf6bf3 (patch) | |
| tree | a7bfe759732968df79615825468aaaea7de7df60 | |
| parent | ae549fc9da555778884ff64a2ffe45df0a5248db (diff) | |
litex: mphalport: add fake mp_hal_delay_us
Add a mp_hal_delay_us, which is required by some of the modules,
that simply calls mp_hal_delay_ms / 1000.
Signed-off-by: Sean Cross <sean@xobs.io>
| -rw-r--r-- | ports/litex/mphalport.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/litex/mphalport.c b/ports/litex/mphalport.c index 005a65aac..0b8f01298 100644 --- a/ports/litex/mphalport.c +++ b/ports/litex/mphalport.c @@ -60,6 +60,10 @@ void mp_hal_delay_ms(mp_uint_t delay) { } } +void mp_hal_delay_us(mp_uint_t delay) { + mp_hal_delay_ms(delay / 1000); +} + extern void SysTick_Handler(void); __attribute__((section(".ramtext"))) |
