- 14 Nov, 2015 1 commit
-
-
Paul Sokolovsky authored
In new hardware API, these classes implement master modes of interfaces, and "mode" parameter is not accepted. Trying to implement new HW API in terms of older pyb module leaves variuos corner cases: In new HW API, I2C(1) means "I2C #1 in master mode" (? depends on interpretation), while in old API, it means "I2C #1, with no settings changes". For I2C class, it's easy to make mode optional, because that's last positional param, but for SPI, there's "baudrate" after it (which is inconsistent with I2C, which requires "baudrate" to be kwonly-arg).
-
- 10 Nov, 2015 1 commit
-
-
Paul Sokolovsky authored
This file contains various MicroPython-specific helper functions, so isn't good fit for lib/libc/.
-
- 09 Nov, 2015 2 commits
-
-
Paul Sokolovsky authored
This makes select.poll() interface fully compatible with CpYthon. Also, make their numeric values of these options compatible with Linux (and by extension, with iBCS2 standard, which jopefully means compatibility with other Unices too).
-
Damien George authored
-
- 08 Nov, 2015 1 commit
-
-
Alex March authored
Port specific settings defined in mpconfigport.
-
- 07 Nov, 2015 2 commits
-
-
Dave Hylands authored
-
Dave Hylands authored
-
- 06 Nov, 2015 2 commits
-
-
Tony Abboud authored
-
T S authored
Initial power up also includes VBAT. If LSE is configured but fails to start, LSI is used until next full power cycle. Also handles STM32F7xx variant.
-
- 02 Nov, 2015 1 commit
-
-
Henrik Sölver authored
Reported here: http://forum.micropython.org/viewtopic.php?f=2&t=845
-
- 01 Nov, 2015 1 commit
-
-
Dave Curtis authored
-
- 31 Oct, 2015 3 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
-
Damien George authored
-
- 30 Oct, 2015 4 commits
-
-
Dave Hylands authored
-
Peter Hinch authored
This prevents the loss of RTC time when exiting from standby mode, since the RTC is paused while it is being re-inited and this loses about 120ms. Thanks to @chuckbook for the patch.
-
Dave Hylands authored
-
Dave Hylands authored
-
- 29 Oct, 2015 3 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This file is actually port-generic and should be moved out of stmhal/ . Other ports already use it, and thus it should use mp_hal_ticks_ms() right away.
-
- 27 Oct, 2015 1 commit
-
-
Paul Sokolovsky authored
These MPHAL functions are intended to replace previously used HAL_Delay(), HAL_GetTick() to provide better naming and MPHAL separation (they are fully equivalent otherwise). Also, refactor extmod/modlwip to use them.
-
- 25 Oct, 2015 1 commit
-
-
Damien George authored
Addresses issue #1529.
-
- 24 Oct, 2015 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
mpconfigport.h is a private, partial header not providing correct settings unless included by py/mpconfig.h.
-
Paul Sokolovsky authored
Scenario: module1 depends on some common file from lib/, so specifies it in its SRC_MOD, and the same situation with module2, then common file from lib/ eventually ends up listed twice in $(OBJ), which leads to link errors. Make is equipped to deal with such situation easily, quoting the manual: "The value of $^ omits duplicate prerequisites, while $+ retains them and preserves their order." So, just use $^ consistently in all link targets.
-
- 20 Oct, 2015 3 commits
-
-
Damien George authored
-
Damien George authored
-
Peter Hinch authored
-
- 19 Oct, 2015 6 commits
-
-
Damien George authored
Looks like we can use the same Pin class for legacy pyb module and new machine module.
-
Paul Sokolovsky authored
Instead of return 0, which means EOF. There's no good way to detect EOF on continuously active bus like UART, and treat timeout as just temporary unvailability of data. .read() method of UART object will return None in this case (instead of 0, which again measn EOF). This is fully compliant with unix port.
-
Damien George authored
pyb.repl_uart still exists but points to os.dupterm.
-
Damien George authored
pyb module still has pyb.delay and pyb.udelay, but these now point to time.sleep_ms and time.sleep_us respectively.
-
Dave Hylands authored
-
Paul Sokolovsky authored
Generally, ports should inherit INC from py.mk, append to it, not overwrite it. TODO: Likely should do the same for other vars too.
-
- 17 Oct, 2015 1 commit
-
-
Dave Hylands authored
-
- 13 Oct, 2015 1 commit
-
-
Damien George authored
This patch allows to configure the DAC resolution in the constructor and in the init function, eg: dac = DAC(1, bits=12). The default resolution is 8 bits for backwards compatibility. The bits sets the maximum value accepted by write and write_timed methods, being 2**bits - 1. When using write_timed with 12-bit resolution, the input buffer is treated as an unsigned half-word array, typecode 'H'. See PR #1130 for discussion.
-
- 11 Oct, 2015 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Use CTRL-E to enter paste mode. Prompt starts with "===" and accepts all characters verbatim, echoing them back. Only control characters are CTRL-C which cancels the input and returns to normal REPL, and CTRL-D which ends the input and executes it. The input is executed as though it were a file. The input is not added to the prompt history.
-