Refactoring of load control and state machine
- State machine and control merged to one function - Load states marked as deprecated, global error flags used instead - Reduced duplicated code and made load control function easier to read
This commit is contained in:
+2
-2
@@ -48,8 +48,8 @@
|
||||
#define PIN_SWD_TX 0
|
||||
#define PIN_SWD_RX 0
|
||||
|
||||
#define PIN_LOAD_DIS 0
|
||||
#define PIN_USB_PWR_DIS 0
|
||||
//#define PIN_LOAD_DIS 0
|
||||
//#define PIN_USB_PWR_DIS 0
|
||||
|
||||
enum pin_state_t { PIN_HIGH, PIN_LOW, PIN_FLOAT };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user