- Oct 16, 2020
-
-
rahix authored
Instead of "rebooting" Pycardium, hand over control to core 0, notifying it of a severe failure via epic_exit(253). Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
Calls to abort() shouldn't make core 1 busy-spin; call epic_exit() instead. Fixes #76. Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
Instead of dropping to REPL and silently requiring the user to return to menu via button-press, directly call epic_exit(0) when a script terminates execution normally (i.e. not via exception). Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
Remove the big endless loop from pycardium main and instead use epic_exec("") to switch to REPL. This way, any MicroPython state is reset and also all hardware will be in a clean reinitialized state. This also means that pycard10.py will now run scripts in a clean environment that is not tainted by whatever was running before. Fixes #212. Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
Always print the pycardium header and a short message afterwards what pycardium is about to do. Signed-off-by:
Rahix <rahix@rahix.de>
-
- Oct 15, 2020
-
- Oct 13, 2020
-
-
schneider authored
-
- Oct 08, 2020
-
-
schneider authored
-
- Sep 14, 2020
-
-
schneider authored
-
- Sep 07, 2020
-
-
rahix authored
Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
Signed-off-by:
Rahix <rahix@rahix.de>
-
- Sep 06, 2020
- Jul 18, 2020
- Jun 25, 2020
-
-
schneider authored
-
- Jun 15, 2020
- Jun 14, 2020
-
-
schneider authored
Create weak links from MicroPython specific implementations of modules to standard names. I.e. allow `import time` to import utime module.
-
- May 21, 2020
-
-
rahix authored
It's 44 years since the release of vi and sadly lots of editors still don't care about trimming off trailing spaces ... Signed-off-by:
Rahix <rahix@rahix.de>
-
- Apr 26, 2020
-
-
zenox authored
-
- Apr 08, 2020
-
-
schneider authored
-
- Apr 06, 2020
-
-
schneider authored
-
- Apr 03, 2020
- Mar 16, 2020
- Jan 31, 2020
- Jan 03, 2020
-
-
rahix authored
Instead of an ugly hack where spaces are used to pad the entries background colors, properly draw a rectangle and the text above it. No visual change. Signed-off-by:
Rahix <rahix@rahix.de>
-
- Dec 09, 2019
-
-
rahix authored
Signed-off-by:
Rahix <rahix@rahix.de>
-
- Dec 06, 2019
-
-
rahix authored
Fix all warnings in pycardium/modules. Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
As discussed in card10/firmware!357, we should increase the number of enabled compiler warnings to catch a lot more silent bugs. Increase the meson-global warning level to 2, but excluding the `unused-parameter` and `old-style-declaration` warnings. Additionally, disable warnings for libraries as we cannot fix that code anyway. Signed-off-by:
Rahix <rahix@rahix.de>
-
- Nov 19, 2019
-
-
fuchsi* authored
-
- Nov 13, 2019
-
-
rahix authored
Implement the hal functions necessary for utime.ticks_ms() and utime.ticks_us(). This enables much more accurate measurements of time taken in Pycardium (useful for profiling). Please note that the tick counter will reset whenever a new app is loaded. Signed-off-by:
Rahix <rahix@rahix.de>
-
The framebuf module provides a framebuffer implementation running purely in MicroPython which will increase drawing performance by a lot. A follow-up change will be necessary to connect this framebuffer implementation to the display API. This commit is implements a part of MR !211.
-
rahix authored
Rewrite the delay implementation to be more accurate and properly handle incoming MicroPython interrupts (See issue #177). For this, the delay is split into two functions: - systick_delay_precise(): Delay with microsecond accuracy for delays less than 1 ms. - systick_delay_sleep(): Sleep for a potentially very long time, using WFI to put the CPU to sleep. Whenever the CPU wakes up, this function will poll the MicroPython scheduler so it can execute pending interrupts. Ontop, this implementation allows for a future, fast, tick-based monotonic time implementation (e.g. mp_hal_ticks_ms). Signed-off-by:
Rahix <rahix@rahix.de>
-