Added SFR_NIC_DATA_U16LE and SFR_NIC_RING_U16LE.

Let's use sfr16 for NIC data and ring.
SFR define can so reordered to it does the BE to LE swap for us.
This commit is contained in:
René van Dorst
2025-09-01 09:20:36 +02:00
committed by René van Dorst
parent af0135bcce
commit 9dafeab490
2 changed files with 12 additions and 12 deletions
+2
View File
@@ -90,7 +90,9 @@ __sfr __at(0xa9) SFR_FLASH_ADDR0;
* CAREFUL: This is now Little Endian
*/
__sfr __at(0xb7) SFR_NIC_CTRL;
__sfr16 __at(0xb4b3) SFR_NIC_DATA_U16LE;
__sfr __at(0xb3) SFR_NIC_DATA_L;
__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;