avr: guard with precompiler directives.

This commit is contained in:
Martin Preuss
2026-04-26 12:47:50 +02:00
parent 240624c727
commit 74e471ef28
25 changed files with 160 additions and 36 deletions

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef AQH_AVR_NETWORK_MAIN_ASM
#define AQH_AVR_NETWORK_MAIN_ASM
.cseg
@@ -20,14 +23,6 @@
; @clobbers R16, R17, X
NET_Init:
#if 0
ldi xh, HIGH(networkDataBegin)
ldi xl, LOW(networkDataBegin)
clr r16
ldi r17, (networkDataEnd-networkDataBegin)
rcall Utils_FillSram ; (R17, X)
#endif
rcall NET_Buffer_Init ; (R16, R17, X)
ldi r16, NET_MSGNUMINBUF_SIZE
@@ -102,3 +97,6 @@ NET_PeekNextIncomingMsgNum:
#endif