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:
parent
ae549fc9da
commit
6885ffc9af
|
@ -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")))
|
||||||
|
|
Loading…
Reference in New Issue