aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-20nrf/readme: Update make flash command when defining board.Stig Bjørlykke
Update the "make flash" command sample to include BOARD parameter when building for a specific target board.
2019-02-20nrf/bluetooth: Resolve compilation warning in ble_drv.c.Glenn Ruben Bakke
This patch makes sure that the char_data.props is first assigned a value before other flags are OR'd in. Resolves compilation warning on possible unitialized variable.
2019-02-20nrf/bluetooth: Improve advertisment behavior for nrf52 targets.Glenn Ruben Bakke
This patch makes sure that advertisment data is located in persistent static RAM memory throughout the advertisment. Also, setting m_adv_handle to predifined BLE_GAP_ADV_SET_HANDLE_NOT_SET value to indicate first time usage of the handle. Upon first advertisment configuration this will be populated with a handle value returned by the stack (s132/s140).
2019-02-20nrf/readme: Update link to nrfjprog download.Glenn Ruben Bakke
After new layout of nordicsemi.com the direct links to command line tools (nrfjprog) has changed to become dynamic. This patch removes the old direct links to each specific OS variant and is replaced with one single link to the download landing page instead.
2019-02-20stm32/sdram: Increase GPIO speed for SDRAM interface to "very high".Andrew Leech
Currently all usages of mp_hal_pin_config_alt_static() set the pin speed to "high" (50Mhz). The SDRAM interface typically runs much faster than this so should be set to the maximum pin speed. This commit adds mp_hal_pin_config_alt_static_speed() which allows setting the pin speed along with the other alternate function details.
2019-02-20py/objfun: Make fun_data arg of mp_obj_new_fun_asm() a const pointer.Damien George
2019-02-20py/obj.h: Remove obsolete mp_obj_new_fun_viper() declaration.Damien George
2019-02-19py/qstr: Evaluate find_qstr only once then pass to Q_GET_HASH macro.Damien George
Q_GET_HASH may evaluate its argument more than once.
2019-02-19stm32/stm32_it: Fix RTC IRQ handler to handle all EXTI IRQs on F0 MCUs.Dave Hylands
2019-02-19stm32/extint: Remove unused (and incorrect) EXTI defines.Dave Hylands
2019-02-19stm32/extint: Add non-GPIO EXTI IRQ sources for F0.Dave Hylands
2019-02-19stm32/make-stmconst.py: Improve regex to parse more constants.Dave Hylands
A few RTC constants weren't being parsed properly due to whitespace differences, and this patch makes certain whitespace optional. Changes made: - allow for no space between /*!< and EXTI, eg for: __IO uint32_t IMR; /*!<EXTI Interrupt mask register, Address offset: 0x00 */ - allow for no space between semicolon and start of comment, eg for: __IO uint32_t ALRMASSR;/*!< RTC alarm A sub second register, Address offset: 0x44 */
2019-02-19stm32/extint: Fix RTC Alarm/FS USB EXTI constants for L4.Dave Hylands
2019-02-19stm32/extint: Fix ExtInt to work with non-GPIO pins.Dave Hylands
2019-02-18esp32/modsocket: Change socket.socket to be socket type rather than fun.Damien George
To make all ports consistent. Addresses issue #4514.
2019-02-18extmod/modlwip: Fix bug when polling listening socket with backlog=1.Damien George
The bug polling for readability was: if alloc==0 and tcp.item==NULL then the code would incorrectly check tcp.array[iget] which is an invalid dereference when alloc==0. This patch refactors the code to use a helper function lwip_socket_incoming_array() to return the correct pointer for the incomming connection array. Fixes issue #4511.
2019-02-18stm32/boards/stm32f429.ld: Increase uPy heap size by 64k for F429 MCU.Damien George
The F429 has 256k total RAM, with 64k already set aside for flash write cache, so the uPy heap can be increased this much.
2019-02-18esp32/modsocket: Fix usocket.send to accept anything with buffer proto.Damien George
2019-02-15extmod/modlwip: Change #ifdef to #if for check of MICROPY_PY_LWIP.Damien George
Otherwise this code will be included if MICROPY_PY_LWIP is defined to 0.
2019-02-15stm32/mboot: Add hook to run board-specific code early on startup.Damien George
2019-02-15stm32/modmachine: Add ability to pass through user data to mboot.Damien George
2019-02-15stm32/mboot: Add support script which can program mboot and application.Damien George
2019-02-15stm32/mboot: Move some BSS vars to new section that isn't zeroed out.Damien George
Zeroing out data on startup takes time and is not necessary for certain variables. So provide a declaration for such variables and use it.
2019-02-15stm32/mboot: Add support for loading gzip'd firmware from a filesystem.Damien George
This adds support to mboot to load and program application firmware from a .dfu.gz file on the board's filesystem. See mboot/README.md for details.
2019-02-14stm32/qspi: Use static af functions for pin configuration.Andrew Leech
This allows qspi pin configuration to work on any supported platform.
2019-02-14stm32/mboot/mphalport.h: Include genhdr/pins.h for access to pin names.Damien George
So that mboot configuration can use names like pyb_pin_X1.
2019-02-14stm32/mboot/Makefile: Generate all pin header files from board pins.csv.Damien George
2019-02-14stm32/boards/make-pins.py: Add cmdline options to support use by mboot.Damien George
2019-02-14extmod/moduwebsocket: Refactor `websocket` to `uwebsocket`.Yonatan Goldschmidt
As mentioned in #4450, `websocket` was experimental with a single intended user, `webrepl`. Therefore, we'll make this change without a weak link `websocket` -> `uwebsocket`.
2019-02-14stm32/boards/NUCLEO_L476RG: Add support for RNG, DAC and CAN1.Jolatomme
PLLQ is changed to get CAN working, and I2C1 pins are changed to those prescribed by the board.
2019-02-14stm32/mboot/Makefile: Support specifying BOARD_DIR for custom board.Damien George
2019-02-12unix/modmachine: Handle repeated /dev/mem open errors.Yonatan Goldschmidt
If opening of /dev/mem has failed an `OSError` is appropriately raised, but the next time `mem8/16/32` is accessed the invalid file descriptor is used and the program gets a SIGSEGV.
2019-02-12all: Change PYB message prefix to MPY.Mike Causer
Replaces "PYB: soft reboot" with "MPY: soft reboot", etc. Having a consistent prefix across ports reduces the difference between ports, which is a general goal. And this change won't break pyboard.py because that tool only looks for "soft reboot".
2019-02-12teensy/Makefile: Use common gchelper_m3.s code from lib/utils.Damien George
2019-02-12py/mkenv.mk: Change default PYTHON variable from "python" to "python3".Damien George
This change makes it so that python3 is required by default to build MicroPython. Python 2 can be used by specifying make PYTHON=python2. This comes about due to a recent-ish change to PEP 394 that makes the python command more optional than before (even with Python 2 installed); see https://github.com/python/peps/commit/cd59ec03c8ff1e75089d5872520cd0706774b35b#diff-1d22f7bd72cbc900670f058b1107d426 Since the command python is no longer required to be provided by a distribution we need to use either python2 or python3 as commands. And python3 seems the obvious choice.
2019-02-12ports: Convert legacy uppercase macro names to lowercase.Damien George
2019-02-12extmod: Convert legacy uppercase macro names to lowercase.Damien George
2019-02-12py: Downcase MP_xxx_SLOT_IS_FILLED inline functions.Damien George
2019-02-12py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API.Damien George
These macros could in principle be (inline) functions so it makes sense to have them lower case, to match the other C API functions. The remaining macros that are upper case are: - MP_OBJ_TO_PTR, MP_OBJ_FROM_PTR - MP_OBJ_NEW_SMALL_INT, MP_OBJ_SMALL_INT_VALUE - MP_OBJ_NEW_QSTR, MP_OBJ_QSTR_VALUE - MP_OBJ_FUN_MAKE_SIG - MP_DECLARE_CONST_xxx - MP_DEFINE_CONST_xxx These must remain macros because they are used when defining const data (at least, MP_OBJ_NEW_SMALL_INT is so it makes sense to have MP_OBJ_SMALL_INT_VALUE also a macro). For those macros that have been made lower case, compatibility macros are provided for the old names so that users do not need to change their code immediately.
2019-02-12stm32/pendsv: Fix inline asm constant and prefix with # character.Damien George
2019-02-12qemu-arm: Use gchelper code to get registers for GC scanning.Damien George
2019-02-12cc3200: Use common gchelper_m3.s code from lib/utils.Damien George
2019-02-12stm32/gccollect: Use gchelper.h header instead of explicit declaration.Damien George
2019-02-12lib/utils/gchelper: Add gchelper.h header file for assembler functions.Damien George
2019-02-12lib/utils/gchelper_m3: Add gc_helper_get_sp() function.Damien George
2019-02-12lib/utils/gchelper_m3: Add license header and clean up code.Damien George
This file generates the same code with the cortex-m3 and cortex-m4 assembler directive, so use cortex-m3 to support more CPUs.
2019-02-12stm32: Move gchelper assembler code to lib/utils for use by other ports.Damien George
2019-02-12qemu-arm: Rework to run bare-metal on boards with Cortex-M CPUs.Damien George
Adds support for 3 Cortex-M boards, selectable via "BOARD" in the Makefile: - microbit, Cortex-M0 via nRF51822 - netduino2, Cortex-M3 via STM32F205 - mps2-an385, Cortex-M3 via FPGA netduino2 is the default board because it's supported by older qemu versions (down to at least 2.5.0).
2019-02-12travis: Update to use Ubuntu 16.04 Xenial for CI builds.Damien George
2019-02-08docs/ure: Fix match.group signature to indicate index param is required.Yonatan Goldschmidt