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.

46 lines
1.3 KiB

  1. /* Copyright 2019 Nick Brassel (tzarc)
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include <stdint.h>
  17. #include <string.h>
  18. #include "eeprom_driver.h"
  19. void eeprom_driver_init(void) {
  20. /* Any initialisation code */
  21. }
  22. void eeprom_driver_erase(void) {
  23. /* Wipe out the EEPROM, setting values to zero */
  24. }
  25. void eeprom_read_block(void *buf, const void *addr, size_t len) {
  26. /*
  27. Read a block of data:
  28. buf: target buffer
  29. addr: 0-based offset within the EEPROM
  30. len: length to read
  31. */
  32. }
  33. void eeprom_write_block(const void *buf, void *addr, size_t len) {
  34. /*
  35. Write a block of data:
  36. buf: target buffer
  37. addr: 0-based offset within the EEPROM
  38. len: length to write
  39. */
  40. }