- 21 Sep, 2016 1 commit
-
-
Damien George authored
One can instead lookup __name__ in the modules dict to get the value.
-
- 09 Nov, 2015 1 commit
-
-
Damien George authored
-
- 31 Oct, 2015 1 commit
-
-
Damien George authored
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
-
- 29 Oct, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 11 Oct, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 13 Feb, 2015 1 commit
-
-
Damien George authored
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
-
- 01 Jan, 2015 1 commit
-
-
Damien George authored
-
- 29 Nov, 2014 1 commit
-
-
Damien George authored
This is just a clean-up of the code. Generated code is exactly the same.
-
- 28 Sep, 2014 1 commit
-
-
Dave Hylands authored
tested using: stmhal: https://github.com/dhylands/upy-examples/blob/master/elapsed.py teensy: https://github.com/dhylands/upy-examples/blob/master/teensy/elapsed.py
-
- 19 Sep, 2014 1 commit
-
-
Dave Hylands authored
-
- 25 Aug, 2014 1 commit
-
-
Dave Hylands authored
Factored irq functions into a separate file.
-
- 03 Aug, 2014 1 commit
-
-
Dave Hylands authored
-
- 15 Jul, 2014 1 commit
-
-
Dave Hylands authored
Put #include of mpconfig.h before misc.h Replace uses of ARRAY_SIZE with MP_ARRAY_SIZE
-
- 03 Jul, 2014 1 commit
-
-
Damien George authored
See discussion in issue #50.
-
- 16 Jun, 2014 1 commit
-
-
Dave Hylands authored
Refactored some stmhal files which are shared with teensy.
-
- 15 Jun, 2014 1 commit
-
-
Damien George authored
This adds a hook to get/set pyb_uart_global_debug from Python, using pyb.repl_uart(). You can set it to an arbitrary UART object, and then the REPL (in and out) is repeated on this UART object (as well as on USB CDC). Ultimately, this will be replaced with a proper Pythonic interface to set sys.stdin and sys.stdout.
-
- 14 Jun, 2014 1 commit
-
-
Damien George authored
Still some method names to iron out, and funtionality to add, but this will do for the first, basic version.
-
- 08 Jun, 2014 1 commit
-
-
Damien George authored
See PR #618.
-
- 21 May, 2014 1 commit
-
-
Damien George authored
-
- 19 May, 2014 1 commit
-
-
Damien George authored
-
- 18 May, 2014 2 commits
-
-
Sven Wegener authored
Signed-off-by:
Sven Wegener <sven.wegener@stealer.net>
-
Sven Wegener authored
Signed-off-by:
Sven Wegener <sven.wegener@stealer.net>
-
- 08 May, 2014 1 commit
-
-
Damien George authored
-
- 05 May, 2014 1 commit
-
-
Paul Sokolovsky authored
TODO: Get rid of this compatibility define and rely on standard module.
-
- 03 May, 2014 3 commits
-
-
Damien George authored
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
-
Damien George authored
A negative ms/us is now treated as a delay of 0 ms/us. This patch also improves the calibration of udelay.
-
Damien George authored
Make include dependencies neater, and adheres to the coding convention that headers should not include headers.
-
- 29 Apr, 2014 1 commit
-
-
Damien George authored
Decided to write own script to pull documentation from comments in C code. Style for writing auto generated documentation is: start line with /// and then use standard markdown to write the comment. Keywords recognised by the scraper begin with backslash. See code for examples. Running: python gendoc.py modpyb.c accel.c adc.c dac.c extint.c i2c.c led.c pin.c rng.c servo.c spi.c uart.c usrsw.c, will generate a HTML structure in gendoc-out/. gendoc.py is crude but functional. Needed something quick, and this was it.
-
- 26 Apr, 2014 1 commit
-
-
Damien George authored
-
- 21 Apr, 2014 3 commits
-
-
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
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
It's really a UART because there is no external clock line (and hence no synchronous ability, at least in the implementation of this module). USART should be reserved for a module that has "S"ynchronous capabilities. Also, UART is shorter and easier to type :)
-
- 19 Apr, 2014 3 commits
-
-
Damien George authored
Also some updates to compile with latest changes to core py.
-
Damien George authored
-
Damien George authored
-
- 18 Apr, 2014 4 commits
-
-
Damien George authored
It's Light Emitting Diode, so should be LED.
-
Damien George authored
-
Damien George authored
-
Damien George authored
This is an attempt to clean up the Micro Python API on the pyboard. Gpio functionality is now in the Pin object, which seems more natural. Constants for MODE and PULL are now in pyb.Pin. Names of some classes have been adjusted to conform to CamelCase. Other miscellaneous changes and clean up here and there.
-
- 16 Apr, 2014 1 commit
-
-
Damien George authored
-