2016-05-14 | Paul Boddie | raw annotate files changeset graph | Let the power button switch between tasks, using an IRQ that occurs when the power button signal is low (edge-triggered IRQs do not seem to work). Introduced a general IRQ-clearing function. |
1 #ifndef __INIT_H__ 2 #define __INIT_H__ 3 4 #include "xburst_types.h" 5 6 /* Initialisation functions. */ 7 8 void gpio_init2(); 9 void cpm_init(); 10 void rtc_init(); 11 12 /* Timer. */ 13 14 void timer_init(); 15 void timer_init_irq(); 16 void timer_clear(); 17 18 /* GPIO. */ 19 20 void gpio_init_irq(); 21 int gpio_have_irq(u8); 22 void gpio_clear(u8); 23 24 /* General. */ 25 void irq_clear(); 26 27 /* Test for initialisation. */ 28 29 int is_started(); 30 31 #endif /* __INIT_H__ */