zephyr/samples/display/ili9340/dts_fixup.h

36 lines
988 B
C
Raw Normal View History

/*
* Copyright (c) 2017 Jan Van Winkel <jan.van_winkel@dxplore.eu>
*
* SPDX-License-Identifier: Apache-2.0
*/
#if defined(CONFIG_SPI_STM32) && defined(CONFIG_ILI9340)
#define DT_ILI9340_SPI_DEV_NAME \
DT_ST_STM32_SPI_FIFO_40013000_ILITEK_ILI9340_0_BUS_NAME
#define DT_ILI9340_SPI_SLAVE_NUMBER \
DT_ST_STM32_SPI_FIFO_40013000_ILITEK_ILI9340_0_BASE_ADDRESS
#define DT_ILI9340_CMD_DATA_GPIO_PORT_NAME \
DT_ST_STM32_SPI_FIFO_40013000_ILITEK_ILI9340_0_CMD_DATA_GPIOS_CONTROLLER
#define DT_ILI9340_CMD_DATA_PIN \
DT_ST_STM32_SPI_FIFO_40013000_ILITEK_ILI9340_0_CMD_DATA_GPIOS_PIN
#define DT_ILI9340_DEV_NAME \
DT_ST_STM32_SPI_FIFO_40013000_ILITEK_ILI9340_0_LABEL
#define DT_ILI9340_RESET_GPIO_PORT_NAME \
DT_ST_STM32_SPI_FIFO_40013000_ILITEK_ILI9340_0_RESET_GPIOS_CONTROLLER
#define DT_ILI9340_RESET_PIN \
DT_ST_STM32_SPI_FIFO_40013000_ILITEK_ILI9340_0_RESET_GPIOS_PIN
#define DT_ILI9340_SPI_FREQ \
DT_ST_STM32_SPI_FIFO_40013000_ILITEK_ILI9340_0_SPI_MAX_FREQUENCY
#endif