fs_mount_spiflash.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (C) 2019 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _FS_MOUNT_SPIFLASH_H_
  13. #define _FS_MOUNT_SPIFLASH_H_
  14. #include "osi_compiler.h"
  15. #include "quec_proj_config.h"
  16. OSI_EXTERN_C_BEGIN
  17. #include <stdbool.h>
  18. /**
  19. * \brief mount sdcard
  20. *
  21. * \return
  22. * - true on succeed else fail
  23. */
  24. //blockDevice_t *__nwy_vfs_block_device_create(nwy_spi_flash_t *dev)
  25. /**
  26. * \brief umount sdcard
  27. */
  28. //static int __nwy_vfs_mount(const char *base_path, blockDevice_t *nwy_bdev)
  29. #if ((defined CONFIG_QUEC_PROJECT_FEATURE_SPI4_EXT_NOR_SFFS) || (defined CONFIG_QUEC_PROJECT_FEATURE_BOOT_SPI4_EXTNSFFS))
  30. int fsMountGeneralSpiFlash(bool format);
  31. bool quec_spi4_exnsffs_is_mount(void);
  32. void fsUmountGeneralSpiFlash(void);
  33. #else
  34. bool fsMountGeneralSpiFlash(bool format);
  35. #endif
  36. OSI_EXTERN_C_END
  37. #endif