diff options
| author | LiuKang <[email protected]> | 2022-04-08 12:53:01 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-08 12:53:01 +0800 |
| commit | 28b4db91c317bf3fa5f77d8e2f85bf44798f4b17 (patch) | |
| tree | e7acf5b41daa9d599071abee2db0a68a800b8a37 /components | |
| parent | b1a9c4c4ea1b02d04f128e9d320dc4f259631d7e (diff) | |
[update] support fal api for c++ (#5784)
Diffstat (limited to 'components')
| -rw-r--r-- | components/fal/inc/fal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/fal/inc/fal.h b/components/fal/inc/fal.h index ce5cd8743d..eca4402381 100644 --- a/components/fal/inc/fal.h +++ b/components/fal/inc/fal.h @@ -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_ */ |
