flash_storage.c 517 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. *
  3. * SPDX-License-Identifier: Apache-2.0
  4. *
  5. * Change Logs:
  6. * Date Author Notes
  7. * 2022-01-29 supperthomas first version
  8. *
  9. */
  10. #include "flash_storage.h"
  11. #include "ble_qiot_config.h"
  12. //FLASH not init first
  13. void fstorage_init(void)
  14. {
  15. }
  16. int fstorage_read(uint32_t addr, uint32_t read_len, void *p_data)
  17. {
  18. return read_len;
  19. }
  20. int fstorage_erase(uint32_t addr)
  21. {
  22. return 0;
  23. }
  24. int fstorage_write(uint32_t addr, uint32_t write_len, void const *p_data)
  25. {
  26. return write_len;
  27. }