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