summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* docs/library/machine.Pin: Update Pin docs to align with new HW API.Damien George2016-11-09
|
* esp8266/modnetwork.c: Expose configuration for station DHCP hostname.Chris Popp2016-11-09
| | | | | | | The ESP SDK supports configuring the hostname that is reported when doing a DHCP request in station mode. This commit exposes that under network.WLAN(network.STA_IF).config('dhcp_hostname') as a read/write value similar to other parameters.
* zephyr/mphalport.h: Update for new "unified" kernal API (sleep functions).Paul Sokolovsky2016-11-09
|
* unix: Add symlinks for upip to make it frozen into binary.Damien George2016-11-08
|
* py: Strip leading dirs from frozen mpy files, so any path can be used.Damien George2016-11-08
| | | | | | | | With this patch one can now do "make FROZEN_MPY_DIR=../../frozen" to specify a directory containing scripts to be frozen (as well as absolute paths). The compiled .mpy files are now stored in $(BUILD)/frozen_mpy/.
* py: Move frozen bytecode Makefile rules from ports to common mk files.Damien George2016-11-08
| | | | | | Now, to use frozen bytecode all a port needs to do is define FROZEN_MPY_DIR to the directory containing the .py files to freeze, and define MICROPY_MODULE_FROZEN_MPY and MICROPY_QSTR_EXTRA_POOL.
* esp8266: Update docs for esptool 1.2.1/SDK 2.0 (--flash_size=detect).Paul Sokolovsky2016-11-08
|
* docs/*/quickref.rst: Use new semantics of ticks_diff()puuu2016-11-08
|
* esp8266: Include upip as a standard frozen bytecode module.Paul Sokolovsky2016-11-08
| | | | | | Previously, it was included only in release builds, but it's important tool which should be always at the fingertips to be useful (and to pump up its usage).
* tools, unix: Replace upip tarball with just source files.Paul Sokolovsky2016-11-07
| | | | | | | | | | | To make its inclusion as frozen modules in multiple ports less magic. Ports are just expected to symlink 2 files into their scripts/modules subdirs. Unix port updated to use this and in general follow frozen modules setup tested and tried on baremetal ports, where there's "scripts" predefined dir (overridable with FROZEN_DIR make var), and a user just drops Python files there.
* esp8266/espneopixel.c: Solve glitching LED issues with cpu at 80MHz.Olivier Ortigues2016-11-07
| | | | | | | | At the WS2812 driver level, a 400ns value was used for T0H (time high to send a 0 bit) but LED specification says it should be 350ns +- 150ns. Due to loop overhead the 400ns value could lead to T0H close to 500ns which is too close from the limit value and gave glitches (bad data to pixels) in some cases. This patch makes the calculated T0H value 350ns.
* stmhal: enable SD power save (disable CLK on idle)Ryan Shaw2016-11-07
|
* examples/hwapi: Example showing best practices for HW API usage in apps.Paul Sokolovsky2016-11-06
| | | | Showing and providing detailed instructions and motivation.
* docs/esp8266: Update for new WebREPL setup procedure.Paul Sokolovsky2016-11-06
|
* esp8266: Rework webrepl_setup to run over wired REPL.Paul Sokolovsky2016-11-06
|
* tests/vfs_fat_oldproto: Skip for ports not supporting "oldproto".Paul Sokolovsky2016-11-06
| | | | Otherwise this broke esp8266 testsuite.
* esp8266: Rename "machine" module implementation to use contemporary naming.Paul Sokolovsky2016-11-06
| | | | | | | Previously they used historical "pyb" affix causing confusion and inconsistency (there's no "pyb" module in modern ports; but people took esp8266 port as an example, and "pyb" naming kept proliferating, while other people complained that source structure is not clear).
* zephyr/Makefile: Add -fomit-frame-pointer.Paul Sokolovsky2016-11-05
| | | | | Somehow, Zephyr uses -fno-omit-frame-pointer, whch bloats code size considerably (+5K for minimal ARM Thumb2 build).
* zephyr/Makefile: Add minimal port.Paul Sokolovsky2016-11-05
|
* zephyr/Makefile: Allow to override Zephyr config from make command line.Paul Sokolovsky2016-11-04
|
* zephyr/Makefile: Update comments to the current state of affairs.Paul Sokolovsky2016-11-04
|
* zephyr/Makefile: Allow to adjust heap size from make command line.Paul Sokolovsky2016-11-04
|
* zephyr/mpconfigport.h: Move less important params to the bottom.Paul Sokolovsky2016-11-04
|
* extmod/utime_mphal: ticks_diff/ticks_add: Don't hardcode 32-bit types.Paul Sokolovsky2016-11-03
| | | | | Use normal mp_int_t/mp_uint_t types, algorithms (hm, formulas) can work with any type width.
* windows: Implement mp_hal_ticks_cpu in terms of QueryPerformanceCounterstijn2016-11-03
|
* windows: Fix utime_mphal compilation for msvcstijn2016-11-03
|
* drivers: Add "from micropython import const" when const is used.Damien George2016-11-03
| | | | | Following best-practice use of the const feature, to make it compatible with Python.
* py: Add MICROPY_FLOAT_CONST macro for defining float constants.Damien George2016-11-03
| | | | | | All float constants in the core should use this macro to prevent unnecessary creation of double-precision floats, which makes code less efficient.
* qemu-arm: Enable software floating point support, and float tests.Damien George2016-11-03
| | | | | | | | | This helps to test floating point code on Cortex-M hardware. As part of this patch the link-time-optimisation was disabled because it wasn't compatible with software FP support. In particular, the linker could not find the __aeabi_f2d, __aeabi_d2f etc functions even though they were provided by lib/libm/math.c.
* lib/libm: Move Thumb-specific sqrtf function to separate file.Damien George2016-11-03
| | | | | This allows it to be used only when the hardware supports VFP instructions, preventing compile errors.
* py: Change config default so m_malloc0 uses memset if GC not enabled.Colin Hogben2016-11-03
| | | | | With MICROPY_ENABLE_GC set to false the alternate memory manager may not clear all memory that is allocated, so it must be cleared in m_malloc0.
* tests/extmod/framebuf1: Test framebuffer pixel clear, and text function.Alex March2016-11-03
|
* py: Fix wrong assumption that m_renew will not move if shrinkingColin Hogben2016-11-02
| | | | | | | | | | | | | | | | In both parse.c and qstr.c, an internal chunking allocator tidies up by calling m_renew to shrink an allocated chunk to the size used, and assumes that the chunk will not move. However, when MICROPY_ENABLE_GC is false, m_renew calls the system realloc, which does not guarantee this behaviour. Environments where realloc may return a different pointer include: (1) mbed-os with MBED_HEAP_STATS_ENABLED (which adds a wrapper around malloc & friends; this is where I was hit by the bug); (2) valgrind on linux (how I diagnosed it). The fix is to call m_renew_maybe with allow_move=false.
* esp8266/modules: Fix negative temperature in ds18x20 driver.ernitron2016-11-02
|
* extmod/utime_mphal: ticks_diff(): Optimize to avoid if conditions.Paul Sokolovsky2016-11-02
|
* esp8266/etshal.h: Adjust size of MD5_CTX structure.Paul Sokolovsky2016-11-02
| | | | | | Size 64 was incorrect and will lead to stack corruption. Size 88 was verified empirically. Also, allow to skip defining it if MD5_CTX preprocessor macro is already defined (to avoid header conflict).
* esp8266/etshal.h: Add prototypes for SPIRead/SPIWrite/SPIEraseSector.Paul Sokolovsky2016-11-02
|
* unix: fix symbol references for x86 MacJan Pochyla2016-11-02
|
* esp8266/main: Bump heap size to 36K.Paul Sokolovsky2016-11-02
| | | | | | | ESP8266 SDK2.0 fixes (at least, I can't reproduce it) an infamous bug with crash during scan. 36K seams to be a safe value based on a download test (test_dl.py), over 1GB was downloaded. More testing is needed, but let's have other people participate by committing it now.
* esp8266/modnetwork.c: Allows AP reconnection without WiFi credentialspuuu2016-11-01
| | | | | | | | | There is no automatic reconnect after wlan.active(False); wlan.active(True). This commit provide the possibility to run wlan.connect() without parameter, to reconnect to the previously connected AP. resolve #2493
* esp8266/scripts/port_diag: Add descriptions for esf_buf types.Paul Sokolovsky2016-11-01
|
* docs/utime: Add docs for ticks_add(), improvements for other ticks_*().Paul Sokolovsky2016-11-01
|
* docs/utime: Remove only:: for ticks_diff().Paul Sokolovsky2016-11-01
| | | | | | It's mandatory function which should be present in every port. Even if it's not, in the stdlib intro we waarn users that a particular port can lack anything of described in the docs.
* py: remove asserts that are always true in emitbc.cPavol Rusnak2016-10-31
|
* py: fix null pointer dereference in mpz.c, fix missing va_end in warning.cPavol Rusnak2016-10-31
|
* esp8266/modnetwork: config(): Fix copy-paste error in setting "mac".Paul Sokolovsky2016-10-31
|
* docs/utime: Describe new semantics of ticks_diff() (signed ring arithmetics).Paul Sokolovsky2016-10-31
|
* docs/utime: Document ticks_cpu() in more detail.Paul Sokolovsky2016-10-30
| | | | Also, drop ::only directive.
* docs/library/index: Update TOCs so builtins sorted before modules.Paul Sokolovsky2016-10-30
|
* tools/tinytest-codegen: Exclude ticks_diff test for qemu-arm port.Paul Sokolovsky2016-10-30
|