From 3a0d673df420411a4db3a2acf57d04436446430c Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Tue, 23 Jul 2024 19:27:19 +0200 Subject: Display the SPI flash JEDEC IDs in SystemInformation. This is needed since a new memory chip will be used in future batches of PineTimes. --- src/drivers/SpiNorFlash.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/drivers/SpiNorFlash.h') 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, -- cgit v1.2.3-70-g09d2