- 02 5月, 2018 1 次提交
-
-
由 Damien George 提交于
-
- 01 5月, 2018 13 次提交
-
-
由 Damien George 提交于
Due to a typo, math.e was too small by around 6e-11.
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Damien George 提交于
To reduce dependency on the ST HAL for pin operations.
-
由 Damien George 提交于
It should be used after mp_hal_pin_config() or mp_hal_pin_config_alt().
-
由 Damien George 提交于
Following the same addition to esp8266 port.
-
由 Lars Kellogg-Stedman 提交于
This patch enables iface.config('essid') to work for both AP and STA interfaces.
-
由 Andreas Valder 提交于
The ULP is available as esp32.ULP(). See README.ulp.md for basic usage.
-
由 Ayke van Laethem 提交于
This is a more consistent use of errno codes. For example, it may be that a stream returns MP_EAGAIN but the mp_is_nonblocking_error() macro doesn't catch this value because it checks for EAGAIN instead (which may have a different value than MP_EAGAIN when MICROPY_USE_INTERNAL_ERRNO is enabled).
-
由 Damien George 提交于
Most modern systems have EWOULDBLOCK aliased to EAGAIN, ie they have the same value. But some systems use different values for these errnos and if a uPy port is using the system errno values (ie not the internal uPy values) then it's important to be able to distinguish EWOULDBLOCK from EAGAIN. Eg if a system call returned EWOULDBLOCK it must be possible to check for this return value, and this patch makes this now possible.
-
由 Mike Wadsten 提交于
If MICROPY_USE_INTERNAL_ERRNO is disabled, MP_EINVAL is not guaranteed to have the value 22, so we cannot depend on OSError(22,). Instead, to support any given port's errno values, without relying on uerrno, we just check that the args[0] is positive.
-
由 iabdalkader 提交于
-
由 iabdalkader 提交于
ADC3 is used because the H7's internal ADC channels are connected to ADC3 and the uPy driver doesn't support more than one ADC. Only 12-bit resolution is supported because 12 is hard-coded and 14/16 bits are not recommended on some ADC3 pins (see errata). Values from internal ADC channels are known to give wrong values at present.
-
- 27 4月, 2018 8 次提交
-
-
由 Damien George 提交于
WebREPL now works on the esp32 in the same way it does on esp8266.
-
由 Damien George 提交于
-
由 Damien George 提交于
The esp8266 uses modlwip.c for its usocket implementation, which allows to easily support callbacks on socket events (like when a socket becomes ready for reading). This is not as easy to do for the esp32 which uses the ESP-IDF-provided lwIP POSIX socket API. Socket events are needed to get WebREPL working, and this patch provides a way for such events to work by explicitly polling registered sockets for readability, and then calling the associated callback if the socket is readable.
-
由 Damien George 提交于
-
由 Damien George 提交于
This makes way for enabling uos.dupterm().
-
由 Damien George 提交于
This follows how all other boards are configured.
-
由 Ayke van Laethem 提交于
Clang defines __GNUC__ so we have to check for it specifically.
-
由 Damien George 提交于
After calling HAL_SYSTICK_Config the SysTick IRQ priority is set to 15, the lowest priority. This commit reconfigures the IRQ priority to the desired TICK_INT_PRIORITY value.
-
- 26 4月, 2018 3 次提交
-
-
由 Damien George 提交于
Thanks to @bboser for the initial idea and implementation.
-
由 Damien George 提交于
It's more efficient and improves accuracy.
-
由 Damien George 提交于
-
- 24 4月, 2018 6 次提交
-
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 Damien George 提交于
i2c.c implements the legacy pyb.I2C class so rename the file to make this explicit, and also to make room for an improved I2C driver.
-
由 Damien George 提交于
-
由 Damien George 提交于
By default the stm module is included in the build, but a board can now define MICROPY_PY_STM to 0 to not include this module. This reduces the firmware by about 7k.
-
- 23 4月, 2018 6 次提交
-
-
由 Damien George 提交于
-
由 Damien George 提交于
-
由 iabdalkader 提交于
-
由 iabdalkader 提交于
-
由 Damien George 提交于
In particular don't issue a warning if the passed-in constraints are actually supported because they are the default values.
-
由 Damien George 提交于
Uses new pypi.org URL, and now creates a socket with the address parameters returned by getaddrinfo().
-
- 20 4月, 2018 3 次提交
-
-
由 Shanee Vanstone 提交于
-
由 Peter D. Gray 提交于
-
由 Damien George 提交于
-