#define SET_CS do {ioport_set_pin_level(LCD_CS, IOPORT_PIN_LEVEL_HIGH);} while (0)
#define SET_SID do {ioport_set_pin_level(LCD_SID, IOPORT_PIN_LEVEL_HIGH);} while (0)
#define SET_SCK do {ioport_set_pin_level(LCD_SCK, IOPORT_PIN_LEVEL_HIGH);} while (0)
#define CLR_CS do {ioport_set_pin_level(LCD_CS, IOPORT_PIN_LEVEL_LOW);} while (0)
#define CLR_SID do {ioport_set_pin_level(LCD_SID, IOPORT_PIN_LEVEL_LOW);} while (0)
#define CLR_SCK do {ioport_set_pin_level(LCD_SCK, IOPORT_PIN_LEVEL_LOW);} while (0)