2017-07-11 | Paul Boddie | file changeset files shortlog | Introduced a separate clock and power management module, simplifying the LCD initialisation code, also simplifying the frequency calculations in the stage1 payload. |
paul@15 | 1 | #ifndef __LCD_H__ |
paul@15 | 2 | #define __LCD_H__ |
paul@15 | 3 | |
paul@217 | 4 | #include <stdint.h> |
paul@161 | 5 | |
paul@15 | 6 | /* Initialisation functions. */ |
paul@15 | 7 | |
paul@195 | 8 | void lcd_init(); |
paul@15 | 9 | |
paul@68 | 10 | /* Output functions. */ |
paul@68 | 11 | |
paul@221 | 12 | uint32_t get_bitmap_value(uint16_t, uint32_t); |
paul@221 | 13 | void set_pixel(uint16_t, uint16_t, uint32_t); |
paul@221 | 14 | void test_pixel(uint16_t, uint16_t, uint16_t); |
paul@221 | 15 | void clear_pixel(uint16_t, uint16_t); |
paul@68 | 16 | |
paul@85 | 17 | void test_pattern(); |
paul@85 | 18 | |
paul@15 | 19 | #endif /* __LCD_H__ */ |