| 21 | }; |
| 22 | |
| 23 | typedef struct control_state { |
| 24 | uint8_t ports[0x80]; |
| 25 | uint8_t cpuSpeed; |
| 26 | bool usbSelfPowered; |
| 27 | bool usbBusPowered; |
| 28 | |
| 29 | uint8_t setBatteryStatus; |
| 30 | uint8_t readBatteryStatus; |
| 31 | bool batteryCharging; |
| 32 | |
| 33 | uint32_t privileged; |
| 34 | uint32_t stackLimit; |
| 35 | uint32_t protectedStart; |
| 36 | uint32_t protectedEnd; |
| 37 | uint8_t protectionStatus; |
| 38 | uint8_t protectedPortsUnlocked; |
| 39 | uint8_t flashUnlocked; |
| 40 | |
| 41 | bool off; |
| 42 | } control_state_t; |
| 43 | |
| 44 | extern control_state_t control; |
| 45 |
nothing calls this directly
no outgoing calls
no test coverage detected