- 07 Dec, 2015 6 commits
-
-
Dave Hylands authored
Currently nlr_jump_fail prints that there was an uncaught exception but nothing about the exception. This patch causes nlr_jump_failed to try to print the exception. Given that printf was called on the line above, I think that the call to mp_obj_print_exception has about as much likelyhood of succeeding as the printf does.
-
Paul Sokolovsky authored
-
pohmelie authored
-
pohmelie authored
-
pohmelie authored
-
Dave Hylands authored
When you use the USER button to perform a filesystem reset at boot time then it wipes out the filesystem and creates a new boot.py and main.py. With this patch these files are executed after formatting, ensuring that pyb and machine modules get imported.
-
- 06 Dec, 2015 4 commits
-
-
Paul Sokolovsky authored
Automagically skip related modules.
-
Dave Hylands authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 05 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
Per CPython docs, "Registering a file descriptor that’s already registered is not an error, and has the same effect as registering the descriptor exactly once." https://docs.python.org/3/library/select.html#select.poll.register That's somewhat ambiguous, what's implemented here is that if fd si not yet registered, it is registered. Otherwise, the effect is equivalent to modify() method.
-
- 04 Dec, 2015 11 commits
-
-
Paul Sokolovsky authored
Based on similar usage for sys.argv/sys.path.
-
Ryan Shaw authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This for example will allow people to reload modules which didn't load successfully (e.g. due to syntax error).
-
Paul Sokolovsky authored
Usually this checking is done by VM on jump instructions, but for linear sequences of instructions and builtin functions this won't happen. Particular target of this change is long-running builtin functions like time.sleep().
-
Damien George authored
This is a hack to free up TIM3 so that it can be used by the user. Instead we use the PVD irq to call the USB VCP polling function, and trigger it from SysTick (so SysTick itself does not do any processing). The feature is enabled for pyboard lite only, since it lacks timers.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Consider the following scenario: SD card is being read by pyboard; USB irq comes in for MSC read request; SD card needs to be read from within USB irq while SD read is already ongoing. Such contention needs to be avoided. This patch provides a simple solution, to raise the irq priority above that of the USB irq during SD DMA transfers. Pyboard and PC can now read from the SD card at the same time (well, reads are interleaved).
-
Damien George authored
These can be used to disable only certain interrupts, ones at or above the given priority value.
-
- 03 Dec, 2015 2 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
Addresses issue #1678.
-
- 02 Dec, 2015 7 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Dave Hylands authored
-
Paul Sokolovsky authored
-
Damien George authored
-
fabien.lementec authored
-
- 01 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
As set by signal handler. This assumes that exception will be raised somewhere else, which so far doesn't happen for single function call. Still, it makes sense to handle that in some common place.
-
- 30 Nov, 2015 2 commits
-
-
Damien George authored
In non-blocking mode (timeout=0), uart.write() can now transmit all of its data without raising an exception. uart.read() also works correctly in this mode. As part of this patch, timout_char now has a minimum value which is long enough to transfer 1 character. Addresses issue #1533.
-
Ryan Shaw authored
-
- 29 Nov, 2015 6 commits
-
-
Paul Sokolovsky authored
-
danicampora authored
-
Damien George authored
To use, put the following in mpconfigport.h: #define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_D) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE) typedef int64_t mp_int_t; typedef uint64_t mp_uint_t; #define UINT_FMT "%llu" #define INT_FMT "%lld" Currently does not work with native emitter enabled.
-
Damien George authored
This allows the mp_obj_t type to be configured to something other than a pointer-sized primitive type. This patch also includes additional changes to allow the code to compile when sizeof(mp_uint_t) != sizeof(void*), such as using size_t instead of mp_uint_t, and various casts.
-
Damien George authored
-
Damien George authored
The GC works with concrete pointers and so the types should reflect this.
-