1.1 --- a/stage2/init.h Sat May 14 21:40:59 2016 +0200
1.2 +++ b/stage2/init.h Sat May 14 22:47:06 2016 +0200
1.3 @@ -1,14 +1,31 @@
1.4 #ifndef __INIT_H__
1.5 #define __INIT_H__
1.6
1.7 +#include "xburst_types.h"
1.8 +
1.9 /* Initialisation functions. */
1.10
1.11 void gpio_init2();
1.12 void cpm_init();
1.13 void rtc_init();
1.14 +
1.15 +/* Timer. */
1.16 +
1.17 void timer_init();
1.18 void timer_init_irq();
1.19 void timer_clear();
1.20 +
1.21 +/* GPIO. */
1.22 +
1.23 +void gpio_init_irq();
1.24 +int gpio_have_irq(u8);
1.25 +void gpio_clear(u8);
1.26 +
1.27 +/* General. */
1.28 +void irq_clear();
1.29 +
1.30 +/* Test for initialisation. */
1.31 +
1.32 int is_started();
1.33
1.34 #endif /* __INIT_H__ */