You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 line
1.7 KiB

  1. /*
  2. * Lua RTOS, write syscall implementation
  3. *
  4. * Copyright (C) 2015 - 2017
  5. * IBEROXARXA SERVICIOS INTEGRALES, S.L. & CSS IBÉRICA, S.L.
  6. *
  7. * Author: Jaume Olivé (jolive@iberoxarxa.com / jolive@whitecatboard.org)
  8. *
  9. * All rights reserved.
  10. *
  11. * Permission to use, copy, modify, and distribute this software
  12. * and its documentation for any purpose and without fee is hereby
  13. * granted, provided that the above copyright notice appear in all
  14. * copies and that both that the copyright notice and this
  15. * permission notice and warranty disclaimer appear in supporting
  16. * documentation, and that the name of the author not be used in
  17. * advertising or publicity pertaining to distribution of the
  18. * software without specific, written prior permission.
  19. *
  20. * The author disclaim all warranties with regard to this
  21. * software, including all implied warranties of merchantability
  22. * and fitness. In no event shall the author be liable for any
  23. * special, indirect or consequential damages or any damages
  24. * whatsoever resulting from loss of use, data or profits, whether
  25. * in an action of contract, negligence or other tortious action,
  26. * arising out of or in connection with the use or performance of
  27. * this software.
  28. */
  29. #ifndef __ESP_SPIFFS_H__
  30. #define __ESP_SPIFFS_H__
  31. #include "spiffs.h"
  32. s32_t esp32_spi_flash_read(u32_t addr, u32_t size, u8_t *dst);
  33. s32_t esp32_spi_flash_write(u32_t addr, u32_t size, const u8_t *src);
  34. s32_t esp32_spi_flash_erase(u32_t addr, u32_t size);
  35. #define low_spiffs_read (spiffs_read *)esp32_spi_flash_read
  36. #define low_spiffs_write (spiffs_write *)esp32_spi_flash_write
  37. #define low_spiffs_erase (spiffs_erase *)esp32_spi_flash_erase
  38. #endif // __ESP_SPIFFS_H__