kopia lustrzana https://github.com/bristol-seds/pico-tracker
Memory JEDEC ID in variable for debugging
rodzic
e24b8df1fc
commit
6f3db1a14c
|
@ -241,8 +241,11 @@ void init_memory(void)
|
||||||
/* Enable */
|
/* Enable */
|
||||||
spi_enable(FLASH_SERCOM);
|
spi_enable(FLASH_SERCOM);
|
||||||
|
|
||||||
|
/* Read JEDEC chip ID */
|
||||||
|
uint32_t jedec = mem_read_jedec_id();
|
||||||
|
|
||||||
/* Check it's the chip we're expecting */
|
/* Check it's the chip we're expecting */
|
||||||
if (mem_read_jedec_id() != SST25WF040B_JEDEC_ID) {
|
if (jedec != SST25WF040B_JEDEC_ID) {
|
||||||
/* Memory JEDIC ID wrong!! */
|
/* Memory JEDIC ID wrong!! */
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue