aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-31atmel-samd: Rename the Feather M0 BLE to Feather M0 Bluefruit LE.v1.8.3-59-g1725710Scott Shawcroft
2016-08-31atmel-samd: Re-enable -Os (size) optimizations.Scott Shawcroft
2016-08-31atmel/samd: Support CTRL-C on USB. This won't escape native code but it will ↵Scott Shawcroft
cause Python code to stop.
2016-08-30atmel/samd: Add basic PWM support which only allows for changing the duty.Scott Shawcroft
2016-08-28atmel-samd: Rename module classes so they don't conflict with names from ASF.Scott Shawcroft
2016-08-27atmel-samd: Add direct write access to the DAC output.Scott Shawcroft
2016-08-26atmel-samd: Initial ADC support.Scott Shawcroft
2016-08-24atmel-samd: Support Digital IO pins.Scott Shawcroft
Also bumps up the heap size.
2016-08-24CODECONVENTIONS.md: Fix typos.Scott Shawcroft
2016-08-24atmel-samd: Add limited time module support.Scott Shawcroft
2016-08-24Enable REPL over USB.Scott Shawcroft
All of the code was there except the linker was failing to clear the bss section because I added too many .zeros. The should have only been the exported globals that start with _ like _szero = .. Fixing that and turn on the usb transmit fixed everything.
2016-08-23Change the board information used in the header to be board specific.Scott Shawcroft
2016-08-23Merge remote-tracking branch 'micropython/master'Scott Shawcroft
2016-08-23Add support for REPL on Arduino Zero through EDBG via UART.Scott Shawcroft
2016-08-24py/stream.c: use mp_obj_get_type in mp_get_stream_raiseKrzysztof Blazewicz
In current state `mp_get_stream_raise` assumes that `self_in` is an object and always performs a pointer derefence which may cause a segfault. This function shall throw an exception whenever `self_in` does not implement a stream protocol, that includes qstr's and numbers. fixes #2331
2016-08-24extmod/modbtree: do CHECK_ERROR after __bt_seq()Krzysztof Blazewicz
In `btree_seq()`, when `__bt_seq()` gets called with invalid `flags` argument it will return `RET_ERROR` and it won't initialize `val`. If field `data` of uninitialized `val` is passed to `mp_obj_new_bytes()` it causes a segfault.
2016-08-22Blinking the LED works. Clocks should be set up correctly.Scott Shawcroft
Everything works fine without USB being plugged in but faults (I think) when USB is plugged in. This is switched away from the USB code from the bootloader onto the USB code thats generated by Atmel Studio using the high level classes from ASF.
2016-08-22Compiled and linked SAMD21x18 version successfully.Scott Shawcroft
2016-08-22teensy: Fix execution of frozen boot.py and main.pyDave Hylands
2016-08-22stmhal: Remove obsolete code for special handling of TIM3 irq settings.Damien George
TIM3 is no longer special, or at least does not have special IRQ settings.
2016-08-22stmhal: Fix timer capture/compare interrupt handling for TIM1 and TIM8.Dave Hylands
It turns out that TIM1 and TIM8 have their own Capture/Compare interrupt vector. For all of the other timers, the capture/compare interrupt vector is the same as the update vector. So we need to add handlers for these vectors and enable them when using capture/compare callbacks. During testing of this, I also found that passing a channel callback into the channel constructor would not enable interrupts properly. I tested using: ``` >>> pyb.Timer(1, freq=4).channel(1, pyb.Timer.OC_TOGGLE, callback=lambda t: print('.', end='')) ``` I tested the above with channels 1, 4, and 8
2016-08-20esp8266/esp_mphal: No longer disable watchdog on startup.Paul Sokolovsky
Disabling it was an omission from early development stages.
2016-08-19esp8266/modmachinespi: Add a factory method for SoftSPI/HSPIRadomir Dopieralski
2016-08-19esp8266/modpybhspi: Add a HSPI module for hardware SPI supportRadomir Dopieralski
This module uses ESP8266's SPI hardware, which allows much higher speeds. It uses a library from https://github.com/MetalPhreak/ESP8266_SPI_Driver
2016-08-17extmod/uzlib/: Update uzlib to v2.0.2.Paul Sokolovsky
Consistently use stdint types. Fixes stmhal build.
2016-08-17docs/library/machine.WDT: Add note that WDT is only available on WiPy.Damien George
2016-08-17tests/run-tests: Disable thread/thread_lock4.py on Travis.Damien George
It has reliability issues that need to be worked out.
2016-08-17extmod/uzlib/: Update uzlib to v2.0.1.Paul Sokolovsky
Fixes for pedantic compiler warnings.
2016-08-17tests/uzlib_decompress: Actually test raw DEFLATE stream.Paul Sokolovsky
2016-08-17extmod/moduzlib: Refactor to new stream-compatible uzlib 2.0 API.Paul Sokolovsky
2016-08-17extmod/uzlib/: Update uzlib to v2.0.Paul Sokolovsky
New API supporting stream decompression.
2016-08-17tests/basics/special_methods: Enable tests for extra special methods.Damien George
These additional special methods are enabled on most ports so we can test them in this test.
2016-08-17qemu-arm: Enable MICROPY_PY_ALL_SPECIAL_METHODS.Damien George
The qemu-arm port is for testing, so should have features enabled.
2016-08-17tests/basics: Add a test file for overriding special methods.rguillon
2016-08-16extmod/modwebrepl: set_password(): Raise exception for too long password.Paul Sokolovsky
2016-08-15py/sequence: Allow to use bignums as indices in slice objects.Damien George
See issue #2264.
2016-08-15tests/basics: Add test for break from within try within a for-loop.Damien George
2016-08-15ports: Remove typedef of machine_ptr_t, it's no longer needed.Damien George
This type was used only for the typedef of mp_obj_t, which is now defined by the object representation. So we can now remove this unused typedef, to simplify the mpconfigport.h file.
2016-08-15py/obj.h: For obj reprs A,B,C use void* explicitly for mp_obj_t typedef.Damien George
The machine_ptr_t type is long obsolete as the type of mp_obj_t is now defined by the object representation, ie by MICROPY_OBJ_REPR. So just use void* explicitly for the typedef of mp_obj_t. If a port wants to use something different then they should define a new object representation.
2016-08-15tests/misc/non_compliant: Add tests to improve coverage testing.Damien George
2016-08-15tests/basics: Add more list tests to improve coverage testing.Damien George
2016-08-15tests/basics: Add more tuple tests to improve coverage testing.Damien George
2016-08-14py/objstr: Use mp_raise_{Type,Value}Error instead of mp_raise_msg.Damien George
This patch does further refactoring using the new mp_raise_TypeError and mp_raise_ValueError functions.
2016-08-14py/runtime.h: Move comment about mp_not_implemented to correct place.Damien George
2016-08-14py/objtuple: In tuple_cmp_helper, use mp_check_self instead of raising.Damien George
Only tuple, namedtuple and attrtuple use the tuple_cmp_helper function, and they all have getiter=mp_obj_tuple_getiter, so the check here is only to ensure that the self object is consistent. Hence use mp_check_self.
2016-08-14esp8266/mpconfigport.h: Enable support for all special methods.Paul Sokolovsky
2016-08-12tests: Rename zlibd_decompress.py -> uzlib_decompress.py.Paul Sokolovsky
To use the actual current name.
2016-08-12py: Get rid of assert() in method argument checking functions.Paul Sokolovsky
Checks for number of args removes where guaranteed by function descriptor, self checking is replaced with mp_check_self(). In few cases, exception is raised instead of assert.
2016-08-12py/objdict: Get rid of asserts (remove/replace with mp_check_self()).Paul Sokolovsky
2016-08-12py/runtime.h: Define mp_check_self(pred) helper macro.Paul Sokolovsky
Indended to replace raw asserts in bunch of files. Expands to empty if MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG is defined, otehrwise by default still to assert, though a particular port may define it to something else.