| 75 | } |
| 76 | |
| 77 | void backlight_reset(void) { |
| 78 | memset(backlight.ports, 0, sizeof backlight.ports); |
| 79 | backlight.ports[0x00] = 0x64; |
| 80 | backlight.ports[0x01] = 0x64; |
| 81 | backlight.ports[0x02] = 0x61; |
| 82 | backlight.ports[0x03] = 0x4C; |
| 83 | backlight.ports[0x20] = 0xFF; /* backlight scaler? (unimplemented) */ |
| 84 | backlight.brightness = 0xFF; /* backlight level (PWM) */ |
| 85 | } |
| 86 | |
| 87 | bool backlight_save(FILE *image) { |
| 88 | return fwrite(&backlight, sizeof(backlight), 1, image) == 1; |
nothing calls this directly
no outgoing calls
no test coverage detected