flash.h 236 B

12345678910
  1. #ifndef FLASH_H_INCLUDED
  2. #define FLASH_H_INCLUDED
  3. #include <stdint.h>
  4. int flash_write(uint32_t address, const uint8_t *data, int len);
  5. void flash_unlock(void);
  6. void flash_lock(void);
  7. int flash_erase(uint32_t address, int len);
  8. #endif