| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * Copyright (c) 2006-2021, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2024-12-28 Administrator the first version
- */
- #include <rtthread.h>
- #include <board.h>
- #include <rtdevice.h>
- #include <easyflash.h>
- #define DBG_ENABLE
- #define DBG_COLOR
- #define DBG_TAG "easyflash"
- #define DBG_LEVEL DBG_LOG
- #include <rtdbg.h> //must after of DBG_LVL, DBG_TAG or other options
- static int Init_EasyFlash(void)
- {
- if(easyflash_init()==EF_NO_ERR) //初始化成功
- {
- LOG_I("EasyFlash init Successful!");
- }else{
- LOG_E("EasyFlash init ERROR!!!");
- return -1;
- }
- return 0;
- }
- void Read_EasyFlash_Param(void)
- {
- }
- INIT_APP_EXPORT(Init_EasyFlash);
|