wideband/firmware/shared/flash.h

15 lines
293 B
C
Raw Normal View History

2020-12-09 00:24:06 -08:00
#pragma once
#include <cstdint>
#include <cstddef>
using flashaddr_t = uintptr_t;
// f0 has only 16 bit program width
using flashdata_t = uint16_t;
struct Flash {
static void ErasePage(uint8_t pageIndex);
static void Write(flashaddr_t address, const char* buffer, size_t size);
};