diff options
Diffstat (limited to 'src/tft.c')
-rw-r--r-- | src/tft.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |