22 Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5,
LCD_RS + 4, is_data);
24 const bool bit_0 = (bool) (nibble & 0x01);
25 Chip_GPIO_SetPinState(LPC_GPIO_PORT, 2,
LCD1, bit_0);
27 const bool bit_1 = (bool) ((nibble >> 1) & 0x01);
28 Chip_GPIO_SetPinState(LPC_GPIO_PORT, 2,
LCD2, bit_1);
30 const bool bit_2 = (bool) ((nibble >> 2) & 0x01);
31 Chip_GPIO_SetPinState(LPC_GPIO_PORT, 2,
LCD3, bit_2);
33 const bool bit_3 = (bool) ((nibble >> 3) & 0x01);
34 Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5,
LCD4 + 4, bit_3);
43 Chip_GPIO_SetPinOutHigh(LPC_GPIO_PORT, 5,
LCD_EN + 4);
45 Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 5,
LCD_EN + 4);
68 Chip_GPIO_SetPinDIR(LPC_GPIO_PORT, 5,
LCD_RS + 4, 1);
71 Chip_GPIO_SetPinDIR(LPC_GPIO_PORT, 5,
LCD_EN + 4, 1);
74 Chip_GPIO_SetPinDIR(LPC_GPIO_PORT, 5,
LCD4 + 4, 1);
77 Chip_GPIO_SetPinDIR(LPC_GPIO_PORT, 2,
LCD3, 1);
80 Chip_GPIO_SetPinDIR(LPC_GPIO_PORT, 2,
LCD2, 1);
83 Chip_GPIO_SetPinDIR(LPC_GPIO_PORT, 2,
LCD1, 1);
85 Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 5,
LCD_RS + 4);
86 Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 5,
LCD_EN + 4);
87 Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 5,
LCD4 + 4);
88 Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 2,
LCD3);
89 Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 2,
LCD2);
90 Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 2,
LCD1);