sdfs_data_nor.h 767 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2017 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file
  8. * @brief SDFS nand and sd interface
  9. */
  10. #ifndef __SDFS_DATA_NOR_H__
  11. #define __SDFS_DATA_NOR_H__
  12. #include <kernel.h>
  13. #ifdef CONFIG_SD_FS_DATA_NOR_STORAGE
  14. struct sd_dir * data_nor_sd_find_dir(u8_t stor_id, u8_t part, const char *filename, void *buf_size_32);
  15. int data_nor_sd_fread(u8_t stor_id, struct sd_file *sd_file, void *buffer, int len);
  16. #else
  17. static inline struct sd_dir * data_nor_sd_find_dir(u8_t stor_id, u8_t part, const char *filename, void *buf_size_32)
  18. {
  19. return NULL;
  20. }
  21. static inline int data_nor_sd_fread(u8_t stor_id, struct sd_file *sd_file, void *buffer, int len)
  22. {
  23. return -1;
  24. }
  25. #endif
  26. #endif/* #define __SDFS_DATA_NOR_H__ */