avr: switched most devices to com2w interface now.

This commit is contained in:
Martin Preuss
2025-08-18 18:47:13 +02:00
parent f9d721ac02
commit 102996f69f
23 changed files with 113 additions and 110 deletions

View File

@@ -40,7 +40,9 @@
; ---------------------------------------------------------------------------
; generic
.equ NET_BUFFERS_NUM = 6
.equ NET_BUFFERS_NUM = 6
.equ NET_MSGNUMINBUF_SIZE = 8 ; max buffer nums in ringbuffer (global incoming)
.equ NET_IFACE_OUTMSGBUF_SIZE = 8 ; max buffer nums in ringbuffer (per interface outbound)
@@ -51,7 +53,7 @@
#define MODULES_CLOCK
#define MODULES_LED_SIMPLE
#define MODULES_NETWORK
#define MODULES_UART_BITBANG
#define MODULES_COM2W
#define MODULES_OWI_MASTER
#define MODULES_DS18B20
#define MODULES_SK6812
@@ -99,11 +101,7 @@
rjmp BOOTLOADER_ADDR ; 1: Reset vector ; use this for flashed system
reti ; 2: EXT_INT0
#ifdef MODULES_UART_BITBANG
rjmp UART_BitBang_PcintIsr ; 3: PCI0
#else
reti ; 3: PCI0
#endif
rjmp com2wPcintIsr ; 3: PCI0
reti ; 4: PCI1
reti ; 5: WDT
reti ; 6: TIM1_CAPT
@@ -208,9 +206,7 @@ onEveryLoop:
; ---------------------------------------------------------------------------
; defines for network interface
#ifdef MODULES_UART_BITBANG
.equ netInterfaceData = uart_bitbang_iface
#endif
.equ netInterfaceData = com2w_iface