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