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:
Martin Jaeger
2019-11-11 09:35:26 +01:00
parent d1ff837c5e
commit f254c77ab6
13 changed files with 452 additions and 514 deletions
+2 -2
View File
@@ -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 };