blob: 47ea9171290623703eee40b9780462655fb34c76 [file] [log] [blame]
#ifndef __HAL_H__
#define __HAL_H__
#include "spi.h"
#define CONFIG_SPI_LCD_XRES 128
#define CONFIG_SPI_LCD_YRES 128
#define CONFIG_SPI_LCD_3WIRE
#define CONFIG_SPI_LCD_BL_PIN 126
#define CONFIG_SPI_LCD_RS_PIN 22
#define CONFIG_SPI_LCD_RST_PIN 24
#define GPIO_TO_REG(gp) (gp >> 5)
#define GPIO_TO_BIT(gp) (1 << (gp % 32))
#define GPIO_VAL(gp, val) ((val >> (gp % 32)) & 0x01)
#endif