- 25 Sep, 2014 4 commits
-
-
Damien George authored
Pulled in and modified work done by mux/iabdalkader on cc3k driver, from iabdalkader-cc3k-update branch. That branch was terribly messy and had too many conflicts to merge neatly.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Also do the same for teensy timer code.
-
- 24 Sep, 2014 1 commit
-
-
Dave Hylands authored
Fix stmhal and teensy print routines to report actual prescaler an period. Fix teensy build to use soft-float Add USE_ARDUINO_TOOLCHAIN option to teensy build
-
- 23 Sep, 2014 2 commits
-
-
Damien George authored
mp_parse_node_free now frees the memory associated with non-interned strings. And the parser calls mp_parse_node_free when discarding a non-used node (such as a doc string). Also, the compiler now frees the parse tree explicitly just before it exits (as opposed to relying on the caller to do this). Addresses issue #708 as best we can.
-
Damien George authored
Stack is full descending and must be 8-byte aligned. It must start off pointing to just above the last byte of RAM. Previously, stack started pointed to last byte of RAM (eg 0x2001ffff) and so was not 8-byte aligned. This caused a bug in combination with alloca. This patch also updates some debug printing code. Addresses issue #872 (among many other undiscovered issues).
-
- 21 Sep, 2014 1 commit
-
-
Damien George authored
This allows to set the pulse width (for PWM mode) as a ratio relative to the period of the timer. Eg, 0.5 is a 50% duty cycle. You can set the ratio in the channel init, or using channel.pulse_width_ratio; the latter can also read the pulse width as a ratio.
-
- 19 Sep, 2014 1 commit
-
-
Dave Hylands authored
-
- 17 Sep, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both.
-
- 15 Sep, 2014 4 commits
-
-
Damien George authored
By measuring SD card addresses in blocks and not bytes, one can get away with using 32-bit numbers. This patch also uses proper atomic lock/unlock around SD card read/write, adds SD.info() function, and gives error code for failed read/writes.
-
Felix Domke authored
-
Felix Domke authored
-
Damien George authored
sys.exit always raises SystemExit so doesn't need a special implementation for each port. If C exit() is really needed, use the standard os._exit function. Also initialise mp_sys_path and mp_sys_argv in teensy port.
-
- 13 Sep, 2014 1 commit
-
-
Damien George authored
Tested and working on unix and pyboard.
-
- 12 Sep, 2014 1 commit
-
-
Damien George authored
-
- 11 Sep, 2014 4 commits
-
-
Damien George authored
Also use less stack space when printing single precision float. Addition of asinf and acosf addresses issue #851.
-
iabdalkader authored
-
Hirotaka Kawata authored
-
iabdalkader authored
-
- 07 Sep, 2014 5 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- 01 Sep, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Allows to create socket objects that support TCP and UDP in server and client mode. Interface is very close to standard Python socket class, except bind and accept do not work the same (due to hardware not supporting them in the usual way). Not compiled by default. To compile this module, use: make MICROPY_PY_WIZNET5K=1
-
- 29 Aug, 2014 2 commits
-
-
Damien George authored
Addressing issue #50, still some way to go yet.
-
Damien George authored
Top-level lib directory is for standard C libraries that we want to provide our own versions of (for efficiency and stand-alone reasons). It currently has libm in it for math functions. Also add atanf and atan2f, which addresses issue #837.
-
- 26 Aug, 2014 5 commits
-
-
Damien George authored
-
Damien George authored
-
David Siorpaes authored
-
Damien George authored
Thanks to Dave Hylands for this patch.
-
Damien George authored
Addresses issue #825.
-
- 25 Aug, 2014 5 commits
-
-
Dave Hylands authored
-
Damien George authored
SysTick IRQ now increases millisecond counter directly (ie without calling HAL_IncTick). Provide our own version of HAL_Delay that does a wfi while waiting. This more than halves power consumption when running a loop containing a pyb.delay call. It used to be like this, but new version of HAL library regressed this feature.
-
Damien George authored
Also some whitespace cleanup.
-
Dave Hylands authored
I also removed trailing spaces from modpyb.c which affected a couple of lines technically not part of this patch. Tested using: https://github.com/dhylands/upy-examples/blob/master/micros_test.py which eventually fails due to wraparound issues (I could fix the test to compensate but didn't bother)
-
Damien George authored
These functions are generally 1 machine instruction, and are used in critical code, so makes sense to have them inline. Also leave these functions uninverted (ie 0 means enable, 1 means disable) and provide macro constants if you really need to distinguish the states. This makes for smaller code as well (combined with inlining). Applied to teensy port as well.
-