mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-26 23:07:24 +08:00
19 lines
380 B
C
19 lines
380 B
C
|
#include <rtthread.h>
|
||
|
#include <fal.h>
|
||
|
#include <easyflash.h>
|
||
|
|
||
|
#define FAL_FS_PART_NAME "fs"
|
||
|
#define FAL_DOWNLOAD_PART_NAME "download"
|
||
|
|
||
|
int rt_fal_flash_init(void)
|
||
|
{
|
||
|
fal_init();
|
||
|
easyflash_init();
|
||
|
|
||
|
fal_blk_device_create(FAL_FS_PART_NAME);
|
||
|
fal_char_device_create(FAL_DOWNLOAD_PART_NAME);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
INIT_DEVICE_EXPORT(rt_fal_flash_init);
|