summaryrefslogtreecommitdiff
path: root/source/apalis-tk1-k20-api.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/apalis-tk1-k20-api.h')
-rw-r--r--source/apalis-tk1-k20-api.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/apalis-tk1-k20-api.h b/source/apalis-tk1-k20-api.h
index 85bbf9f..35fc88d 100644
--- a/source/apalis-tk1-k20-api.h
+++ b/source/apalis-tk1-k20-api.h
@@ -48,7 +48,7 @@
#define APALIS_TK1_K20_CAN_DEV_OFFSET(x) (x ? APALIS_TK1_K20_CAN_OFFSET : 0)
/* 0x30-0x3F Reserved */
-/* 0x40-0x62 CAN1 registers same layout as CAN0*/
+/* 0x40-0x62 CAN1 registers same layout as CAN0 */
/* 0x63-0x6F Reserved */
/* ADC Registers */
@@ -104,7 +104,11 @@
#define APALIS_TK1_K20_TSC_IRQ 4
#define APALIS_TK1_K20_GPIO_IRQ 5
+#ifndef TESTER_BUILD
#define APALIS_TK1_K20_FW_VER 0x10
+#else
+#define APALIS_TK1_K20_FW_VER 0xFE
+#endif
#define FW_MINOR (APALIS_TK1_K20_FW_VER & 0x0F)
#define FW_MAJOR ((APALIS_TK1_K20_FW_VER & 0xF0) >> 4)
@@ -112,7 +116,6 @@
#define TK1_K20_SENTINEL 0x55
#define TK1_K20_INVAL 0xAA
-#define APALIS_TK1_K20_NUMREGS 0x3f
#define APALIS_TK1_K20_IRQ_REG_CNT 1
#define APALIS_TK1_K20_IRQ_PER_REG 8