AVR: More work on address assignment procedure.
This commit is contained in:
@@ -132,14 +132,8 @@ Com_Init:
|
||||
ldi r17, (comDataEnd-comDataBegin)
|
||||
rcall Utils_FillSram
|
||||
|
||||
; read address from EEPROM
|
||||
ldi xl, LOW(EEPROM_OFFS_COMADDR)
|
||||
ldi xh, HIGH(EEPROM_OFFS_COMADDR)
|
||||
rcall Utils_ReadEeprom ; (R16)
|
||||
cpi r16, 0xff
|
||||
brne Com_Init_l1
|
||||
; set address to 0 (will be updated later)
|
||||
clr r16
|
||||
Com_Init_l1:
|
||||
sts comAddress, r16
|
||||
|
||||
; setup pins and interrupts
|
||||
|
||||
Reference in New Issue
Block a user