#ifndef __LCD_H__ #define __LCD_H__ #include void lcd_init(void); void lcd_uninit(void); void lcd_write_dma(const char **buf); #ifndef LCD_PEX_ADDR #define LCD_PEX_ADDR 0x4E #endif struct lcd_state { uint8_t buf[512]; uint32_t cr2_buf; bool led; bool has_lcd; ErrorCode error; }; extern struct lcd_state st_lcd; void lcd_dma_interrupt(DMA_Channel_TypeDef *channel, uint32_t flags); #endif /* __LCD_H__ */