2018-10-16 | Paul Boddie | raw annotate files changeset graph | Some tidied-up configuration and initialisation routines and a simple UART test. |
1 #ifndef __INIT_H__ 2 #define __INIT_H__ 3 4 /* Basic initialisation. */ 5 6 void init_memory(void); 7 void init_pins(void); 8 void init_outputs(void); 9 10 /* Peripheral pin configuration. */ 11 12 void config_uart(void); 13 void lock_config(void); 14 void unlock_config(void); 15 16 /* Convenience operations. */ 17 18 void interrupts_on(void); 19 20 /* Peripheral configuration. */ 21 22 void init_uart(uint8_t pri, uint8_t sub); 23 24 #endif /* __INIT_H__ */