41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2018 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#if defined(CONFIG_SPI_NRFX) && defined(CONFIG_ILI9340)
|
|
|
|
#define DT_ILI9340_SPI_DEV_NAME \
|
|
DT_NORDIC_NRF_SPI_40004000_ILITEK_ILI9340_0_BUS_NAME
|
|
|
|
#define DT_ILI9340_SPI_SLAVE_NUMBER \
|
|
DT_NORDIC_NRF_SPI_40004000_ILITEK_ILI9340_0_BASE_ADDRESS
|
|
|
|
#define DT_ILI9340_CMD_DATA_GPIO_PORT_NAME \
|
|
DT_NORDIC_NRF_SPI_40004000_ILITEK_ILI9340_0_CMD_DATA_GPIOS_CONTROLLER
|
|
|
|
#define DT_ILI9340_CMD_DATA_PIN \
|
|
DT_NORDIC_NRF_SPI_40004000_ILITEK_ILI9340_0_CMD_DATA_GPIOS_PIN
|
|
|
|
#define DT_ILI9340_DEV_NAME \
|
|
DT_NORDIC_NRF_SPI_40004000_ILITEK_ILI9340_0_LABEL
|
|
|
|
#define DT_ILI9340_RESET_GPIO_PORT_NAME \
|
|
DT_NORDIC_NRF_SPI_40004000_ILITEK_ILI9340_0_RESET_GPIOS_CONTROLLER
|
|
|
|
#define DT_ILI9340_RESET_PIN \
|
|
DT_NORDIC_NRF_SPI_40004000_ILITEK_ILI9340_0_RESET_GPIOS_PIN
|
|
|
|
#define DT_ILI9340_SPI_FREQ \
|
|
DT_NORDIC_NRF_SPI_40004000_ILITEK_ILI9340_0_SPI_MAX_FREQUENCY
|
|
|
|
#define DT_ILI9340_CS_GPIO_PORT_NAME \
|
|
DT_NORDIC_NRF_SPI_40004000_CS_GPIOS_CONTROLLER
|
|
|
|
#define DT_ILI9340_CS_GPIO_PIN \
|
|
DT_NORDIC_NRF_SPI_40004000_CS_GPIOS_PIN
|
|
|
|
#endif
|
|
|