aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/include/wirish/boards.h
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/include/wirish/boards.h')
-rw-r--r--wirish/include/wirish/boards.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/wirish/include/wirish/boards.h b/wirish/include/wirish/boards.h
index 73d5509..6676a02 100644
--- a/wirish/include/wirish/boards.h
+++ b/wirish/include/wirish/boards.h
@@ -110,13 +110,21 @@ extern void boardInit(void);
*/
bool boardUsesPin(uint8 pin);
-/* Set derived definitions */
+/*
+ * Derived and default board definitions
+ */
+
#define CLOCK_SPEED_MHZ CYCLES_PER_MICROSECOND
#define CLOCK_SPEED_HZ (CLOCK_SPEED_MHZ * 1000000UL)
+
#ifndef SYSTICK_RELOAD_VAL
#define SYSTICK_RELOAD_VAL (1000 * CYCLES_PER_MICROSECOND - 1)
#endif
+#ifndef BOARD_BUTTON_PRESSED_LEVEL
+#define BOARD_BUTTON_PRESSED_LEVEL HIGH
+#endif
+
/**
* @brief Does the board break out a USART/UART's RX and TX pins?
*