- 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.
-
- 21 Apr, 2014 3 commits
-
-
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.
-
- 20 Apr, 2014 1 commit
-
-
Damien George authored
-
- 18 Apr, 2014 2 commits
-
-
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.
-
- 17 Apr, 2014 1 commit
-
-
Damien George authored
Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'.
-
- 08 Apr, 2014 1 commit
-
-
Damien George authored
-
- 30 Mar, 2014 3 commits
-
-
Damien George authored
Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now.
-
Damien George authored
All board config macros now begin with MICROPY_HW_. Renamed PYBv10 to PYBV10, since macros should be all uppercase. Made SDCARD_DETECT configurable in mpconfigport.h, so that the SD detect pin can be easily configured.
-
Damien George authored
Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID. Choice is made by an option in boot.py, with default being CDC+MSC. HID+MSC is not currently supported, but should be easy to implement. Boot up now has ability to change the reset mode: hold down USR switch while booting and LEDs will count from 1 to 7 to indicate the boot mode. Release USR when correct mode is selected. Current modes are 1 (normal boot), 2 (safe mode), 3 (reset FS mode).
-
- 15 Mar, 2014 1 commit
-
-
Dave Hylands authored
-
- 27 Feb, 2014 1 commit
-
-
Dave Hylands authored
Minor cleanup.
-
- 23 Feb, 2014 1 commit
-
-
Dave Hylands authored
Revamp usrsw to use new exti code. Add user switch callback function.
-
- 04 Feb, 2014 1 commit
-
-
Dave Hylands authored
This also fixes up the IRQ for the PYBOARD4 USERSW although I was unable to test that functionality.
-
- 25 Jan, 2014 1 commit
-
-
Damien George authored
-
- 23 Jan, 2014 1 commit
-
-
Damien George authored
-
- 22 Jan, 2014 1 commit
-
-
mux authored
* Add some generic feature macros to mpconfigport * Move pin and port definitions from usrsw.c to mpconfigport
-
- 21 Jan, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
-
- 05 Jan, 2014 4 commits
-
-
Damien George authored
-
mux authored
* Add a TARGET definition to Makefile (default PYBOARD). * Add support for discovery LEDs in led module. * Add support for discovery user switch in usersw * Add EXTI interrupt handler for discovery user switch on (PA0). * Parameterize led and usrsw modules pins and port. * Issue #83
-
Damien George authored
-
mux authored
* Move user switch code from main.c into a separate module (usrsw) * Add usrsw.c to Makefile
-