danicampora
ceb169008d
docs: Several corrections to the classes in the machine module.
9 years ago
danicampora
04db848dc7
docs: Add usocket and ussl modules' documentation.
9 years ago
danicampora
4b630c452d
cc3200: Make socket.listen([backlog]) compliant with Python 3.5.
9 years ago
danicampora
719dca2515
cc3200: Clean-up socket constants.
9 years ago
danicampora
d67ea6b29f
cc3200: Add comment about micropython extensions to standard modules.
9 years ago
danicampora
7ff585333e
cc3200: uart.read() returns EGAIN if no chars available.
9 years ago
danicampora
9a507c67ad
cc3200: Enable REPL autoindent.
9 years ago
Paul Sokolovsky
9d7ef05caf
README: Document how to enable/build external dependencies.
9 years ago
Damien George
e693e52442
tests: Disable some tests for pyboard that do not run correctly.
9 years ago
Damien George
9d0192de4a
stmhal: Enable "all special methods" configuration option.
9 years ago
Damien George
f09f8097d5
esp8266: Put more code in irom0 section, to get it building again.
9 years ago
Paul Sokolovsky
d19e4f0ba4
extmod/modussl: Remove unused header.
9 years ago
Damien George
f961456b29
lib/mp-readline: Add n_chars argument to mp_hal_erase_line_from_cursor.
If VT100 support is not available then a given implementation of
mp_hal_erase_line_from_cursor might need to know the number of characters
to erase.
This patch does not change generated code when VT100 is supported, since
compiler can optimise away the argument.
9 years ago
Damien George
22521ea9e2
py/nlrthumb: Make compatible with Cortex-M0 (ARMv6M instr set).
9 years ago
Damien George
04353cc85e
py: With obj repr "C", change raw str accessor from macro to function.
This saves around 1000 bytes (Thumb2 arch) because in repr "C" it is
costly to check and extract a qstr. So making such check/extract a
function instead of a macro saves lots of code space.
9 years ago
Damien George
183edefddd
py: Add object repr "C", where 30-bit floats are stuffed in obj word.
This new object representation puts floats into the object word instead
of on the heap, at the expense of reducing their precision to 30 bits.
It only makes sense when the word size is 32-bits.
9 years ago
Damien George
aedb859177
py: Make float representation configurable with object representation.
9 years ago
Damien George
7e359c648b
py: Move float e/pi consts to objfloat and make mp_obj_float_t private.
9 years ago
Damien George
aaef1851a7
py: Add mp_obj_is_float function (macro) and use it where appropriate.
9 years ago
Damien George
60401d461a
stmhal/rtc: Fix indentation to use spaces rather than tabs.
9 years ago
Peter Hinch
b106532b32
stmhal/rtc: Init uses YMD rather than backup register to detect powerup.
9 years ago
Paul Sokolovsky
8e6e9eaea5
unix: Use "Ctrl" as a name of the key, not "CTRL".
9 years ago
Paul Sokolovsky
acea9352a9
tests/extmod: Add tests for sleep_ms/us(), ticks_ms/us/diff().
Simple smoke tests, mostly for coverage. Added to extmod based on the fact
that they're extensions to standard modules.
9 years ago
Paul Sokolovsky
9058a7031f
travis: Build "deplibs" in unix port.
9 years ago
Tom Soulanille
a787467569
tools/pyboard: Add -c argument to run a program passed as a string.
9 years ago
Damien George
4078336d38
teensy: Update to compile with latest changes to stmhal Pin class.
9 years ago
Damien George
2f96b1982a
stmhal: Bring Pin class close to new machine module specification.
Looks like we can use the same Pin class for legacy pyb module and new
machine module.
9 years ago
Paul Sokolovsky
bedab235f9
stmhal/uart: If char is not received within timeout, return EAGAIN error.
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.
9 years ago
Damien George
83158e0e7f
stmhal: Implement os.dupterm (was pyb.repl_uart).
pyb.repl_uart still exists but points to os.dupterm.
9 years ago
Damien George
d8066e999d
stmhal: Add sleep_{ms,us} and ticks_{ms,us,cpu,diff} to time module.
pyb module still has pyb.delay and pyb.udelay, but these now point to
time.sleep_ms and time.sleep_us respectively.
9 years ago
Dave Hylands
504420c51d
stmhal: Early version of machine module for stmhal.
9 years ago
Paul Sokolovsky
2c040edef8
libffi: Skip building docs.
This requires makeinfo installed and wastes time (especially in CI).
9 years ago
danicampora
9c72c71c05
cc3200: WLAN class can retrieve the existing instance.
9 years ago
danicampora
f4c50f1cfc
tests/wipy: Make WLAN test more stable.
9 years ago
danicampora
ae70e98ed4
cc3200: Fix time.ticks_* functions.
9 years ago
danicampora
8faf2dc75b
docs/wipy: Add wipy tutorials section.
9 years ago
danicampora
36ae417c9f
docs: Add wipy and network.server documentation.
9 years ago
danicampora
2e0cd20a1d
cc3200: Refactor network module to make the server a propper object.
9 years ago
danicampora
65f6324573
cc3200: Increase stack sizes a bit.
9 years ago
danicampora
d8137178bb
cc3200: Create wipy module, remove HeartBeat class.
The heartbeat is now controllable via a single function within the
wipy module.
9 years ago
Paul Sokolovsky
39a380b621
unix/modos: Android Bionic lacks statvfs(), has BSD statfs().
9 years ago
Paul Sokolovsky
e0f5df579b
all: Make netutils.h available to all ports by default.
Generally, ports should inherit INC from py.mk, append to it, not
overwrite it. TODO: Likely should do the same for other vars too.
9 years ago
Paul Sokolovsky
8ee153f234
unix/modtime: Implement ticks_ms(), ticks_us() and ticks_diff().
All of these functions return positive small int, thus range is 2 bits less
than word size (30 bit on 32-bit systems, 62 bit on 64-bit systems).
9 years ago
Paul Sokolovsky
fd379db286
unix/modtime: Implement sleep_ms(), sleep_us().
9 years ago
Damien George
096d1e4512
py: Add lsl/lsr/asr opcode support to inline Thumb2 assembler.
9 years ago
Paul Sokolovsky
949c5c9180
unix/unix_mphal: Implement HAL_Delay() and HAL_GetTick().
9 years ago
Paul Sokolovsky
7799410950
py/stream: Allow to reuse is_nonblocking_error().
9 years ago
Paul Sokolovsky
2ca7b05552
unix/modos: Checking config macros requires mpconfig.h.
9 years ago
Paul Sokolovsky
f8e9ef5cd0
unix/modos: Guard sys/statvfs.h include with MICROPY_PY_OS_STATVFS check.
E.g. Windows lacks this header.
9 years ago
danicampora
020386b61c
docs: In top index fix machine module link for the WiPy.
9 years ago