From: Keith Packard Date: Fri, 28 Jan 2022 23:40:19 +0000 (-0800) Subject: ao_serial: Change serial_sleep_for APIs to use AO_TICK_TYPE X-Git-Tag: 1.9.10.4~21 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=55ca3cb64e19664e5ffc19d6ff92f46e4252f3b8 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 --- 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);