From 6783e66eb168034880a9ef4847e901a6d4c911d8 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 2 Sep 2010 19:23:22 -0400 Subject: added 'unused' attribs and reset default target --- wirish/boards.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'wirish') diff --git a/wirish/boards.h b/wirish/boards.h index 11d1774..617a7ad 100644 --- a/wirish/boards.h +++ b/wirish/boards.h @@ -148,7 +148,7 @@ typedef struct ExtiInfo { #define MAPLE_RELOAD_VAL 72000 // TODO: - 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 @@ -192,7 +192,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 @@ -211,7 +212,7 @@ typedef struct ExtiInfo { #endif #ifndef CYCLES_PER_MICROSECOND -#error Board type has not been selected correctly. +#error "Board type has not been selected correctly." #endif #ifdef __cplusplus -- cgit v1.2.3