From 5ae7f821e4a90704c3638cec631449a1a7032bf3 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 1 Sep 2025 23:22:57 +0200 Subject: [PATCH] s03: more work. --- avr/devices/s03/defs.asm | 10 ++++++++++ avr/devices/s03/main/main.asm | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/avr/devices/s03/defs.asm b/avr/devices/s03/defs.asm index b284a31..2079869 100644 --- a/avr/devices/s03/defs.asm +++ b/avr/devices/s03/defs.asm @@ -61,6 +61,16 @@ +; --------------------------------------------------------------------------- +; LED activity module + +.equ LED_ACTIVITY_DDR = DDRB +.equ LED_ACTIVITY_PORT = PORTB +.equ LED_ACTIVITY_PORTIN = PINB +.equ LED_ACTIVITY_PINNUM = PORTB1 + + + ; --------------------------------------------------------------------------- ; COM module diff --git a/avr/devices/s03/main/main.asm b/avr/devices/s03/main/main.asm index c8773f1..35a9e4d 100644 --- a/avr/devices/s03/main/main.asm +++ b/avr/devices/s03/main/main.asm @@ -36,7 +36,7 @@ .equ NET_BUFFERS_NUM = 96 .equ NET_MSGNUMINBUF_SIZE = 64 ; max buffer nums in ringbuffer (global incoming) .equ NET_IFACE_OUTMSGBUF_SIZE = 16 ; max buffer nums in ringbuffer (per interface outbound) -.equ COM2WN_IO_RINGBUFFER_SIZE = 128 +.equ COM2WN_IO_RINGBUFFER_SIZE = 240 @@ -44,12 +44,14 @@ ; firmware settings including list of modules used #define MAIN_WITHOUT_MSG_HANDLING ; message handling done here +#define APP_STATS_NETDEV2 ; #define MODULES_TIMER #define MODULES_CLOCK ;#define MODULES_XRAM ;#define MODULES_HEAP #define MODULES_LED_SIMPLE +#define MODULES_LED_ACTIVITY #define MODULES_NETWORK #define MODULES_COM2WN ;#define MODULES_COMONUART0 @@ -74,7 +76,7 @@ ;#define APPS_NETWORK ;#define APPS_MOTION ;#define APPS_REPORTSENSORS -;#define APPS_STATS +#define APPS_STATS #define APPS_HUB @@ -217,6 +219,7 @@ onEveryLoop: .include "devices/all/hw_m644p.asm" .include "devices/all/includes.asm" +;.include "modules/network/msg/device-w.asm" ;.include "common/debug.asm" ;.include "modules/lcd2/font/font2.asm" @@ -236,7 +239,8 @@ onEveryLoop: ;.equ netInterfaceData = netUartIface ;.equ netInterfaceData = uart_bitbang_iface -.equ netInterfaceData = com2w0_iface +.equ netInterfaceData = com2w6_iface +.equ netInterfaceData2 = com2w5_iface