mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Check fir button presses once a second
This commit is contained in:
+3
-3
@@ -1161,6 +1161,9 @@ void idle(void)
|
|||||||
reg_write_m(RTL837X_REG_SEC_COUNTER);
|
reg_write_m(RTL837X_REG_SEC_COUNTER);
|
||||||
reg_read_m(RTL837X_REG_SEC_COUNTER);
|
reg_read_m(RTL837X_REG_SEC_COUNTER);
|
||||||
|
|
||||||
|
// Check for button presses once a second
|
||||||
|
handle_button();
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
print_sfr_data();
|
print_sfr_data();
|
||||||
write_char('\n');
|
write_char('\n');
|
||||||
@@ -1200,9 +1203,6 @@ void idle(void)
|
|||||||
// Check for changes with SFP modules
|
// Check for changes with SFP modules
|
||||||
handle_sfp();
|
handle_sfp();
|
||||||
|
|
||||||
// Check for button presses
|
|
||||||
handle_button();
|
|
||||||
|
|
||||||
// Check new Packets RX
|
// Check new Packets RX
|
||||||
handle_rx();
|
handle_rx();
|
||||||
// Check UIP for packets to transmit
|
// Check UIP for packets to transmit
|
||||||
|
|||||||
Reference in New Issue
Block a user