4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-22 00:49:20 +08:00
RudyLo 4192f0d651
[bsp][artpi] porting LVGL to ART-Pi with Media-IO (#5583)
* [bsp][art-pi] add spi lcd ili9488 driver
* [bsp][art-pi] support LVGL display
* [bsp][artpi] support LVGL indev
* [bsp][artpi] debug LVGL indev with ft6236
* [bsp][artpi] swap and invert touchpad coordinate
* [bsp][artpi] redundant declarations
* [bsp][artpi] indent BSP_USING_LVGL config
* [bsp][artpi] default build debug version
* [bsp][artpi] fix BSP_USING_LVGL Kconfig
2022-02-07 17:24:48 +08:00

31 lines
693 B
C

/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-11-07 wanghaijing the first version
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <spi_flash.h>
#include <drv_spi.h>
static int rt_flash_init(void)
{
extern rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const char *spi_dev_name);
extern int fal_init(void);
rt_hw_spi_device_attach("spi1", "spi10", GPIOA, GPIO_PIN_4);
/* initialize SPI Flash device */
rt_sfud_flash_probe("norflash0", "spi10");
fal_init();
return 0;
}
INIT_ENV_EXPORT(rt_flash_init);