- Nov 16, 2021
-
- Nov 14, 2021
-
-
schneider authored
-
- Nov 13, 2021
-
- Nov 01, 2021
-
-
rahix authored
When ctx is currently running in the dispatcher task to perform some drawing calculations, the code here in the pmic task might preempt it. This can lead to odd glitches and probably in the worst case a crash. Because we know that no other code will continue running after we've hit the shutdown codepath, we can just force-reinitialize ctx here.
-
rahix authored
Print "Reset!" to the screen before resetting so it is obvious what is about to happen. Currently, the screen brightness just suddenly jumps up and card10 becomes unresponsive until the bootloader shows up.
-
rahix authored
-
- Oct 01, 2021
- Sep 23, 2021
-
-
schneider authored
- Sep 20, 2021
-
- Sep 19, 2021
-
-
schneider authored
-
schneider authored
-
rahix authored
-
rahix authored
-
schneider authored
-
schneider authored
-
rahix authored
When core 1 repeatedly calls `epic_sleep()`, this could delay an epic_load() from core 0 because the reset interrupt can only be delivered after such a call completed. To work around this, add calls into `do_load()` to notify the dispatcher task that it should return early from calls like `epic_sleep()`. This gets a bit tricky because the dispatcher task also uses `ulTaskNotifyTake()` to wake up when new API calls arrive. To make sure we still break out of `epic_sleep()`, we need to call `xTaskNotifyGive()` twice in the wait loop.
-
rahix authored
"Cache" the local sleep value to not send repetitive sleep-out commands to the display when the user repeatedly sets the backlight.
-
rahix authored
-
rahix authored
Previously, such lines would be drawn as a fuzzy two-pixel wide line instead of a sharp one-pixel one. This is because the coordinate grid is aligned _between_ pixels instead of on the pixel centers. More information in this cairo FAQ: https://www.cairographics.org/FAQ/#sharp_lines For odd linewidths, add 0.5 to all coordinates to offset the line perfectly onto the pixel grid. This makes them look sharp, as with the previous gfx code. Suggested-by:
Øyvind Kolås <pippin@gimp.org>
-
rahix authored
Not sure why I didn't do this right away, but using 1.95 makes the circles look much better. Using 2 leads to a small artifact on the right side so we have to stay slightly below...
-
rahix authored
Remove the last remaining piece of gfx integration. With this, the card10 firmware is now fully rendering using ctx instead!
-
rahix authored
Reimplement `epic_disp_blit()` without relying on the gfx library.
-
rahix authored
Make the new ctx based implementation behave just like the old one. This means _including_ the yend row and xend column. This fixes the G-Watch and DigiClk not looking as they should.
-
rahix authored
Use ctx to display the panic message. The implementation contains a few safeguards to hopefully deal with any breakage that happended before the panic.
-
rahix authored
With the PMIC task calling graphics code, it now needs a bit more stack space. Increase the allocation to ensure we won't get a stack overflow here.
-