From 7a8c601eec433f7c75d3291d64bb3d41fe50c8ae Mon Sep 17 00:00:00 2001 From: Thomas Albers Raviola Date: Tue, 3 Dec 2024 21:52:59 +0100 Subject: Use custom types --- src/tft.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/tft.c') diff --git a/src/tft.c b/src/tft.c index b75e8bb..8eca5c5 100644 --- a/src/tft.c +++ b/src/tft.c @@ -3,7 +3,7 @@ #include void -_delay_ms(uint8_t ms); +_delay_ms(u8 ms); /* * Driver for the ILI9341 TFT Chip @@ -25,7 +25,7 @@ tft_enable_ext_cmd(void) } static inline void -tft_memory_access_ctrl(uint8_t bits) +tft_memory_access_ctrl(u8 bits) { tft_ctrl = MADCTL; tft_data = bits; @@ -43,7 +43,7 @@ tft_display_on(void) } static inline void -tft_pixel_format(uint8_t dbi, uint8_t dpi) +tft_pixel_format(u8 dbi, u8 dpi) { tft_ctrl = COLMOD; tft_data = (dpi << 4) | dbi; @@ -60,7 +60,7 @@ tft_set_rgb_interface(void) } static inline void -tft_set_col_addr(uint16_t start, uint16_t end) +tft_set_col_addr(u16 start, u16 end) { tft_ctrl = CASET; tft_data = start >> 8; @@ -70,7 +70,7 @@ tft_set_col_addr(uint16_t start, uint16_t end) } static inline void -tft_set_page_addr(uint16_t start, uint16_t end) +tft_set_page_addr(u16 start, u16 end) { tft_ctrl = PASET; tft_data = start >> 8; -- cgit v1.2.3