aboutsummaryrefslogtreecommitdiff
path: root/include/tft.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tft.h')
-rw-r--r--include/tft.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/tft.h b/include/tft.h
index 1e2fce2..c7dd680 100644
--- a/include/tft.h
+++ b/include/tft.h
@@ -1,8 +1,7 @@
#ifndef TFT_H
#define TFT_H
-#include <hardware.h>
-#include <stdint.h>
+#include <zeta.h>
#define TFT_WIDTH 480
#define TFT_HEIGHT 320
@@ -112,14 +111,14 @@ tft_ram_wr(void)
}
static inline void
-tft_pixel(uint8_t r, uint8_t g, uint8_t b)
+tft_pixel(u8 r, u8 g, u8 b)
{
tft_data = (r << 3) | ((g & 0x38) >> 3);
tft_data = ((g & 0x07) << 5) | b & 0x1F;
}
void
-tft_set_area(unsigned int x, unsigned int y, unsigned int w, unsigned int h);
+tft_set_area(u16 x, u16 y, u16 w, u16 h);
void
tft_init(void);