rt-thread/bsp/stm32/stm32l496-ali-developer/board/ports/drv_spi_lcd.c

28 lines
526 B
C
Raw Normal View History

2019-02-16 12:42:19 +08:00
/*
2021-03-14 15:33:55 +08:00
* Copyright (c) 2006-2021, RT-Thread Development Team
2019-02-16 12:42:19 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-27 zylx first version
*/
2021-03-14 15:33:55 +08:00
2019-02-16 12:42:19 +08:00
#include <board.h>
#include <drv_spi.h>
#include <rtdevice.h>
#include <rthw.h>
#include <finsh.h>
#ifdef BSP_USING_SPI_LCD
static int rt_hw_spi_lcd_init(void)
{
rt_hw_spi_device_attach("spi1", "spi10", GPIOA, GPIO_PIN_4);
2019-02-16 12:42:19 +08:00
return RT_EOK;
}
INIT_PREV_EXPORT(rt_hw_spi_lcd_init);
#endif/* BSP_USING_SPI_LCD */