hal_flash.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * BSD 2-Clause License
  3. * Copyright (c) 2022, LiteEMF
  4. * All rights reserved.
  5. * This software component is licensed by LiteEMF under BSD 2-Clause license,
  6. * the "License"; You may not use this file except in compliance with the
  7. * License. You may obtain a copy of the License at:
  8. * opensource.org/licenses/BSD-2-Clause
  9. *
  10. */
  11. /************************************************************************************************************
  12. ** Description:
  13. ************************************************************************************************************/
  14. #include "api/api_flash.h"
  15. /******************************************************************************************************
  16. ** Defined
  17. *******************************************************************************************************/
  18. /*****************************************************************************************************
  19. ** Function
  20. ******************************************************************************************************/
  21. /*******************************************************************
  22. ** Parameters:
  23. ** Returns:
  24. ** Description:
  25. *******************************************************************/
  26. //hal
  27. bool hal_flash_write(uint16_t offset,uint8_t *buf,uint16_t len)
  28. {
  29. UNUSED_PARAMETER(offset);
  30. UNUSED_PARAMETER(buf);
  31. UNUSED_PARAMETER(len);
  32. return false;
  33. }
  34. bool hal_flash_read(uint16_t offset,uint8_t *buf,uint16_t len)
  35. {
  36. UNUSED_PARAMETER(offset);
  37. UNUSED_PARAMETER(buf);
  38. UNUSED_PARAMETER(len);
  39. return false;
  40. }
  41. bool hal_flash_erase(uint16_t offset)
  42. {
  43. UNUSED_PARAMETER(offset);
  44. return false;
  45. }
  46. bool hal_flash_init(void)
  47. {
  48. return false;
  49. }