1 /* 2 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef SSP_ST7789_H 10 #define SSP_ST7789_H 11 #include "hdf_base.h" 12 #define RESET_GPIO 5 13 #define LCD_CMD 0 14 #define LCD_DATA 1 15 #define SPI_MSG_SIZE 2 16 #define BITS_PER_BYTE 8 17 #define BITS_PER_WORD 9 18 #define SPI_MAX_SPEED 115200 19 20 struct LcdCmd { 21 uint8_t cmd; 22 uint8_t data; 23 uint8_t delay; 24 }; 25 #endif /* SSP_ST7789_H */ 26