reworked com stack.
- prepared for use of CRC8 - organized code in more files - recv stats message now contains crc errors and io errors
This commit is contained in:
@@ -221,6 +221,11 @@
|
||||
.include "com.asm"
|
||||
.include "comproto.asm"
|
||||
.include "comproto_addr.asm"
|
||||
.include "comproto_stats.asm"
|
||||
.include "comproto_device.asm"
|
||||
.include "comproto_values.asm"
|
||||
;.include "comproto_debug.asm"
|
||||
;.include "comproto_twi.asm"
|
||||
.include "twimaster.asm"
|
||||
.include "lcd.asm"
|
||||
.include "si7021.asm"
|
||||
@@ -328,12 +333,13 @@ onEveryMinute:
|
||||
breq onEveryMinute_l1 ; no, do nothing
|
||||
|
||||
; will later send this only every hour or so
|
||||
|
||||
ldi r16, 0xff ; send stats to everybody
|
||||
rcall CPRO_EnqueueComSendStats
|
||||
|
||||
ldi r16, 0xff ; send recv to everybody
|
||||
rcall CPRO_EnqueueComRecvStats
|
||||
|
||||
|
||||
ldi r16, 0xff ; send device info to everybody
|
||||
rcall CPRO_EnqueueDevice
|
||||
onEveryMinute_l1:
|
||||
|
||||
Reference in New Issue
Block a user