summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* Small WiPy doc fixesjuhasch2016-09-18
|
* unix/modjni: array(): Support creation of object arrays.Paul Sokolovsky2016-09-18
|
* Updated FROZEN_DIR support as per f28efa19713977a61395b19fec1fe501aeee4c0eDave Hylands2016-09-17
|
* py: Move frozen modules rules from esp8266 port for reuse across ports.Paul Sokolovsky2016-09-17
| | | | | A port now just needs to define FROZEN_DIR var and add $(BUILD)/frozen.c to SRC_C to support frozen modules.
* esp8266/Makefile: Rename SCRIPTDIR to FROZEN_DIR for consistency.Paul Sokolovsky2016-09-17
| | | | With FROZEN_MPY_DIR.
* unix/modjni: Add array() top-level function to create Java array.Paul Sokolovsky2016-09-17
| | | | | Takes element primitive type encoded as a char per standard JNI encoding, and array size. TODO: Support object arrays.
* tests/extmod: Add test for machine.time_pulse_us().Damien George2016-09-16
|
* tests/basics: Add errno1 test, to check basics of uerrno module.Damien George2016-09-16
|
* tests/extmod/urandom: Add urandom tests for error cases.Damien George2016-09-16
|
* py/objnone: Remove unnecessary handling of MP_UNARY_OP_BOOL.Damien George2016-09-16
| | | | | | | | | bool(None) has a fast path in mp_obj_is_true so doesn't need to be handled in none_unary_op. The only caveat is that subclassing may bypass the mp_obj_is_true function, but actually you aren't allowed to subclass classes that have singleton instances like NoneType (see https://mail.python.org/pipermail/python-dev/2002-March/020822.html for reference on this point).
* unix/modjni: Implement subscription for object arrays.Paul Sokolovsky2016-09-16
|
* stmhal/boards: Add pllvalues.py script to compute PLL values for sysclk.Damien George2016-09-14
| | | | The algorithm here should mirror that in the machine.freq() function.
* unix: Fix build for when MICROPY_PY_SOCKET=0.Renato Aguiar2016-09-12
|
* travis: Abandon mingw32 in favour of mingw-w64stijn2016-09-10
| | | | | | | | This is actually long overdue: the README in the windows directory has been updated once to indicate mingw32 is abandoned and not ok to use with uPy, but we forgot travis builds were still using it. As a bonus the travis build will succeed again since moduerrno.c now compiles. (see https://github.com/micropython/micropython/pull/2399)
* windows: Enable MICROPY_PY_UERRNOstijn2016-09-10
| | | | This also fixes the test failure for vfs_fat_ramdisk.py
* py/makeqstrdefs.py: Use python 2.6 syntax for set creation.Chris Packham2016-09-09
| | | | | | | | | | | | | | py/makeqstrdefs.py declares that it works with python 2.6 however the syntax used to initialise of a set with values was only added in python 2.7. This leads to build failures when the host system doesn't have python 2.7 or newer. Instead of using the new syntax pass a list of initial values through set() to achieve the same result. This should work for python versions from at least 2.6 onwards. Helped-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Chris Packham <judge.packham@gmail.com>
* tests/pyb: Update exp file for previously updated extint test.Damien George2016-09-09
|
* tests/pyb: Add test for ExtInt when doing swint while disabled.Damien George2016-09-09
|
* stmhal/extint: Force 0 to 1 transition on swint().Krzysztof Blazewicz2016-09-09
| | | | | | | If a user tries to call `swint()` while interrupt is disabled the flag in SWIER is set but the interrupt is not triggered and therefore the SWIER bit is not cleared. When the interrupt is again enabled the next call to `swint()` won't trigger the IRQ because a 0 to 1 transition will not occur.
* stmhal/{accel,lcd}: use GPIO_{set,clear}_pinKrzysztof Blazewicz2016-09-09
| | | | | different HAL versions implement GPIO differently (BSRR vs BSRRH+BSRRL), this way both drivers are portable between different HAL's
* stmhal/lcd: De-assert chip select after completing SPI transmission.Tom Soulanille2016-09-09
| | | | | | | The LCD interface library fails to deassert the chip select of the LCD after an SPI transmission. Consequently using the SPI with other peripherals disturbs the state of the LCD. This patch changes lcd.lcd_out() to deassert CS after each transmission to the LCD.
* py/asmthumb: Flush D-cache, and invalidate I-cache on STM32F7.Antonin ENFRUN2016-09-09
| | | | | | Tested on a STM32F7DISCO at 216MHz. All tests generating code (inlineasm, native, viper) now pass, except pybnative/while.py, but that's because there is no LED(2).
* docs: Bump version to 1.8.4.v1.8.4Damien George2016-09-09
|
* tests/run-tests: Disable thread/stress_recurse.py test on Travis.Damien George2016-09-08
| | | | It has reliability issues (cause unknown at this time).
* stmhal,cc3200,esp8266: Consistently use PWRON_RESET constant.Damien George2016-09-08
| | | | | | machine.POWER_ON is renamed to machine.PWRON_RESET to match other reset-cause constants that all end in _RESET. The cc3200 port keeps a legacy definition of POWER_ON for backwards compatibility.
* docs/reference/isr_rules.rst: Two minor additions to docs for using ISR.Peter Hinch2016-09-07
| | | | | | | | - Refers to the technique of instantiating an object for use in an ISR by specifying it as a default argument. - Footnote detailing the fact that interrupt handlers continue to be executed at the REPL.
* esp8266/modmachine: Map PWR_ON_RESET to vendor's REASON_DEFAULT_RST.Paul Sokolovsky2016-09-07
| | | | | | | When dealing with a board which controls chip reset with UART's DTR/RTS, we never see REASON_DEFAULT_RST (0), only REASON_EXT_SYS_RST (6). However, trying a "raw" module with with just TXD/RXD UART connection, on power up it has REASON_DEFAULT_RST as a reset reason.
* esp8266/modnetwork: Fix wlan.scan() method so it returns all networks.Damien George2016-09-06
| | | | | | | | According to the Arduino ESP8266 implementation the first argument to the wifi scan callback is actually a bss_info pointer. This patch fixes the iteration over this data so the first 2 entries are no longer skipped. Fixes issue #2372.
* docs/library/machine.WDT: Add that WDT is available on pyboard.Damien George2016-09-06
|
* stmhal/modmachine: Implement machine.reset_cause() function, and consts.Damien George2016-09-06
|
* stmhal/wdt: Implement keyword args to WDT constructor.Damien George2016-09-06
|
* esp8266/espneopixel: Disable IRQs during eps.neopixel_write.Torsten Wagner2016-09-06
| | | | | | Interrupts during neopixel_write causes timing problems and therefore wrong light patterns. Switching off IRQs should help to keep the strict timing schedule.
* travis: Build mpy-cross as part of the Travis process.Damien George2016-09-05
| | | | It's built first in case any ports need to use it.
* mpy-cross: Don't use the internal printf functions.Damien George2016-09-05
| | | | | They require mp_hal_stdout_tx_strn_cooked, which requires extra work to add to mpy-cross.
* stmhal/dac: Fix DAC (re-)initialisation by resetting DMA.Peter Hinch2016-09-05
| | | | Fixes issue #2176.
* unix,stmhal,esp8266: When find'ing frozen files follow symbolic links.Damien George2016-09-05
| | | | | It's useful to be able to use symbolic links to add files and directories to the set of scripts to be frozen.
* py: Add MICROPY_USE_INTERNAL_PRINTF option, defaults to enabled.Delio Brignoli2016-09-05
| | | | | | | | This new config option allows to control whether MicroPython uses its own internal printf or not (if not, an external one should be linked in). Accompanying this new option is the inclusion of lib/utils/printf.c in the core list of source files, so that ports no longer need to include it themselves.
* tests/extmod/framebuf1: Add tests for scrolling in the x-direction.Damien George2016-09-05
|
* extmod/framebuf: Add the xstep!=0 case to scroll() method.Radomir Dopieralski2016-09-05
| | | | | | | Adds horizontal scrolling. Right now, I'm just leaving the margins created by the scrolling as they were -- so they will repeat the edge of the framebuf. This is fast, and the user can always fill the margins themselves.
* docs/esp8266/quickref: Further improvements for SPI subsections.Paul Sokolovsky2016-09-04
| | | | Consistency and formatting.
* docs/esp8266/quickref: Update information on SPI classes.Paul Sokolovsky2016-09-04
| | | | SPI(1) is not used for hardware SPI. Few more details are provided.
* esp8266/modmachine: Simplify SPI class implementation multiplexing.Paul Sokolovsky2016-09-04
| | | | | | | | | | | | modpybhspi now does the needed multiplexing, calling out to modpybspi (bitbanging SPI) for suitable peripheral ID's. modmachinespi (previous multiplexer class) thus not needed and removed. modpybhspi also updated to following standard SPI peripheral naming: SPI0 is used for FlashROM and thus not supported so far. SPI1 is available for users, and thus needs to be instantiated as: spi = machine.SPI(1, ...)
* esp8266/modmachine: Don't expose internal SoftSPI and HSPI classes.Paul Sokolovsky2016-09-04
| | | | There functionality is available via standard SPI class.
* esp8266/modmachine: Add WDT_RESET and SOFT_RESET constants.Paul Sokolovsky2016-09-04
| | | | | Both tested to work. (WDT_RESET can be seen by issuing machine.disable_irq() and waiting for WDT reset, SOFT_RESET - by machine.reset()).
* tests/extmod/uzlib_decompio: Add zlib bitstream testcases.Paul Sokolovsky2016-09-04
|
* extmod/moduzlib: Support wbits arg to DecompIO.Paul Sokolovsky2016-09-04
|
* stmhal: Set STM32F7DISC CPU Frequency to 216 MHzDave Hylands2016-09-04
| | | | | | | This set the CPU frequency to 216 MHz (the max) and leaves the USB Frequency at 48 MHz. These settings were copied from one of the HAL examples.
* tests/extmod: Add a test for framebuf module, tested by coverage build.Damien George2016-09-04
|
* extmod/modframebuf: Include font from stmhal directory explicitly.Damien George2016-09-04
| | | | | So that users of framebuf don't need to have stmhal directory in their path. (Eventually the font can be moved elsewhere.)
* py/emitglue.c: provide mp_raw_code_load_file for any unix architectureChris Packham2016-09-04
| | | | Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>