aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/wirish.c
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/wirish.c')
-rw-r--r--wirish/wirish.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/wirish/wirish.c b/wirish/wirish.c
index d439b23..69bd63b 100644
--- a/wirish/wirish.c
+++ b/wirish/wirish.c
@@ -56,9 +56,13 @@ void init(void) {
systick_init(MAPLE_RELOAD_VAL);
gpio_init();
adc_init();
- short i = 1;
- for(i = 1; i <= NR_TIMERS; i++) {
- timer_init(i, 1);
- }
+ timer_init(1, 1);
+ timer_init(2, 1);
+ timer_init(3, 1);
+ timer_init(4, 1);
+ #if NR_TIMERS >= 8
+ timer_init(5, 1);
+ timer_init(8, 1);
+ #endif
setupUSB();
}