10 #define LCDDOGM_SS_PORT 0
11 #define LCDDOGM_SS_PIN 20
13 #define LCDDOGM_RS_PORT 0
14 #define LCDDOGM_RS_PIN 16
16 #define LCDDOGM_IO__(port, reg) IO ## port ## reg
17 #define LCDDOGM_IO_(port, reg) LCDDOGM_IO__(port, reg)
19 #define LCDDOGM_SS_IOCLR LCDDOGM_IO_(LCDDOGM_SS_PORT, CLR)
20 #define LCDDOGM_SS_IODIR LCDDOGM_IO_(LCDDOGM_SS_PORT, DIR)
21 #define LCDDOGM_SS_IOSET LCDDOGM_IO_(LCDDOGM_SS_PORT, SET)
23 #define LCDDOGM_RS_IOCLR LCDDOGM_IO_(LCDDOGM_RS_PORT, CLR)
24 #define LCDDOGM_RS_IODIR LCDDOGM_IO_(LCDDOGM_RS_PORT, DIR)
25 #define LCDDOGM_RS_IOSET LCDDOGM_IO_(LCDDOGM_RS_PORT, SET)
27 #define lcddogmSelect() { \
28 SetBit(LCDDOGM_SS_IOCLR, LCDDOGM_SS_PIN); \
31 #define lcddogmUnselect() { \
32 SetBit(LCDDOGM_SS_IOSET, LCDDOGM_SS_PIN); \
35 #define lcddogmCmdMode() { \
36 SetBit(LCDDOGM_RS_IOCLR, LCDDOGM_RS_PIN); \
39 #define lcddogmDataMode() { \
40 SetBit(LCDDOGM_RS_IOSET, LCDDOGM_RS_PIN); \
void lcd_dogm_init_hw(void)
Architecture independent SPI (Serial Peripheral Interface) API.
void lcd_spi_tx(uint8_t data)
arch independent LED (Light Emitting Diodes) API