api-hal-flash.h 608 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stddef.h>
  4. /*
  5. * Write double word (64 bits)
  6. * Locking operation, uses HSEM to manage shared access.
  7. * @param address - destination address, must be double word aligned.
  8. * @param data - data to write
  9. */
  10. void api_hal_flash_write_dword(size_t address, uint64_t data);
  11. /*
  12. * Write page (4096 bytes or 64 rows of double words).
  13. * Locking operation, uses HSEM to manage shared access.
  14. * @param address - destination address, must be page aligned
  15. * @param source_address - source address
  16. */
  17. void api_hal_flash_write_page(size_t address, size_t source_address);