mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-09-02 15:02:51 +08:00
stp: take the review notes on types and register reads
stp_enabled is a flag, so say bool. cmpBytes() returns a comparison result, so say int8_t. The three busy waits this branch adds read the status straight out of the SFR instead of copying four bytes to xdata first.
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ __xdata uint16_t management_vlan;
|
||||
__xdata bool frame_tagged;
|
||||
__xdata uint8_t tx_seq;
|
||||
|
||||
__xdata uint8_t stp_enabled;
|
||||
__xdata bool stp_enabled;
|
||||
__xdata uint8_t igmpEnabled;
|
||||
__xdata char hostname[24]; /* device hostname, default set at boot, see rtl837x_common.h */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user