summaryrefslogtreecommitdiffstats
path: root/watch-library
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-02-18 00:05:57 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-02-18 00:05:57 -0500
commitdf2cc7e94f91a15a41c36935875f6f9be42cdabd (patch)
tree63add75f7e9435d2a569f173e35eb9957dd73b04 /watch-library
parent0c59c972e7296ac8c23049e713da9350a9af39a5 (diff)
downloadSensor-Watch-df2cc7e94f91a15a41c36935875f6f9be42cdabd.tar.gz
Sensor-Watch-df2cc7e94f91a15a41c36935875f6f9be42cdabd.tar.bz2
Sensor-Watch-df2cc7e94f91a15a41c36935875f6f9be42cdabd.zip
WIP accelerometer logging to flash
Diffstat (limited to 'watch-library')
-rw-r--r--watch-library/shared/config/hpl_sercom_config.h2
-rw-r--r--watch-library/shared/driver/spiflash.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/watch-library/shared/config/hpl_sercom_config.h b/watch-library/shared/config/hpl_sercom_config.h
index 6df4b08e..24525fbe 100644
--- a/watch-library/shared/config/hpl_sercom_config.h
+++ b/watch-library/shared/config/hpl_sercom_config.h
@@ -172,7 +172,7 @@
// <i> The SPI data transfer rate
// <id> spi_master_baud_rate
#ifndef CONF_SERCOM_3_SPI_BAUD
-#define CONF_SERCOM_3_SPI_BAUD 50000
+#define CONF_SERCOM_3_SPI_BAUD 1000000
#endif
// </h>
diff --git a/watch-library/shared/driver/spiflash.h b/watch-library/shared/driver/spiflash.h
index 0d8641a7..9b1d00f5 100644
--- a/watch-library/shared/driver/spiflash.h
+++ b/watch-library/shared/driver/spiflash.h
@@ -33,6 +33,8 @@
#define CMD_FAST_READ_DATA 0x0B
#define CMD_SECTOR_ERASE 0x20
// #define CMD_SECTOR_ERASE CMD_READ_JEDEC_ID
+#define CMD_CHIP_ERASE 0xC7
+// #define CMD_CHIP_ERASE CMD_READ_JEDEC_ID
#define CMD_DISABLE_WRITE 0x04
#define CMD_ENABLE_WRITE 0x06
#define CMD_PAGE_PROGRAM 0x02