Skip to content

Commit 1ba0527

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 1ba0527

File tree

4 files changed

+319
-38
lines changed

4 files changed

+319
-38
lines changed

src/bootloader/startup.c

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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)