- 15 Feb, 2014 2 commits
-
-
Damien George authored
Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
-
Damien George authored
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
-
- 01 Feb, 2014 1 commit
-
-
Damien George authored
Using PendSV interrupt at lowest priority, code can now raise an exception during an interrupt by calling pendsv_nlr_jump. The exception will be raised when all interrupts are finished. This is used to trap ctrl-C from the USB VCP to break out of running Python code.
-
- 23 Jan, 2014 2 commits
-
-
Damien George authored
-
mux authored
-
- 21 Jan, 2014 3 commits
-
-
Damien George authored
f2d and d2f functions from libgcc does not work correctly, most likely due to the ABI being incorrect. libgcc disabled for now.
-
Damien George authored
-
Damien George authored
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
-
- 15 Jan, 2014 1 commit
-
-
Damien George authored
-
- 07 Jan, 2014 3 commits
-
-
John R. Lenton authored
-
Damien George authored
-
mux authored
* Fix LED pin enum, first one should start at 1 * Fix LED initialization typo
-
- 06 Jan, 2014 4 commits
-
-
Damien George authored
-
ian-v authored
-
ian-v authored
-
mux authored
* Fix LED pin enum, first one should start at 1 * Fix LED initialization typo
-
- 05 Jan, 2014 3 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-
mux authored
* Add a TARGET definition to Makefile (default PYBOARD). * Add support for discovery LEDs in led module. * Add support for discovery user switch in usersw * Add EXTI interrupt handler for discovery user switch on (PA0). * Parameterize led and usrsw modules pins and port. * Issue #83
-
- 04 Jan, 2014 1 commit
-
-
Damien George authored
Now much more inline with how CPython does types.
-
- 21 Dec, 2013 1 commit
-
-
Damien authored
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
-
- 23 Oct, 2013 1 commit
-
-
Damien authored
-
- 19 Oct, 2013 1 commit
-
-
Damien authored
-
- 18 Oct, 2013 1 commit
-
-
Damien authored
-