1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2018-11-27     zylx         first version
9  */
10 
11 #include <board.h>
12 #include <drv_spi.h>
13 #include <rtdevice.h>
14 #include <rthw.h>
15 #include <finsh.h>
16 
17 #ifdef BSP_USING_SPI_LCD
18 
rt_hw_spi_lcd_init(void)19 static int rt_hw_spi_lcd_init(void)
20 {
21     rt_hw_spi_device_attach("spi1", "spi10", GET_PIN(A, 4));
22 
23     return RT_EOK;
24 }
25 INIT_PREV_EXPORT(rt_hw_spi_lcd_init);
26 
27 #endif/* BSP_USING_SPI_LCD */
28