Paul Sokolovsky
7cce2f664c
extmod/re1.5: Update to 0.8.
Contains implementation of ?: (non-capturing groups), ?? (non-greedy ?),
as well as much improved robustness, and edge cases and error handling by
Amir Plivatsky (@ampli ).
9 years ago
Paul Sokolovsky
000a12783c
cc3200: Use common pyexec.c .
9 years ago
Paul Sokolovsky
4deb4936d5
extmod/modlwip: socket->incoming changed by async callbacks, must be volatile.
Otherwise for code like:
while (socket->incoming == NULL) {
LWIP_DELAY(100);
}
a compiler may cache it in a register and it will be an infinite loop.
9 years ago
Paul Sokolovsky
0ec51441de
stmhal: pyexec.c is common module, move to lib/utils/ .
9 years ago
Damien George
731f359292
all: Add py/mphal.h and use it in all ports.
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.
9 years ago
Paul Sokolovsky
0bd3f3291d
tests/base/struct1.py: Add test for repetition counters.
9 years ago
Paul Sokolovsky
2b080cf599
py/modstruct: Support repetition counters for all types, not just string.
This makes format specifiers ~ fully compatible with CPython.
Adds 24 bytes for stmhal port (because previosuly we had to catch and report
it's unsupported to user).
9 years ago
Damien George
f705cb5f7a
stmhal: Update PYBv3 and PYBv4 pin defs to include MMA pins, and others.
9 years ago
stijn
24b03561bd
tests: Make sure test output has \r\n line-ends when running on Windows
This is the case already when using just subprocess.check_output, but in
the special cases (cmdline, meminfo, ...) the carriage return gets lost
during output processing so restore it in the end.
This fixes the micropython/meminfo.py test on Windows.
9 years ago
stijn
bd9f850e85
windows: Use write() instead of fwrite() to avoid out-of-order output.
This fixes the basics/exception_chain.py test, also see #1500 for more
info and [4300c7d
] where the same change was done for the other ports.
9 years ago
adminpete
d6201fc4b7
py: In inline asm, vldr and vstr offsets now in bytes not words.
As per ARM convention.
9 years ago
Dave Hylands
165734522e
stmhal: f7: Fix recent RTC change to build on F7.
9 years ago
Paul Sokolovsky
3833d3846d
README: Adjust suggested path for generated docs.
9 years ago
Paul Sokolovsky
43efb46328
docs/library/index.rst: Minimally adapt for unix port.
9 years ago
Paul Sokolovsky
c6bc5b69c2
docs: Actually add unix port indexes, so docs for it could be generated.
9 years ago
Peter Hinch
3819634469
stmhal: Make RTC init skip startup if LTE is already enabled and ready.
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.
9 years ago
Dave Hylands
b83d0b35e9
stmhal: Add define for UNIQUE_ID address (differs per MCU)
9 years ago
Dave Hylands
823a961ecc
stmhal: Enable sdcard on STM32F7DISC board.
9 years ago
omtinez
3510499a9e
windows: Call _set_output_format() only on Visual Studio versions 2013 or lower.
Since VS2015, float formatting is C standard compliant by default:
https://msdn.microsoft.com/en-us/library/bb531344(v=vs.140).aspx
9 years ago
omtinez
17c649da3d
py/makeversionhdr.py: Work with backslashes in paths.
This script may be called by Windows IDEs (e.g. Visual Studio) and be passed
paths with backslashes.
9 years ago
Damien George
6f70283909
stmhal: Make accel AVDD pin configurable via mpconfigboard.h.
9 years ago
Paul Sokolovsky
98b6d35c4f
docs: select: Describe poll.poll() return value in detail.
9 years ago
Paul Sokolovsky
9b12bc788f
cc3200: Switch from HAL_GetTick() to mp_hal_ticks_ms().
9 years ago
Paul Sokolovsky
19b671c5cd
stmhal/moduselect: Use mp_hal_ticks_ms().
9 years ago
Paul Sokolovsky
f4decdc4a3
cc3200: Switch from HAL_Delay() to mp_hal_delay_ms().
9 years ago
Paul Sokolovsky
eb099b9893
teensy: Switch from HAL_* to mp_hal_* functions.
9 years ago
Paul Sokolovsky
4a9eac20b9
minimal: Use mp_hal_ticks_ms().
9 years ago
Paul Sokolovsky
6a09e7d7ae
esp8266: Switch to standard mp_hal_ticks_ms() MPHAL function.
9 years ago
Paul Sokolovsky
04fa999cfe
stmhal/pyexec: Use mp_hal_ticks_ms().
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.
9 years ago
Paul Sokolovsky
ebd9f550e8
esp8266: Switch to standard mp_hal_delay_ms() MPHAL function.
9 years ago
Paul Sokolovsky
5699fc9d0e
esp8266: Switch to standard mp_hal_delay_us() MPHAL function.
9 years ago
Paul Sokolovsky
a2e0d92eeb
examples: Add example of I2C usage, taking PyBoard accelerometer as subject.
9 years ago
danicampora
f3b1a933fc
cc3200: Actually allow to specify a custom build directory.
9 years ago
danicampora
a0fb7a76cd
cc3200: Fix bug in FTP command buffer, and set listening backlog to 0.
9 years ago
Paul Sokolovsky
20f85feecc
extmod/moductypes: When dealing with UINT64, use mp_obj_new_int_from_ull().
Since we now have it.
9 years ago
Paul Sokolovsky
404dae80a9
unix, stmhal: Introduce mp_hal_delay_ms(), mp_hal_ticks_ms().
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.
9 years ago
danicampora
9011815d86
docs/wipy: Fix bug in example code and add note regarding OTA.
9 years ago
Paul Sokolovsky
858ed6d2f7
extmod/modlwip: Codestyle: no need for () when taking address of primary expr.
Like foo.bar or foo->bar.
9 years ago
Paul Sokolovsky
fa87e90cfa
extmod/modlwip: lwip_tcp_send(): Common subexpression elimination, use MIN().
9 years ago
Paul Sokolovsky
76217064ac
extmod/modlwip.c: Codestyle whitespace changes.
With MicroPython codestyle, with pointer casts, "*" packs with primary type
without space. Few other similar changes too (git diff -b -w is null).
9 years ago
Martijn Koster
a13d22f921
docs/wipy: Fix several typos and change some pyboard to WiPy.
9 years ago
danicampora
1950295735
cc3200: Set pin direction first, then value. Fixes #1542 .
9 years ago
Paul Sokolovsky
e0d7740a22
extmod/modlwip: slip: Use stream protocol and be port-independent.
Based on the original patch by Galen Hazelwood:
https://github.com/micropython/micropython/pull/1517 .
9 years ago
stijn
f3e46d0c52
windows: Rename "time" module to "utime" for consistency with others.
9 years ago
stijn
12fab63928
lib: Replace tabs with spaces in readline.c
9 years ago
stijn
dc93f25bb8
windows: Erase pre-calc'd number of chars instead of clearing whole line.
9 years ago
Paul Sokolovsky
393d0c1679
extmod/moductypes: Implement buffer protocol.
This is required to write structures to files, pass to FFI functions,
etc.
9 years ago
Damien George
79f404a287
stmhal: Fix USB_VCP.recv so that it returns actual amount of bytes read.
Addresses issue #1529 .
9 years ago
Martijn Koster
8e8aac89a5
cc3200: Update README to change pyb to machine.
9 years ago
Martijn Koster
c773053f58
docs/wipy: Fix several typos.
9 years ago