From 6ab5512132d5b3d19a5bf029cb27829d41e76f8e Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 2 Mar 2017 15:02:57 +1100 Subject: stmhal: Use mp_hal_delay_ms instead of HAL_Delay. --- stmhal/modmachine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/modmachine.c') diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c index 16c50079d..d615a0f2b 100644 --- a/stmhal/modmachine.c +++ b/stmhal/modmachine.c @@ -324,7 +324,7 @@ STATIC mp_obj_t machine_freq(mp_uint_t n_args, const mp_obj_t *args) { //printf("%lu %lu %lu %lu %lu\n", sysclk_source, m, n, p, q); // let the USB CDC have a chance to process before we change the clock - HAL_Delay(5); + mp_hal_delay_ms(5); // desired system clock source is in sysclk_source RCC_ClkInitTypeDef RCC_ClkInitStruct; -- cgit v1.2.3