[update] support fal api for c++ (#5784)

This commit is contained in:
LiuKang 2022-04-08 12:53:01 +08:00 committed by GitHub
parent b1a9c4c4ea
commit 28b4db91c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,10 @@
#include <fal_cfg.h>
#include "fal_def.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* FAL (Flash Abstraction Layer) initialization.
* It will initialize all flash device and all flash partition.
@ -149,4 +153,8 @@ struct rt_device *fal_mtd_nor_device_create(const char *parition_name);
*/
struct rt_device *fal_char_device_create(const char *parition_name);
#ifdef __cplusplus
}
#endif
#endif /* _FAL_H_ */