flash_mock_util.c 750 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #include "spi_flash_mmap.h"
  2. #include "esp_partition.h"
  3. #include "esp_err.h"
  4. #include "esp_rom_spiflash.h"
  5. bool spi_flash_check_and_flush_cache(size_t start_addr, size_t length)
  6. {
  7. return true;
  8. }
  9. esp_rom_spiflash_result_t esp_rom_spiflash_unlock(void)
  10. {
  11. return ESP_ROM_SPIFLASH_RESULT_OK;
  12. }
  13. void spi_flash_init_lock(void)
  14. {
  15. return;
  16. }
  17. void spi_flash_op_lock(void)
  18. {
  19. return;
  20. }
  21. void spi_flash_op_unlock(void)
  22. {
  23. return;
  24. }
  25. void spi_flash_disable_interrupts_caches_and_other_cpu(void)
  26. {
  27. return;
  28. }
  29. void spi_flash_enable_interrupts_caches_and_other_cpu(void)
  30. {
  31. return;
  32. }
  33. void spi_flash_disable_interrupts_caches_and_other_cpu_no_os(void)
  34. {
  35. return;
  36. }
  37. void spi_flash_enable_interrupts_caches_no_os(void)
  38. {
  39. return;
  40. }