mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Fixed to make SWGT024 V2.0 work
This commit is contained in:
+1
-1
@@ -916,7 +916,7 @@ void sfp_print_info(uint8_t sfp)
|
||||
bool gpio_pin_test(uint8_t pin)
|
||||
{
|
||||
reg_read_m(RTL837X_REG_GPIO_00_31_INPUT + (pin > 31 ? 4 : 0));
|
||||
return sfr_data[(pin >> 3) & 3] & (1 << (7 - (pin & 7)));
|
||||
return sfr_data[3-((pin >> 3) & 3)] & (1 << (pin & 7));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user