From 55ca3cb64e19664e5ffc19d6ff92f46e4252f3b8 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 28 Jan 2022 15:40:19 -0800 Subject: [PATCH] ao_serial: Change serial_sleep_for APIs to use AO_TICK_TYPE These timeouts should all be short, but there's no reason to use a different type. Signed-off-by: Keith Packard --- src/kernel/ao_serial.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kernel/ao_serial.h b/src/kernel/ao_serial.h index 3500a093..2bf71015 100644 --- a/src/kernel/ao_serial.h +++ b/src/kernel/ao_serial.h @@ -36,7 +36,7 @@ int _ao_serial0_pollchar(void); uint8_t -_ao_serial0_sleep_for(uint16_t timeout); +_ao_serial0_sleep_for(AO_TICK_TYPE timeout); void ao_serial0_putchar(char c); @@ -59,7 +59,7 @@ int _ao_serial1_pollchar(void); uint8_t -_ao_serial1_sleep_for(uint16_t timeout); +_ao_serial1_sleep_for(AO_TICK_TYPE timeout); void ao_serial1_putchar(char c); @@ -82,7 +82,7 @@ int _ao_serial2_pollchar(void); uint8_t -_ao_serial2_sleep_for(uint16_t timeout); +_ao_serial2_sleep_for(AO_TICK_TYPE timeout); void ao_serial2_putchar(char c); @@ -105,7 +105,7 @@ int _ao_serial3_pollchar(void); uint8_t -_ao_serial3_sleep_for(uint16_t timeout); +_ao_serial3_sleep_for(AO_TICK_TYPE timeout); void ao_serial3_putchar(char c); -- 2.30.2