Glenn Ruben Bakke
1e5e3e3d48
nrf/bluetooth: Deprecate use of SoftDevice s132 v6.0.0.
...
Removing linker script for nrf52832 s132 v6.0.0 as all target
boards now points to the new v6.1.1. Also, removing the entry
from the download_ble_stack.sh script.
2019-03-15 20:50:15 +01:00
Glenn Ruben Bakke
5f26ef1112
nrf/board: Migrate all nrf52832 targets to new BLE stack.
...
This patch moves all the nrf52832 target boards to use the
new SoftDevice s132 v6.1.1 instead of the legacy v6.0.0.
2019-03-15 20:50:15 +01:00
Nguyen Hoan Hoang
e8ed2dea71
nrf/bluetooth: Add support for SoftDevice s132 version 6.1.1.
...
Updating download script to fetch the new SoftDevice, and
adding corresponding linker script for the BLE stack.
2019-03-15 20:50:15 +01:00
roland van straten
c9eb7eb449
stm32/stm32_it: Guard UART7_IRQHandler with check for UART7 define.
...
All STM32 with a UART7 also have a UART8 and vice versa, but this change
improves readability and allows for them to be independent in the future.
2019-03-14 14:02:21 +11:00
Damien George
c7d19dc0ad
ports/{stm32,esp8266}: Set mpy-cross native arch for frozen native code.
2019-03-14 12:22:49 +11:00
Damien George
ddc934631c
esp32/machine_pin: Add new PULL_HOLD pin pull mode.
2019-03-14 07:28:57 +11:00
Damien George
349b54525e
esp32/machine_pin: Make it so None as pull value disables pull up/down.
...
Previously specifying None as the pull value would leave the pull up/down
state unchanged. This change makes it so -1 leaves the state unchanged and
None makes the pin float, as per the docs.
2019-03-14 07:26:59 +11:00
Wolf Vollprecht
ea2fcdd338
javascript: Fix Emscripten async load, and to compile with modern clang.
2019-03-13 23:52:15 +11:00
Rami Ali
7d675f3a17
javascript: Add new port targeting JavaScript via Emscripten.
...
In this port JavaScript is the underlying "machine" and MicroPython is
transmuted into JavaScript by Emscripten. MicroPython can then run under
Node.js or in the browser.
2019-03-13 23:47:32 +11:00
Maureen Helm
493ee7df18
zephyr/prj_frdm_kw41z.conf: Add new board configuration.
...
Adds a new board configuration for the frdm_kw41z board, including support
for the fxos8700 accelerometer/magnetometer/die temperature sensor.
2019-03-12 17:12:13 +11:00
Maureen Helm
7748375b6e
zephyr/prj_frdm_k64f.conf: Add fxos8700 sensor.
...
Adds the fxos8700 accelerometer/magnetometer/die temperature sensor to the
frdm_k64f board configuration.
2019-03-12 17:12:00 +11:00
Paul Sokolovsky
6d82499a48
zephyr/Makefile: Proxy ram_report, rom_report targets from Zephyr.
2019-03-12 17:11:52 +11:00
Paul Sokolovsky
755b0b807b
zephyr/prj_minimal.conf: Switch to CONFIG_STDOUT_CONSOLE.
...
Prompted by code size analysis, after arduino_101 build overflowing ROM.
2019-03-12 17:11:46 +11:00
Paul Sokolovsky
21fc0c448e
zephyr/modzsensor: Rename "TEMP" sensor channel to "DIE_TEMP".
...
I.e. on-die temperature sensor. Upstream made more fine-grained channels
for different kinds of temperature.
2019-03-12 17:11:30 +11:00
Paul Sokolovsky
a42c1d9fd5
zephyr/modzephyr: Revamp stacks_analyze() call.
...
Underlying k_call_stacks_analyze() was gone in Zephyr, reimplement using
k_thread_foreach().
2019-03-12 17:11:09 +11:00
Damien George
297092a76a
esp32/mphalport: Use ets_delay_us for mp_hal_delay_us_fast.
...
The system provided one is in ROM and is more accurate.
2019-03-12 15:46:44 +11:00
Damien George
fcace26d87
esp32/Makefile: Add some missing IDF source files to bootloader and app.
...
Functions in these files may be needed when certain features are enabled
(eg dual core mode), even if the linker does not give a warning or error
about unresolved symbols.
2019-03-11 23:17:09 +11:00
Petr Kracík
41e7ad647e
esp32/modnetwork: Remove redundant esp_log include.
2019-03-08 23:36:07 +11:00
Petr Kracík
73c48b1b45
esp32/modnetwork: Implement RSSI for WiFi STA via WLAN.status('rssi').
2019-03-08 23:35:28 +11:00
Andrew Leech
5688c9ba09
stm32/usb: Allow to override USB strings & VID/PID in app and mboot.
...
The override #define's should go in the board's mpconfigboard.h file.
2019-03-08 23:29:15 +11:00
Andrew Leech
0c60cb1fc4
stm32/qspi: Set pin speed to very-high and allow to config some options.
...
The default speed of the QSPI interface is 72Mhz whereas the standard AF
pin speed (high) is only rated to 50Mhz, so increase speed to very-high.
2019-03-08 23:17:50 +11:00
Andrew Leech
89ff506513
py: Update and rework build system for including external C modules.
...
How to use this feature is documented in docs/develop/cmodules.rst.
2019-03-08 22:58:42 +11:00
Andrew Leech
cf22f4793c
py: Allow registration of modules at their definition.
...
During make, makemoduledefs.py parses the current builds c files for
MP_REGISTER_MODULE(module_name, obj_module, enabled_define)
These are used to generate a header with the required entries for
"mp_rom_map_elem_t mp_builtin_module_table[]" in py/objmodule.c
2019-03-08 22:46:43 +11:00
Damien George
e4ac104b7f
stm32: Allow to build with threading with the GIL disabled.
2019-03-08 22:29:54 +11:00
Damien George
c6a9bb23cd
unix/Makefile: Update coverage tests to match those in Travis.
2019-03-08 16:51:09 +11:00
Damien George
7852b287df
minimal/frozentest: Recompile now that mpy format and version changed.
2019-03-08 15:53:05 +11:00
Jim Mussared
f2ebee9cf1
stm32/mboot: Update to match latest oofatfs version.
...
See corresponding commit b5f33ac2cb
2019-03-07 15:22:16 +11:00
Damien George
62483bb957
minimal/frozentest: Recompile now that mpy format changed.
2019-03-05 16:32:05 +11:00
Damien George
b5f33ac2cb
ports: Update to work with new oofatfs version.
2019-03-05 15:56:39 +11:00
Francisco J. Manno
f938e70c69
stm32: Add compile-time option to use HSI as clock source.
...
To use HSI instead of HSE define MICROPY_HW_CLK_USE_HSI as 1 in the board
configuration file. The default is to use HSE.
HSI has been made the default for the NUCLEO_F401RE board to serve as an
example, and because early revisions of this board need a hardware
modification to get HSE working.
2019-03-05 15:49:08 +11:00
Damien George
e61862d063
stm32/boards: Update to use new build config for lwip component.
2019-03-04 23:34:03 +11:00
Damien George
78fe979d7d
stm32: Use global lwip build config and support building without lwip.
2019-03-04 23:33:02 +11:00
Damien George
84479569de
stm32/boards/STM32F769DISC: Use external QSPI flash to store some code.
...
This demonstrates how to use external QSPI flash in XIP (execute in place)
mode. The default configuration has all extmod/ code placed into external
QSPI flash, but other code can easily be put there by modifying the custom
f769_qspi.ld script.
2019-03-04 22:40:15 +11:00
Damien George
c8bbf2c170
stm32/Makefile: Allow a board to specify its linker sections for FW.
...
A board can now use the make variables TEXT0_SECTIONS and TEXT1_SECTIONS to
specify the linker sections that should go in its firmware. Defaults are
provided which give the existing behaviour.
2019-03-04 22:26:55 +11:00
Damien George
f8f2724297
stm32/qspi: Enable sample shift and disable timeout counter.
...
This makes the QSPI more robust, in particular the timeout counter should
not be used with memory mapped mode (see F7 errata).
2019-03-01 16:15:14 +11:00
Damien George
47e551ba59
cc3200/mpconfigport.h: Disable compiler optimisation of OrderedDict.
...
This port would rather keep the code size as RAM.
2019-03-01 15:24:29 +11:00
Damien George
8ce22662fe
esp8266/modmachine: Call ets_event_poll after waiti in machine.idle.
...
Because "waiti 0" may have waited for a while (eg 500ms) and the internal
WDT may need to be fed immediately.
Fixes issue #4459 .
2019-02-28 15:44:37 +11:00
Damien George
823b31e528
stm32/boards/NUCLEO_F429ZI: Enable lwIP and Ethernet peripheral.
2019-02-26 23:32:19 +11:00
Damien George
ed0a530614
stm32/boards/STM32F769DISC: Enable lwIP and Ethernet peripheral.
2019-02-26 23:32:19 +11:00
Damien George
b3513f54d3
stm32/boards/STM32F7DISC: Enable lwIP and Ethernet peripheral.
2019-02-26 23:32:19 +11:00
Damien George
8daec24168
stm32/boards/NUCLEO_F767ZI: Enable lwIP and Ethernet peripheral.
2019-02-26 23:32:19 +11:00
Damien George
ac3e2f380d
stm32/modnetwork: Don't call NIC callback if it's NULL.
2019-02-26 23:32:19 +11:00
Damien George
08a24c5f41
stm32/mpconfigport.h: Enable lwIP concurrency protection mechanism.
2019-02-26 23:32:19 +11:00
Damien George
c55709bf29
stm32/network_lan: Add high-level network.LAN interface to ETH driver.
2019-02-26 23:32:19 +11:00
Damien George
c950a1a35d
stm32/eth: Add low-level Ethernet MAC driver.
2019-02-26 23:32:19 +11:00
Damien George
cc63e19332
stm32/mphalport: Add mp_hal_get_mac() helper function.
2019-02-26 23:32:07 +11:00
Damien George
75a35448e1
stm32/boards/NUCLEO_F767ZI: Fix up comments about HCLK computation.
2019-02-26 22:44:27 +11:00
Petr Kracík
21f9329d5d
esp32/modnetwork: Fix wifi.isconnected to return False after disconnect.
...
esp_wifi_connect will return ESP_OK for the normal path of execution which
just means the reconnect is started, not that it is actually reconnected.
In such a case wifi.isconnected() should return False until the
reconnection is complete. After reconnect a GOT_IP event is called and it
will change wifi_sta_connected back to True.
2019-02-26 00:49:40 +11:00
Damien George
55ff562c70
unix/modffi: Eliminate unused-argument warning when debugging disabled.
2019-02-25 14:53:17 +11:00
Petr Kracík
5801a003f0
esp32/network_lan: Make power arg to constructor optional.
...
A value of None for this argument is already supported, so the argument can
be made optional.
2019-02-21 23:29:10 +11:00