aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/SpiNorFlash.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2024-07-23 19:27:19 +0200
committerJF <JF002@users.noreply.github.com>2024-08-05 20:34:41 +0200
commit3a0d673df420411a4db3a2acf57d04436446430c (patch)
tree45b94f7999fe704f4d3fb5c0a17463da9b200915 /src/drivers/SpiNorFlash.h
parent53dc9dafe7c4b3a9be89724df2226715d6626651 (diff)
Display the SPI flash JEDEC IDs in SystemInformation.
This is needed since a new memory chip will be used in future batches of PineTimes.
Diffstat (limited to 'src/drivers/SpiNorFlash.h')
-rw-r--r--src/drivers/SpiNorFlash.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/SpiNorFlash.h b/src/drivers/SpiNorFlash.h
index 8a063fea..028f92b4 100644
--- a/src/drivers/SpiNorFlash.h
+++ b/src/drivers/SpiNorFlash.h
@@ -20,7 +20,6 @@ namespace Pinetime {
uint8_t density = 0;
};
- Identification ReadIdentificaion();
uint8_t ReadStatusRegister();
bool WriteInProgress();
bool WriteEnabled();
@@ -33,6 +32,8 @@ namespace Pinetime {
bool ProgramFailed();
bool EraseFailed();
+ Identification GetIdentification() const;
+
void Init();
void Uninit();
@@ -40,6 +41,8 @@ namespace Pinetime {
void Wakeup();
private:
+ Identification ReadIdentification();
+
enum class Commands : uint8_t {
PageProgram = 0x02,
Read = 0x03,