MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / init_control

Function init_control

core/control.c:220–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218};
219
220eZ80portrange_t init_control(void) {
221 memset(&control, 0, sizeof control);
222 gui_console_printf("[CEmu] Initialized Control Ports...\n");
223
224 /* Set default state to full battery and not charging */
225 control.batteryCharging = false;
226 control.setBatteryStatus = BATTERY_4;
227
228 return device;
229}
230
231
232void control_reset(void) {

Callers 1

plug_devicesFunction · 0.85

Calls 1

gui_console_printfFunction · 0.50

Tested by

no test coverage detected