aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Albers Raviola <thomas@thomaslabs.org>2024-12-03 21:45:47 +0100
committerThomas Albers Raviola <thomas@thomaslabs.org>2024-12-03 21:45:47 +0100
commitd46862a5bd2319c595b11427f781201ca063d194 (patch)
treee83d3f40c60233a1da85334745b882f188b0be52 /include
parent9cd14efb76a4ddbcd013f44d50dc1ff93d56c4ca (diff)
Add bootloader
Diffstat (limited to 'include')
-rw-r--r--include/hardware.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/hardware.h b/include/hardware.h
index 2e6c9da..7333328 100644
--- a/include/hardware.h
+++ b/include/hardware.h
@@ -17,6 +17,7 @@
#define CTC_INT_BIT 0x80
#define CTC_CTRL(x) ((x) | CTC_CTRL_OR_VECTOR_BIT)
+#define CTC_INT_VEC(x) ((x))
// ********************************************************
#define PORT_A_CTRL 0x42
@@ -75,6 +76,14 @@ __sfr __at(TFT_DATA) tft_data;
#define IM(__mode) __asm__("im " #__mode)
#define EI __asm__("ei")
#define DI __asm__("di")
-#endif // ASSEMBLY
+#else
+#define KEYA 0x01
+#define KEYB 0x02
+#define KEY1 0x04
+#define KEY2 0x08
+#define KEY3 0x10
+#define KEY4 0x20
+#define KEY5 0x40
+#endif // ASSEMBLY
#endif // HARDWARE_H