summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-25py/modio: io.BufferedWriter: Describe flushing policy.Paul Sokolovsky
2016-03-25py/modio: Implement io.BufferedWriter.flush().Paul Sokolovsky
2016-03-25py/modio: Initial implementation of io.BufferedWriter class.Paul Sokolovsky
Just .write() method implemented currently.
2016-03-25extmod/modwebsocket: Implement read support.Paul Sokolovsky
2016-03-24py/stream: Fix object vs ptr usecase in mp_stream_writeall().Paul Sokolovsky
2016-03-24extmod/modwebsocket: Start module for WebSocket helper functions.Paul Sokolovsky
Currently, only write support is implemented (of limited buffer size).
2016-03-24py/stream: Add mp_stream_writeall() helper function.Paul Sokolovsky
Spools entire output buffer to a blocking stream (chunk by chunk if needed).
2016-03-24esp8266: Add tests/onewire.py as a driver and test code for ds18b20 dev.Damien George
2016-03-24esp8266: Add onewire helper functions as C module.Damien George
Includes functions to read and write bits and bytes.
2016-03-24esp8266: Implement bit-bang I2C read, and add i2c.readfrom method.Damien George
I2C reading tested with TSL2561 luminosity sensor.
2016-03-24esp8266: Clean up bit-bang I2C implementation.Damien George
Changed from using set_sda_scl function to independent set_sda and set_scl functions.
2016-03-24esp8266/modpybi2c: Add missing include.Paul Sokolovsky
2016-03-24esp8266: Add basic I2C driver, with init and writeto methods.Damien George
Tested and working with SSD1306 I2C display.
2016-03-24esp8266: Expose pin object as a public structure for use as C pin API.Damien George
This is an initial attempt at making a simple C pin API for writing things like I2C drivers in C.
2016-03-23esp8266: Enable auto-indent in REPL.Paul Sokolovsky
2016-03-23esp8266: Add "socket" and "usocket" aliases for lwip module.Paul Sokolovsky
2016-03-23esp8266: Enable non-blocking stream support.Paul Sokolovsky
2016-03-23esp8266: Enable more extmod's: uheapq, ure, uzlib.Damien George
2016-03-23esp8266: Add module weak link from json to ujson.Damien George
2016-03-23esp8266: Enable urandom module.Paul Sokolovsky
2016-03-23esp8266: Make mp_hal_delay_us work with new event framework.Damien George
2016-03-23esp8266: Update README with the latest features.Paul Sokolovsky
2016-03-19extmod/uctypes: Change param type from void* to byte*.Damien George
2016-03-19extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types.Damien George
2016-03-19extmod/uctypes: Use mp_binary_get_val helper when extracting value.Damien George
It handles more cases than mp_binary_get_int.
2016-03-19py/parse: When looking up consts, check they exist before checking type.Damien George
2016-03-17docs: Update pyb.UART.any() to mention that it returns character count.Peter Hinch
2016-03-17docs: Mention that pyb.SPI constructor accepts "X" and "Y" arguments.Peter Hinch
2016-03-17docs: Update pyb.I2C constructor to reflect changes in Pyboard Lite.Peter Hinch
2016-03-17docs: Update asm tutorial, maximum number of allowed args is now 4.Peter Hinch
2016-03-17tests/io: Remove "testfile" at end of open_plus test.Damien George
2016-03-17esp8266/ets_alt_task: Make FIRST_PRIO=0 to cover all task priorities.Damien George
FIRST_PRIO=2 works but using 0 is hopefully safer, and can anyway be optimised in the future.
2016-03-17esp8266: Store frozen modules in FlashROM.Paul Sokolovsky
Requires special lexer to access their contents.
2016-03-16docs/esp8266: Update quick reference: i2c.readfrom and neopixel example.Damien George
2016-03-16py: Don't allocate an extra parse node for power exponent.Damien George
Previous to this patch, the "**b" in "a**b" had its own parse node with just one item (the "b"). Now, the "b" is just the last element of the power parse-node. This saves (a tiny bit of) RAM when compiling.
2016-03-16py/frozenmod: Allow port to override lexer to use for frozen modules.Paul Sokolovsky
2016-03-16tests: Add a test for argument passing to inline-asm functions.Damien George
2016-03-16py/objfun: Allow inline-asm functions to be called with 4 arguments.Damien George
2016-03-15qemu-arm: Enable builtin override feature, and enable more tests.Damien George
Hopefully these tests run reliably on Travis.
2016-03-15qemu-arm: Reinitialise uPy heap and runtime at start of each test.Damien George
Previous to this patch, all qemu-arm tests were running in the same session, and global variables could be left over from the previous test. This patch makes it so that the heap and runtime are reinitialised at the start of each test.
2016-03-15tests: Add new subdir "stress/" specifically for stress tests.Damien George
2016-03-15tests: Split large tests into smaller files, to run with a small heap.Damien George
All tests in basics/ directory can now run and pass using 64-bit unix port with only a 16k heap (./run-tests --heapsize 16k). Tests in this directory should remain small so they can be used for ports with a small heap.
2016-03-15tests/run-tests: Add cmd line option "--heapsize".Damien George
This allows you to specify the heapsize that unix will use when running the test suite, eg: ./run-tests --heapsize 16k
2016-03-15py/formatfloat: Fix buffer overflow when formatting tiny numbers.Damien George
2016-03-15py: For mp_buffer_info_t, change len type from mp_uint_t to size_t.Damien George
2016-03-14py/objarray: Fix array slice assignment when array is reallocated.Damien George
Addresses issue #1898.
2016-03-14py/parsenum: Fix compiler warnings for no decl and signed comparison.Damien George
2016-03-14py: When printf'ing an object as a pointer, pass the concrete pointer.Damien George
2016-03-14py: Fix passing of some wide int types to printf varg format list.Damien George
Passing an mp_uint_t to a %d printf format is incorrect for builds where mp_uint_t is larger than word size (eg a nanboxing build). This patch adds some simple casting to int in these cases.
2016-03-14py/argcheck: Use size_t instead of mp_uint_t to count number of args.Damien George