text: #ifndef FLASH_WRITER_H
  #define FLASH_WRITER_H
  
  #include <stdint.h>
  #include <stddef.h>
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /** Initializes anything needed before flash can be accessed */
  void flash_init(void);
  
  /** Unlocks the flash for programming. */
  void flash_writer_unlock(void);
  
  /** Locks the flash */
  void flash_writer_lock(void);
  
  /** Erases the flash page at given address. */
  void flash_writer_page_erase(void* page);
  
  /** Writes data to given location in flash. */
  void flash_writer_page_write(void* page, void* data, size_t len);
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* FLASH_WRITER_H */
  