Skip to content
  • Damien George's avatar
    extmod/uos_dupterm: Update uos.dupterm() and helper funcs to have index. · 37282f8f
    Damien George authored
    The uos.dupterm() signature and behaviour is updated to reflect the latest
    enhancements in the docs.  It has minor backwards incompatibility in that
    it no longer accepts zero arguments.
    
    The dupterm_rx helper function is moved from esp8266 to extmod and
    generalised to support multiple dupterm slots.
    
    A port can specify multiple slots by defining the MICROPY_PY_OS_DUPTERM
    config macro to an integer, being the number of slots it wants to have;
    0 means to disable the dupterm feature altogether.
    
    The unix and esp8266 ports are updated to work with the new interface and
    are otherwise unchanged with respect to functionality.
    37282f8f