From ab6814b687a670475fcf9be2be2af30f72904320 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 5 Jun 2012 17:59:14 -0400 Subject: wirish/boards.h: Optionally derive SYSTICK_RELOAD_VAL. It's stupid to make everyone keep this around. Signed-off-by: Marti Bolivar --- wirish/include/wirish/boards.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wirish/include') diff --git a/wirish/include/wirish/boards.h b/wirish/include/wirish/boards.h index 1375512..73d5509 100644 --- a/wirish/include/wirish/boards.h +++ b/wirish/include/wirish/boards.h @@ -113,6 +113,9 @@ bool boardUsesPin(uint8 pin); /* Set derived 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 /** * @brief Does the board break out a USART/UART's RX and TX pins? -- cgit v1.2.3