2020-05-24 14:30:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace Drivers {
|
|
|
|
class InternalFlash {
|
2021-04-18 13:28:14 -04:00
|
|
|
public:
|
2020-05-24 14:30:06 -04:00
|
|
|
static void ErasePage(uint32_t address);
|
|
|
|
static void WriteWord(uint32_t address, uint32_t value);
|
2021-04-18 13:28:14 -04:00
|
|
|
|
|
|
|
private:
|
2020-05-24 14:30:06 -04:00
|
|
|
static inline void Wait();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|