- 05 Oct, 2014 7 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Timers now have the following new features: - can init freq using floating point; eg tim.init(freq=0.1) - tim.source_freq() added to get freq of timer clock source - tim.freq() added to get/set freq - print(tim) now prints freq
-
Damien George authored
-
Damien George authored
windows tests fixes
-
stijn authored
-
- 04 Oct, 2014 3 commits
-
-
stijn authored
-
Damien George authored
Eg pyb.freq(120000000) sets the CPU to 120MHz. The frequency can be set at any point in the code, and can be changed as many times as you like. Note that any active timers will need to be reconfigured after a freq change. Valid range is 24MHz to 168MHz (but not all freqs are supported). The code maintains a 48MHz clock for the USB at all times and it's possible to change the frequency at a USB REPL and keep the REPL alive (well, most of the time it stays, sometimes it resets the USB for some reason). Note that USB does not work with pyb.freq of 24MHz.
-
Damien George authored
-
- 03 Oct, 2014 6 commits
-
-
Damien George authored
Implement missing ARM emitter functions for viper
-
Fabian Vogt authored
-
Damien George authored
-
Damien George authored
This should pretty much resolve issue #50.
-
Damien George authored
-
Damien George authored
Addressing issue #50.
-
- 02 Oct, 2014 5 commits
-
-
Damien George authored
Comes with test script. Copy both files to pyboard and run "import nrf24l01test".
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Remove reference to pyb.gc; add reference to pyb.millis. There are lots of functions not listed when you run help(), but it would be too much to list them all, so we list only some basic, useful ones. Addresses issue #846.
-
- 01 Oct, 2014 3 commits
-
-
blmorris authored
-
Damien George authored
Addresses issue #859.
-
Dave Hylands authored
-
- 30 Sep, 2014 8 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
3rd party drivers should not export generic names like "close".
-
Damien George authored
As per issue #876, the network module is used to configure NICs (hardware modules) and configure routing. The usocket module is supposed to implement the normal Python socket module and selects the underlying NIC using routing logic. Right now the routing logic is brain dead: first-initialised, first-used. And the routing table is just a list of registered NICs. cc3k and wiznet5k work, but not at the same time due to C name clashes (to be fixed). Note that the usocket module has alias socket, so that one can import socket and it works as normal. But you can also override socket with your own module, using usocket at the backend.
-
Damien George authored
Most of the time you don't use the NSS pin of the SPI bus, and so it shouldn't be enabled by default (this gave some bugs in the past).
-
Damien George authored
In CPython IOError (and EnvironmentError) is deprecated and aliased to OSError. All modules that used to raise IOError now raise OSError (or a derived exception). In Micro Python we never used IOError (except 1 place, incorrectly) and so don't need to keep it. See http://legacy.python.org/dev/peps/pep-3151/ for background.
-
- 29 Sep, 2014 8 commits
-
-
Damien George authored
Fixes bug with x86-64 viper ptr16.
-
Damien George authored
-
Damien George authored
Viper can now do the following: def store(p:ptr8, c:int): p[0] = c This does a store of c to the memory pointed to by p using a machine instructions inline in the code.
-
Damien George authored
-
Damien George authored
This included a bit of restructuring of the assembler backends. Note that the ARM backend is missing a few functions and won't compile.
-
Damien George authored
Allows things like: if 1: ...
-
Damien George authored
-
Damien George authored
-