aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-01esp8266/quickref: Use local image of Adafruit Huzzah board.Paul Sokolovsky
Using remote image causes problems with tools (partly because the image is semi-firewalled and can't be accessed by arbitrary tools).
2016-06-01docs: math, cmath: Add port availability information.Paul Sokolovsky
2016-06-01docs/math: Typo fix.Paul Sokolovsky
2016-06-01esp8266: Provide a dedicated variable to disable ets_loop_iter.Damien George
So ets_loop_iter is now only disabled when using machine.disable_irq.
2016-06-01esp8266/rtc: Set RTC user memory length to 0 on first boot.Damien George
So that RTC.memory() returns b'' on power up if it was never set. Fixes issue #2138.
2016-05-31esp8266/moduos.c: Add stat() to the module uos of esp8266.Robert HH
This implementation makes use of vfs.stat() and therefore has the same properties. Known issues for all ports: uos.stat(".") on the top level returns the error code 22, EINVAL. The same happens with uos.stat("dirname/") where dirname IS the name of a directory.
2016-05-31esp8266: Enable MICROPY_PY_IO_FILEIO to get compliant text/binary streams.Paul Sokolovsky
2016-05-31extmod/machine: Add MICROPY_PY_MACHINE_PULSE config for time_pulse_us.Damien George
Since not all ports that enable the machine module have the pin HAL functions.
2016-05-31esp8266/modmachine: Add machine.time_pulse_us function.Damien George
2016-05-31docs/library/machine: Add documentation for machine.time_pulse_us.Damien George
2016-05-31extmod: Add machine time_pulse_us function (at C and Python level).Damien George
The C implementation is taken from the DHT driver.
2016-05-31extmod/vfs_fat: Mark anused "self" arg for fat_vfs_stat().Paul Sokolovsky
2016-05-31stmhal/dac: DAC deinit() method added.Peter Hinch
2016-05-31extmod/vfs_fat.c: Add vfs.stat().Robert HH
The call to stat() returns a 10 element tuple consistent to the os.stat() call. At the moment, the only relevant information returned are file type and file size.
2016-05-30docs/esp8266/general: Remove duplicate phrase.Tomas R
2016-05-30esp8266/scripts/ntptime: Allow to override NTP server.Paul Sokolovsky
This is not part of public API, variable name may change, or it can be replaced with a function.
2016-05-29extmod/vfs_fat: getcwd(): Use mp_obj_new_exception_arg1().Paul Sokolovsky
Copy-paste issue, with the original mistake in stmhal.
2016-05-29stmhal/moduos: getcwd(): Use mp_obj_new_exception_arg1().Paul Sokolovsky
Argument types were converted, but old function call of mp_obj_new_exception_msg_varg() remained.
2016-05-29esp8266/moduos: Add chdir() and getcwd() functions.Paul Sokolovsky
2016-05-29tests/extmod/vfs_fat_ramdisk: Add testcases for chdir(), getcwd().Paul Sokolovsky
2016-05-29extmod/vfs_fat: chdir(), getcwd() methods should accept VFS object (self).Paul Sokolovsky
2016-05-29extmod/vfs_fat: Add getcwd() method.Paul Sokolovsky
Ported from stmhal.
2016-05-29extmod/vfs_fat: Add chdir() method.Paul Sokolovsky
Ported from stmhal.
2016-05-29esp8266/uart: Properly initialise UART0 RXD pin in uart_config.Damien George
Tested and seems to work. See #1995.
2016-05-29esp8266/modnetwork: Allow to press ctrl-C while scan() is running.Damien George
Ctrl-C will raise a KeyboardInterrupt and stop the scan (although it will continue to run in the background, it won't report anything). If interrupted, and another scan() is started before the old one completes in the background, then the second scan will fail with an OSError.
2016-05-29esp8266/modnetwork: Protect scan() callback against memory errors.Damien George
scan() allocates memory so may cause an exception to be raised.
2016-05-29esp8266/modnetwork: scan() is only supported by STA when it's enabled.Damien George
2016-05-28py/modstruct: Allow to have "0s" in struct format.Damien George
2016-05-28README: "quick build": Use "make axtls" after all.Paul Sokolovsky
"make deplibs" also builds libffi, and that requires GNU autotools. As we use host libffi by default, skip requiring users to build it for now.
2016-05-28unix/Makefile: "make axtls": Automatically fetch submodules if missing.Paul Sokolovsky
Try to emulate "you can build without reading instructions" behavior as far as possible.
2016-05-28README: Add "make deplibs" to quick build section.Paul Sokolovsky
2016-05-28unix/mpconfigport.mk: Document MICROPY_STANDALONE make-level option.Paul Sokolovsky
Avoid using system libraries, use copies bundled with MicroPython as submodules (currently affects only libffi, other dependencies either already used as bundled-only (axtls), or can't be bundled (so far), like libjni).
2016-05-28tools: Upgrade upip to 0.7.Paul Sokolovsky
SSL certificate warning, switch to uerrno, and better usage message.
2016-05-28py/moduerrno: Add ECONNREFUSED, one of frequent networking errors.Paul Sokolovsky
2016-05-27extmod/vfs_fat*: Replace text error messages by POSIX error numbers.Robert HH
These changes are in line with similar changes in other modules, and with standard Python interface.
2016-05-27extmod/virtpin: Initial implementation of open-ended C-level Pin interface.Paul Sokolovsky
Using usual method of virtual method tables. Single virtual method, ioctl, is defined currently for all operations. This universal and extensible vtable-based method is also defined as a default MPHAL GPIO implementation, but a specific port may override it with its own implementation (e.g. close-ended, but very efficient, e.g. avoiding virtual method dispatch).
2016-05-27esp8266/Makefile: Document "disable" value for UART_OS.Paul Sokolovsky
2016-05-26esp8266: Add dht.py script for high-level control of DHT11/DHT22 sensor.Damien George
TODO: should go in a more port-neutral place, like drivers/dht, but at the moment in relies on specific esp module.
2016-05-26esp8266: Enable DHT C-level driver.Damien George
Exposed as esp.dht_readinto. Probably should go somewhere less port-specific.
2016-05-26drivers: Add C-level function to read DHT11 and DHT22 devices.Damien George
Uses mp_hal_pin API.
2016-05-26extmod/machine_i2c: Redo mp_hal_pin macros to use open_drain and od_low.Damien George
mp_hal_pin_config_od is renamed mp_hal_pin_open_drain, and mp_hal_pin_low is mp_hal_pin_od_low.
2016-05-26docs/machine: Make disable_irq and enable_irq docs available for all.Damien George
2016-05-26esp8266/modmachine: Add disable_irq and enable_irq functions.Damien George
2016-05-26esp8266/ets_alt_task: Don't run ets_loop_iter if irqs are disabled.Damien George
ets_loop_iter processes pending tasks, and tasks are considered lower priority than interrupts, so tasks shouldn't be processed if interrupts are disabled.
2016-05-26esp8266/xtirq: Add xtirq.h for controlling xtensa irqs.Damien George
2016-05-26esp8266/modpybspi: Configure pins when initialising an SPI object.Damien George
2016-05-26esp8266: Add mp_hal_pin_input() and mp_hal_pin_output() functions.Damien George
2016-05-26.travis.yml: Install gcc-arm-none-eabi with --force-yes for now.Paul Sokolovsky
There appears to be issue signature problem with the PPA package we use, so workaround it this way for now. Warning: with broken signature, there's always a possibility that PPA was hacked and ships trojaned binaries.
2016-05-26unix: Enable "ussl" module.Paul Sokolovsky
ussl was in testing mode for 8 months, and now enabled in other ports (e.g. esp8266), so time for unix port to catch up.
2016-05-26extmod/modussl: Coverage build fixes.Paul Sokolovsky