From ae3acc651a459500bc11ba938607875c6ae21f3a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 31 Aug 2020 15:24:50 +0200 Subject: msp430fr: rename spi_b to spi to be consistent with other architectures --- src/app/transactiontest/util.S | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/app/transactiontest/util.S') diff --git a/src/app/transactiontest/util.S b/src/app/transactiontest/util.S index 1a12736..ea298b6 100644 --- a/src/app/transactiontest/util.S +++ b/src/app/transactiontest/util.S @@ -6,6 +6,7 @@ #define SRAM_SIZE 4096 ; SRAM and stack pointer backup space +; two backup areas allow for consistency in case of a power loss during backup sp_backup1: .space 2 sram_backup1: @@ -20,7 +21,8 @@ sram_backup2: backup_cookie: .space 2 -; save entire SRAM and CPU register state to persistent FRAM +; save entire SRAM and CPU register state to persistent FRAM. +; Must be called with interrupts disabled asm_save_all: ; r4 to r11 are callee saved -> push them to the stack. @@ -65,9 +67,8 @@ save_sram_word: ; load entire SRAM and CPU register state from persistent FRAM, ; if it contains valid backup data. Execution will resume at the -; last place where asm_save_all() was called is if nothing in between -; had happened. Does not take possible the state of hardware peripherals -; into account. +; last place where asm_save_all() was called as if nothing in between +; had happened. Does not take the state of hardware peripherals into account. asm_load_all: ; check if we have backup data -- cgit v1.2.3