Skip to content

Commit 6885ffc

Browse files
committed
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 <[email protected]>
1 parent ae549fc commit 6885ffc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/litex/mphalport.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ void mp_hal_delay_ms(mp_uint_t delay) {
6060
}
6161
}
6262

63+
void mp_hal_delay_us(mp_uint_t delay) {
64+
mp_hal_delay_ms(delay / 1000);
65+
}
66+
6367
extern void SysTick_Handler(void);
6468

6569
__attribute__((section(".ramtext")))

0 commit comments

Comments
 (0)