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
9b2a97a903
extmod/modwebrepl: Fix logic to handle a put of file of size 0.
...
Fixes issue #4499 .
2019-02-28 15:30:48 +11:00
Damien George
ed1a88e263
extmod/modlwip: Don't require a port to define concurrency macros.
2019-02-27 10:27:56 +11:00
Damien George
12ce9f2689
py/compile: Fix handling of unwinding BaseException in async with.
...
All exceptions that unwind through the async-with must be caught and
BaseException is the top-level class, which includes Exception and others.
Fixes issue #4552 .
2019-02-26 23:52:10 +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
b6791ffbbe
lib/netutils: Add function to print tracing info for Ethernet frames.
2019-02-26 23:32:19 +11:00
Damien George
39ea132e1d
extmod/modlwip: Add concurrency protection macros.
...
Some users of this module may require the LwIP stack to run at an elevated
priority, to protect against concurrency issues with processing done by the
underlying network interface. Since LwIP doesn't provide such protection
it must be done here (the other option is to run LwIP in a separate thread,
and use thread protection mechanisms, but that is a more heavyweight
solution).
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
Yonatan Goldschmidt
9521399044
docs/uos: Document extra requirements on stream objs passed to dupterm.
...
This is only correct for the extmod/uos_dupterm.c implementation however,
as e.g cc3200 implementation does the mp_load_method() itself, and anyway
requires `read` instead of `readinto`.
2019-02-26 01:12:37 +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
Damien George
4ee2c2a4cd
py: Eliminate warnings about unused arguments when debugging disabled.
2019-02-25 14:52:36 +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
Petr Kracík
01c1432e32
esp32/modnetwork: Catch and report Ethernet events.
2019-02-21 23:28:51 +11:00
Petr Kracík
7d8c71c222
esp32/network_lan: Add arg to constructor to set clock mode for ETH PHY.
...
This optional parameter for network.LAN clock_mode can be used for cases
where the clock source is different from the default GPIO0. Fixes #4502 .
2019-02-21 23:28:17 +11:00
Damien George
be41d6d6f9
tests/basics: Add tests for try-except-else and try-except-else-finally.
2019-02-21 16:22:41 +11:00
Stig Bjørlykke
c72391c4ce
nrf/pwm: Remove superfluous NULL in machine_hard_pwm_instances.
...
Remove unneeded NULL entry in machine_hard_pwm_instances[] when not
building for NRF52_SERIES.
2019-02-20 22:52:18 +01:00