avr: implement setvalue for n12.
This commit is contained in:
@@ -170,6 +170,25 @@ REED_Every100ms:
|
||||
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; @routine REED_SetConfig
|
||||
;
|
||||
; Set config and write to EEPROM
|
||||
;
|
||||
; @return nothing
|
||||
; @param r16 new configuration
|
||||
; @clobbers r16, X, (R17)
|
||||
|
||||
REED_SetConfig:
|
||||
sts reedConfigFromEeprom, r16
|
||||
ldi xh, HIGH(EEPROM_OFFS_REED_CONF) ; write config to EEPROM
|
||||
ldi xl, LOW(EEPROM_OFFS_REED_CONF) ;
|
||||
rcall Utils_WriteEepromIncr ; (R17)
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; @routine reedSetupConfig
|
||||
;
|
||||
@@ -194,6 +213,7 @@ reedSetupConfig_haveConfig:
|
||||
sts reedConfigFromEeprom, r16
|
||||
reedSetupConfig_end:
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user