From 0abe83e3e54ec68a59f6a16730e41ad385f88ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Fri, 26 Dec 2025 09:12:25 +0100 Subject: [PATCH] sfr: add 16 bit SFR for the timer0. So we don't have to manual split 16-bit value into for bytes. Let the compiler do the work. --- rtl837x_sfr.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtl837x_sfr.h b/rtl837x_sfr.h index 9a99ac7..d8a7024 100644 --- a/rtl837x_sfr.h +++ b/rtl837x_sfr.h @@ -97,3 +97,7 @@ __sfr __at(0xb4) SFR_NIC_DATA_H; __sfr16 __at(0xb6b5) SFR_NIC_RING_U16LE; __sfr __at(0xb5) SFR_NIC_RING_L; __sfr __at(0xb6) SFR_NIC_RING_H; + +/* Standard 8051 sfr */ +// Timer 0 value +__sfr16 __at(0x8c8a) T0_U16;