Permalink
Branch: nrf24l01
Commits on Dec 19, 2016
  1. py/compile: Add an extra pass for Xtensa inline assembler.

    dpgeorge committed Dec 19, 2016
    It needs an extra pass to compute the size of the constant table for the
    l32r instructions.
Commits on Dec 18, 2016
  1. zephyr: Enable slice subscription.

    pfalcon committed Dec 18, 2016
    Required for the testsuite.
Commits on Dec 16, 2016
  1. zephyr/uart_core: Access console UART directly instead of printk() hack.

    pfalcon committed Dec 16, 2016
    This is required to avoid extra level of output "cooking" ("\r\r\n") and
    make test infrastructure work. On the other hand, this breaks somewhat
    Zephyr console abstraction.
Commits on Dec 15, 2016
  1. lib/utils/interrupt_char: Use core-provided mp_kbd_exception if enabled.

    dpgeorge committed Dec 15, 2016
    Ultimately all ports that use lib/utils/interrupt_char would enable
    MICROPY_KBD_EXCEPTION, so this is an interim solution.
  2. py: Add MICROPY_KBD_EXCEPTION config option to provide mp_kbd_exception.

    dpgeorge committed Dec 15, 2016
    Defining and initialising mp_kbd_exception is boiler-plate code and so the
    core runtime can provide it, instead of each port needing to do it
    themselves.
    
    The exception object is placed in the VM state rather than on the heap.
  3. stmhal/usb: Always use the mp_kbd_exception object for VCP interrupt.

    dpgeorge committed Dec 15, 2016
    There's no need to store a separate pointer to this object.
  4. stmhal: Rename mp_const_vcp_interrupt to mp_kbd_exception.

    dpgeorge committed Dec 15, 2016
    mp_kbd_exception is now considered the standard variable name to hold the
    singleton KeyboardInterrupt exception.
    
    This patch also moves the creation of this object from pyb_usb_init() to
    main().
  5. tools/pyboard.py: Refactor so target is not reset between scripts/cmd.

    dpgeorge committed Dec 15, 2016
    Previous to this patch pyboard.py would open a new serial connection to
    the target for each script that was run, and for any command that was run.
    Apart from being inefficient, this meant that the board was soft-reset
    between scripts/commands, which precludes scripts from accessing variables
    set in a previous one.
    
    This patch changes the behaviour of pyboard.py so that the connection to
    the target is created only once, and it's not reset between scripts or any
    command that is sent with the -c option.
  6. tests/micropython: Get heapalloc_traceback test running on baremetal.

    dpgeorge committed Dec 15, 2016
    When printing exceptions from files sent to a target by pyboard.py the
    filename in the exception is <stdin>, which differs to when running the
    script on the PC.  So we strip out the filename to make the outputs the
    same on all targets (see also misc/print_exception.py test).
Commits on Dec 14, 2016
  1. zephyr: Support raw REPL.

    pfalcon committed Dec 14, 2016
  2. py/mpconfig.h: Enable MICROPY_PY_SYS_EXIT by default.

    pfalcon committed Dec 14, 2016
    sys.exit() is an important function to terminate a program. In particular,
    the testsuite relies on it to skip tests (i.e. any other functionality may
    be disabled, but sys.exit() is required to at least report that properly).
  3. esp8266: Add "ota" target to produce firmware binary for use with yao…

    pfalcon committed Dec 14, 2016
    …ta8266.
    
    https://github.com/pfalcon/yaota8266 is a (WIP) OTA-enabled bootloader
    which doesn't require reserving space 2x size of a firmware.
  4. py/runtime: Zero out fs_user_mount array in mp_init.

    dpgeorge committed Dec 14, 2016
    There's no need to force ports to copy-and-paste this initialisation
    code.  If FSUSERMOUNT is enabled then this zeroing out must be done.
Commits on Dec 13, 2016
  1. stmhal: Move PY_SYS_PLATFORM config from board to general config file.

    dpgeorge committed Dec 13, 2016
    It can be overridden by a board if needed.
  2. stmhal: Add STM32F769DISC board files.

    flowergrass authored and dpgeorge committed Dec 12, 2016
    With minor changes to adc.c and storage.c to support the F769.
  3. py/builtinimport: Support importing packages from compiled .mpy files.

    dpgeorge committed Dec 13, 2016
    This patch ensures that __init__.mpy files are imported if their
    containing directory is imported as a package.
Commits on Dec 12, 2016
Commits on Dec 9, 2016
  1. py/objint: from_bytes, to_bytes: Require byteorder arg, require "litt…

    pfalcon committed Dec 9, 2016
    …le".
    
    CPython requires byteorder arg, make uPy compatible. As we support only
    "little", error out on anything else.