| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-05-02 | Add shell script to automatically build stmhal/ for all pyboards. | Damien George | |
| 2014-05-01 | Merge pull request #542 from dhylands/fix-pin | Damien George | |
| Fix pin initialization when a mode argument is provided | |||
| 2014-05-01 | Fix pin initialization when a mode argument is provided | Dave Hylands | |
| 2014-05-01 | Add flashboard target to the stmhal Makefile to run dfu-util | Andrew Scheller | |
| Which allows you to run "make -C stmhal flashboard" from the top-level directory. Also ties in nicely with my configurable BUILD directory from #506 | |||
| 2014-04-30 | stmhal, docs: Small changes to URL links; adds list of files if none given. | Damien George | |
| This documentation is now available at micropython.org/doc/ | |||
| 2014-04-30 | stmhal: Reinstate CC3000 driver from old stm/ port. | Damien George | |
| It's not enabled by default because it doesn't fully work. It can connect to an AP, get an IP address and do a host-lookup, but not yet do send or recv on a socket. | |||
| 2014-04-30 | stmhal: Make LED.intensity return the same value it was set to. | Damien George | |
| Also give proper error message when trying to construct a non-existent LED. Addresses issue #530. | |||
| 2014-04-29 | stmhal: Oops, typo. | Damien George | |
| 2014-04-29 | stmhal: Add documentation in comments, and script to generate HTML. | Damien George | |
| 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. | |||
| 2014-04-26 | Simplify names for argcheck.c / arg parsing. | Damien George | |
| 2014-04-26 | Add ARRAY_SIZE macro, and use it where possible. | Damien George | |
| 2014-04-21 | stmhal: Update help text. | Damien George | |
| 2014-04-21 | stmhal: Fix bug with pin GPIO reading. | Damien George | |
| 2014-04-21 | stmhal, usrsw: Wrap usrsw.c in #if, for when switch is not available. | Damien George | |
| 2014-04-21 | stmhal, accel: Add TODO comment. | Damien George | |
| 2014-04-21 | stmhal, usrsw: Update comments for new switch API. | Damien George | |
| 2014-04-21 | stmhal: Make switch a class, to follow suit of all other modules. | Damien George | |
| 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. | |||
| 2014-04-21 | stmhal, servo: Rename calibrate method to calibration. | Damien George | |
| It should be a noun, since it supports getting and setting depending on the number of arguments given. | |||
| 2014-04-21 | stmhal, timer: Remove obsolete global variable. | Damien George | |
| 2014-04-21 | stmhal: Add Timer class: simple TIM control, incl callback on IRQ. | Damien George | |
| 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. | |||
| 2014-04-21 | stmhal: Make DAC dynamically allocate instances; rename dma->write_timed. | Damien George | |
| 2014-04-21 | stmhal: Clean up rtc.c a bit. | Damien George | |
| 2014-04-21 | stmhal: Rename USART to UART. | Damien George | |
| 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 :) | |||
| 2014-04-21 | stmhal: Add some documentation to I2C, SPI and USART modules. | Damien George | |
| 2014-04-21 | stmhal: Improve USART class, to be more like SPI and I2C. | Damien George | |
| The three classes I2C, SPI and USART now have a fairly uniform (Python) API. All are constructed, initialised and deinitialised in the same way. They can have most of their parameters set, using keyword arguments. All have send and recv (although slightly different with I2C requiring an address in master mode). recv can do inplace receiving (ie store the data in a previously-created bytearray). It's just polling mode at the moment, but interrupt and DMA would be nice to add. | |||
| 2014-04-21 | stmhal, SPI and I2C: Improvements to functionality and consistency. | Damien George | |
| 2014-04-20 | stmhal: Improved configurability for I2C and SPI busses. | Damien George | |
| The HAL handles for the I2C/SPI objects are rather large, so we don't want to unnecessarily include them. | |||
| 2014-04-20 | Fix i2c and spi to compile for Netduino Plus 2 | Dave Hylands | |
| 2014-04-20 | stmhal: Small bug fixes and simplifications. | Damien George | |
| 2014-04-20 | stmhal: Only init RNG if it's used. | Damien George | |
| 2014-04-20 | stmhal: Update ExtInt to allow keyword arguments in constructor. | Damien George | |
| 2014-04-20 | stmhal: Tidy up and improve consistency across modules. | Damien George | |
| 2014-04-20 | stmhal: Add SPI class. | Damien George | |
| Also some updates to compile with latest changes to core py. | |||
| 2014-04-19 | Merge branch 'master' of github.com:micropython/micropython | Damien George | |
| 2014-04-19 | stmhal: Add pyb.Pin.init method to re-init GPIO pin mode. | Damien George | |
| 2014-04-19 | stmhal: Improve RTC class; make fatfs use RTC for time stamping files. | Damien George | |
| 2014-04-19 | stmhal: Add pyb.unique_id, to get unique id of MCU. | Damien George | |
| 2014-04-19 | stmhal: Update for mp_binary_get_size() refactor. | Paul Sokolovsky | |
| 2014-04-19 | stmhal: Rename pyb.Led to pyb.LED to conform to naming rules. | Damien George | |
| It's Light Emitting Diode, so should be LED. | |||
| 2014-04-19 | stmhal: Remove pyb.input (use sys.stdio.read(1) instead). | Damien George | |
| 2014-04-19 | stmhal: Add lots of constants to stm module. | Damien George | |
| 2014-04-18 | stmhal: Update ADC, DAC and I2C objects to use new buffer protocol. | Damien George | |
| Main reason for expanding buffer protocol API was to support writes to a buffer in ADC module (see read_timed). With this change you can now create an array of arbitrary type and ADC.read_timed will store into that array in the correct format (byte, int, float). I wonder though if all these changes were really worth it to support just this function. Hopefully this enhanced buffer protocol API (with typecode specified) will be used elsewhere. | |||
| 2014-04-18 | stmhal: Update help and comments re gpio changing to Pin. | Damien George | |
| 2014-04-18 | stmhal: Big cleanup; merge gpio into Pin; make names consistent. | Damien George | |
| 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. | |||
| 2014-04-18 | stmhal: Remove non-ascii character from include file. | Damien George | |
| 2014-04-17 | py: Rename USE_COMPUTED_GOTOS to USE_COMPUTED_GOTO and enable on stmhal. | Damien George | |
| On stmhal, computed gotos make the binary about 1k bigger, but makes it run faster, and we have the room, so why not. All tests pass on pyboard using computed gotos. | |||
| 2014-04-17 | py: Fix pfenv_print_strn to return correct number of chars printed. | Damien George | |
| With this fix, all tests in tests/basics pass on pyboard. | |||
| 2014-04-17 | build: Simplify build directory layout by putting all headers in genhdr. | Damien George | |
| Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'. | |||
| 2014-04-17 | Merge branch 'relocatable-build-dir' of github.com:lurch/micropython into ↵ | Damien George | |
| lurch-relocatable-build-dir | |||
| 2014-04-17 | Merge branch 'master' of github.com:micropython/micropython | Damien George | |
