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>
This commit is contained in:
Sean Cross 2020-04-14 11:07:53 +08:00
parent ae549fc9da
commit 6885ffc9af
1 changed files with 4 additions and 0 deletions

View File

@ -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); extern void SysTick_Handler(void);
__attribute__((section(".ramtext"))) __attribute__((section(".ramtext")))