aboutsummaryrefslogtreecommitdiff
path: root/esp8266/mpconfigport.h
AgeCommit message (Collapse)Author
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
2017-08-21all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros.Damien George
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-07-19esp8266/mpconfigport.h: Make socket a weak linkAlex Robbins
This way it can be overridden by a socket module in Python, as in other ports.
2017-06-23esp8266: Enable MICROPY_ENABLE_FINALISER.Paul Sokolovsky
GC finalization should be enabled for modlwip, or it may lead to GC problems with socket objects. This decreases usable heap size from 36288 to 35968 (-320) bytes.
2017-06-22extmmod/modonewire: Rename public module to mp_module_onewire.Damien George
This follows naming scheme of other modules in extmod.
2017-06-01ports: Convert from using stmhal's input() to core provided version.Damien George
2017-05-26esp8266/mpconfigport.h: Remove duplicate link to lwip module.Damien George
It's already included in the core when MICROPY_PY_LWIP is defined.
2017-04-11extmod/machine_signal: Support all Pin's arguments to the constructor.Paul Sokolovsky
This implements the orginal idea is that Signal is a subclass of Pin, and thus can accept all the same argument as Pin, and additionally, "inverted" param. On the practical side, it allows to avoid many enclosed parenses for a typical declararion, e.g. for Zephyr: Signal(Pin(("GPIO_0", 1))). Of course, passing a Pin to Signal constructor is still supported and is the most generic form (e.g. Unix port will only support such form, as it doesn't have "builtin" Pins), what's introduces here is just practical readability optimization. "value" kwarg is treated as applying to a Signal (i.e. accounts for possible inversion).
2017-04-03esp8266: Remove unused entry in port root pointers.Damien George
2017-04-01all: Move BYTES_PER_WORD definition from ports to py/mpconfig.hDamien George
It can still be overwritten by a port in mpconfigport.h but for almost all cases one can use the provided default.
2017-03-20esp8266: Enable micropython.schedule() with locking in pin callback.Damien George
2017-02-24esp8266/mpconfigport.h: Enable help('modules') feature.Damien George
2017-01-30extmod/vfs_fat: Remove MICROPY_FATFS_OO config option.Damien George
Everyone should now be using the new ooFatFs library. The old one is no longer supported and will be removed.
2017-01-30esp8266/mpconfigport.h: Remove obsolete MICROPY_FATFS_VOLUMES config.Damien George
2017-01-27esp8266: Change to use new generic VFS sub-system.Damien George
The VFS sub-system supports mounting of an arbitrary number of devices (limited only by available RAM). The internal flash is now mounted at "/flash".
2017-01-27esp8266: Switch to use OO version of FatFs library.Damien George
2017-01-22esp8266: Convert to use builtin help function.Damien George
2016-12-23stmhal, esp8266: Enable utimeq module.Paul Sokolovsky
2016-12-15esp8266: Use core-provided keyboard exception object.Damien George
2016-12-09esp8266: Enable inline Xtensa assembler.Damien George
With this patch, @micropython.asm_xtensa can be used on the esp8266 port.
2016-12-09esp8266: Enable native emitter for Xtensa arch.Damien George
This patch allows esp8266 to use @micropython.native and @micropython.viper function decorators. By default the executable machine code is written to the space at the end of the iram1 region. The user can call esp.set_native_code_location() to make the code go to flash instead.
2016-12-08esp8266: Refactor to use extmod implementation of software SPI class.Damien George
2016-12-02esp8266: Enable uselect module.Damien George
Select and poll will now work on socket objects.
2016-11-16py/lexer: Provide generic mp_lexer_new_from_file based on mp_reader.Damien George
If a port defines MICROPY_READER_POSIX or MICROPY_READER_FATFS then lexer.c now provides an implementation of mp_lexer_new_from_file using the mp_reader_new_file function.
2016-11-16py: Factor out persistent-code reader into separate files.Damien George
Implementations of persistent-code reader are provided for POSIX systems and systems using FatFS. Macros to use these are MICROPY_READER_POSIX and MICROPY_READER_FATFS respectively. If an alternative implementation is needed then a port can define the function mp_reader_new_file.
2016-10-19esp8266: Add MP_FASTCODE modifier to put a function to iRAM.Paul Sokolovsky
It can be used in the following manner: void MP_FASTCODE(foo)(int arg) { ... }
2016-10-14extmod/utime_mphal: Factor out implementations in terms of mp_hal_* for reuse.Paul Sokolovsky
As long as a port implement mp_hal_sleep_ms(), mp_hal_ticks_ms(), etc. functions, it can just use standard implementations of utime.sleel_ms(), utime.ticks_ms(), etc. Python-level functions.
2016-10-14esp8266: Enable micropython.alloc_emergency_exception_buf().Damien George
2016-10-12esp8266: Enable importing of precompiled .mpy files.Damien George
2016-10-12esp8266: Enable sys.{stdin,stdout,stderr}.buffer for raw serial access.Damien George
2016-10-11esp8266/mpconfigport: Enable MICROPY_PY_BUILTINS_SLICE_ATTRSRadomir Dopieralski
2016-10-09esp8266: Make neopixel support configurable.Paul Sokolovsky
To save iRAM.
2016-10-06esp8266: Make PY_UHASHLIB_SHA1 config depend on PY_USSL and SSL_AXTLS.Damien George
SHA1 can only be supported if ussl module is compiled in, and it uses axtls.
2016-09-01esp8266/modpybspi: Use generic SPI helper methods to implement SPI.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-14esp8266/mpconfigport.h: Enable support for all special methods.Paul Sokolovsky
2016-08-01esp8266: Make APA102 driver inclusion configurable.Paul Sokolovsky
2016-07-30py/mpconfig.h: Add MICROPY_STREAMS_POSIX_API setting.Paul Sokolovsky
To filter out even prototypes of mp_stream_posix_*() functions, which require POSIX types like ssize_t & off_t, which may be not available in some ports.
2016-07-30esp8266/mpconfigport.h: Include sys/types.h for POSIX types definitions.Paul Sokolovsky
As required for related functions in stream.h.
2016-07-22esp8266: Enable MICROPY_PY_STR_BYTES_CMP_WARN.Paul Sokolovsky
2016-06-29esp8266: Enable frozen bytecode, with scripts in modules/ subdir.Damien George
To start with, the critical scripts _boot.py and flashbdev.py are frozen to improve performance and reduce RAM consumption. Saves about 1000 bytes of heap RAM for a bare boot with filesystem.
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-22esp8266: Enable collections.OrderedDict.Paul Sokolovsky
2016-05-12esp8266: Change to use internal errno's.Damien George
2016-05-10esp8266: Enable uerrno module, weak linked also as errno.Damien George
2016-05-10esp8266: Convert to use new MP_Exxx errno symbols.Damien George
These symbols are still defined in terms of the system Exxx symbols, and can be switched to internal numeric definitions at a later stage. Note that extmod/modlwip still uses many system Exxx symbols.
2016-05-10esp8266/mpconfigport: Reduce various parser-related allocation params.Paul Sokolovsky
This gives noticeable result for parsing simple input (modelled on 32-bit unix port): Before: >>> micropython.mem_total() 3360 >>> micropython.mem_total() 4472 After: >>> micropython.mem_total() 3072 >>> micropython.mem_total() 4052 However, effect on parsing large input is much less conclusive, e.g.: Before: >>> micropython.mem_total() 3376 >>> import pystone_lowmem >>> micropython.mem_total() 33006 delta=29630 After: >>> micropython.mem_total() 3091 >>> import pystone_lowmem >>> micropython.mem_total() 32509 delta=29418
2016-05-02esp8266: Change platform name from ESP8266 to esp8266.Damien George
The port name is lowercase, and this change is made for consistency with the docs and other ports.