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>
crypto-aes
Sean Cross 2 years ago
parent ae549fc9da
commit 6885ffc9af
  1. 4
      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")))

Loading…
Cancel
Save