aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/boards.h
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/boards.h')
-rw-r--r--wirish/boards.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/wirish/boards.h b/wirish/boards.h
index 035868a..11d1774 100644
--- a/wirish/boards.h
+++ b/wirish/boards.h
@@ -75,8 +75,9 @@ typedef struct ExtiInfo {
#ifdef BOARD_maple
#define CYCLES_PER_MICROSECOND 72
+ #define MAPLE_RELOAD_VAL 72000
- static PinMapping PIN_MAP[NR_GPIO_PINS] = {
+ static __attribute__ ((unused)) PinMapping PIN_MAP[NR_GPIO_PINS] = {
{GPIOA_BASE, 3, ADC3, TIMER2_CH4_CCR}, // D0/PA3
{GPIOA_BASE, 2, ADC2, TIMER2_CH3_CCR}, // D1/PA2
{GPIOA_BASE, 0, ADC0, TIMER2_CH1_CCR}, // D2/PA0
@@ -120,7 +121,8 @@ typedef struct ExtiInfo {
{GPIOC_BASE, 9, ADC_INVALID, TIMER_INVALID} // D38/PC9 (BUT)
};
- static ExtiInfo PIN_TO_EXTI_CHANNEL[NR_GPIO_PINS] = {
+ static __attribute__ ((unused)) ExtiInfo PIN_TO_EXTI_CHANNEL[NR_GPIO_PINS] =
+ {
{EXTI3, EXTI_CONFIG_PORTA}, // D0/PA3
{EXTI2, EXTI_CONFIG_PORTA}, // D1/PA2
{EXTI0, EXTI_CONFIG_PORTA}, // D2/PA0
@@ -143,6 +145,7 @@ typedef struct ExtiInfo {
#ifdef BOARD_maple_native
#define CYCLES_PER_MICROSECOND 72
+ #define MAPLE_RELOAD_VAL 72000
// TODO:
static PinMapping PIN_MAP[NR_GPIO_PINS] = {