aboutsummaryrefslogtreecommitdiff
path: root/src/tft.c
diff options
context:
space:
mode:
authorThomas Albers Raviola <thomas@thomaslabs.org>2024-12-03 21:52:59 +0100
committerThomas Albers Raviola <thomas@thomaslabs.org>2024-12-03 21:52:59 +0100
commit7a8c601eec433f7c75d3291d64bb3d41fe50c8ae (patch)
tree1b1038a4dc80cc496a4c608ea760300f8b6d68f1 /src/tft.c
parent08b7ee440269c881546421da6efe1b6ae122b566 (diff)
Use custom types
Diffstat (limited to 'src/tft.c')
-rw-r--r--src/tft.c10
1 files changed, 5 insertions, 5 deletions
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 <zeta.h>
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;