- 26 Apr, 2014 1 commit
-
-
Damien George authored
-
- 25 Apr, 2014 5 commits
-
-
Damien George authored
Also add a few STATIC's to some compile functions that should have them. Addresses issue #521.
-
Damien George authored
-
Damien George authored
Also add some more debugging output to gc_dump_alloc_table(). Now that newly allocated heap is always zero'd, maybe we just make this a policy for the uPy API to keep it simple (ie any new implementation of memory allocation must zero all allocations). This follows the D language philosophy. Before this patch, a previously used memory block which had pointers in it may still retain those pointers if the new user of that block does not actually use the entire block. Eg, if I want 5 blocks worth of heap, I actually get 8 (round up to nearest 4). Then I never use the last 3, so they keep their old values, which may be pointers pointing to the heap, hence preventing GC. In rare (or maybe not that rare) cases, this leads to long, unintentional "linked lists" within the GC'd heap, filling it up completely. It's pretty rare, because you have to reuse exactly that memory which is part of this "linked list", and reuse it in just the right way. This should fix issue #522, and might have something to do with issue #510.
-
Paul Sokolovsky authored
-
Damien George authored
-
- 24 Apr, 2014 5 commits
-
-
Damien George authored
Qemu
-
Damien George authored
-
Damien George authored
-
Damien George authored
objexcept: Don't store args tuple within exception object.
-
Damien George authored
vm: Add rudimentary bytecode execution tracing capability.
-
- 23 Apr, 2014 6 commits
-
-
Paul Sokolovsky authored
To help with debugging issue like #510 for example.
-
Paul Sokolovsky authored
Suggested by @lurch.
-
Paul Sokolovsky authored
To avoid pointer-to-field GC problem.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 21 Apr, 2014 23 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Some BSD socket functions don't return error numbers in errno namespace, but rather in other error namespaces. CPython resolves this by using OSError subclasses for them. We don't do that so far, so there's ambiguity here.
-
Paul Sokolovsky authored
Well, Python3 also defines an attribute for that, but that's bloat.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Exact behavior of typecodes may be not yet enforced.
-
Ilya Dmitrichenko authored
-
Ilya Dmitrichenko authored
-
Ilya Dmitrichenko authored
-
Ilya Dmitrichenko authored
Switch from CodeSourcery to ARM GCC and clean-up some stale files, also copy `main.c` and `mpconfigport.h` from bare-arm.
-
Ilya Dmitrichenko authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Instead of pyb.switch() as a function, it's more consistent (with respect to all the other modules and peripherals) to have pyb.Switch() create a switch object. This then generalises to having multiple switches. Call the object to get its state. Use sw.callback to set the callback function for when the switch is pressed.
-
Damien George authored
It should be a noun, since it supports getting and setting depending on the number of arguments given.
-
Damien George authored
-
Damien George authored
Simple but functional timer control. More sophistication will eventually be added, or for now just use direct register access :) Also added pyb.freq() function to get MCU clock frequencies.
-
Damien George authored
-