Skip to content

Commit 050dd3e

Browse files
committed
memory/spi-mem: add spi memory api calls to protect the memory
This adds api calls to lock/unlock and write a protected area of the memory.
1 parent ccc4bea commit 050dd3e

File tree

4 files changed

+319
-38
lines changed

4 files changed

+319
-38
lines changed

src/bootloader/startup.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int main(void)
5555
#ifdef BOOTLOADER_DEVDEVICE
5656
qtouch_init();
5757
#endif
58-
spi_mem_test();
58+
spi_mem_protected_area_lock();
5959
bootloader_jump();
6060

6161
// If did not jump to firmware code, begin USB processing

src/firmware.c

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ int main(void)
3838
common_main();
3939
bitbox02_smarteeprom_init();
4040
spi_mem_test();
41+
spi_mem_protected_area_lock();
4142
firmware_main_loop();
4243
return 0;
4344
}

0 commit comments

Comments
 (0)