Paul Sokolovsky
3a1bbcc2ef
extmod: Move fsusermount.c from stmhal for cross-port reuse.
2015-11-25 13:19:36 +02:00
Damien George
a8aa1998ce
extmod/modure: Use correct integer type for n_args argument.
2015-11-23 15:05:58 +00:00
Galen Hazelwood
af3e45419c
extmod/lwip: Change void pointers to unions, include new mphal.h file
2015-11-04 23:24:04 +03:00
Paul Sokolovsky
d0601b0a1f
extmod/re1.5: Workaround issue with mingw32-gcc 4.2.1.
2015-11-01 02:39:01 +03:00
Paul Sokolovsky
aee704ebe1
extmod/modure: Make sure that errors in regexps are caught early.
2015-11-01 00:38:22 +03:00
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).
2015-11-01 00:38:00 +03:00
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.
2015-10-31 19:51:23 +03:00
Paul Sokolovsky
20f85feecc
extmod/moductypes: When dealing with UINT64, use mp_obj_new_int_from_ull().
...
Since we now have it.
2015-10-28 00:21:42 +03:00
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.
2015-10-27 23:31:42 +03:00
Paul Sokolovsky
858ed6d2f7
extmod/modlwip: Codestyle: no need for () when taking address of primary expr.
...
Like foo.bar or foo->bar.
2015-10-27 01:39:57 +03:00
Paul Sokolovsky
fa87e90cfa
extmod/modlwip: lwip_tcp_send(): Common subexpression elimination, use MIN().
2015-10-27 01:39:57 +03:00
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).
2015-10-27 01:39:57 +03:00
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 .
2015-10-27 00:04:59 +03:00
Paul Sokolovsky
393d0c1679
extmod/moductypes: Implement buffer protocol.
...
This is required to write structures to files, pass to FFI functions,
etc.
2015-10-26 01:03:24 +03:00
Galen Hazelwood
805c6534f8
extmod/modlwip: Initial commit of the lwip network stack module
2015-10-23 19:30:02 +03:00
Paul Sokolovsky
d19e4f0ba4
extmod/modussl: Remove unused header.
2015-10-20 17:41:59 +03:00
Paul Sokolovsky
aaa8867d4a
modussl: SSL socket wrapper module based on axTLS.
2015-10-06 18:10:39 +03:00
Paul Sokolovsky
2a6660ba59
extmod/modmachine: Avoid conflicts with system PAGE_SIZE define, if any.
2015-08-18 00:31:31 +03:00
Paul Sokolovsky
354d17523f
modmachine: Implement physical memory access using /dev/mem (Linux, etc).
...
This requires root access. And on recent Linux kernels, with
CONFIG_STRICT_DEVMEM option enabled, only address ranges listed in
/proc/iomem can be accessed. The above compiled-time option can be
however overriden with boot-time option "iomem=relaxed".
This also removed separate read/write paths - there unlikely would
be a case when they're different.
2015-07-08 11:37:23 +03:00
Damien George
722d4842df
extmod/modubinascii: Re-use error string to reduce code size.
...
Drops Thumb2 arch size by 24 bytes.
2015-07-06 11:34:29 +00:00
Paul Sokolovsky
7370fd5560
ubinascii: Fix a shadowed variable case.
2015-07-04 13:13:10 +03:00
Paul Sokolovsky
e284a95cc3
ubinascii: b2a_base64: Optimize away a modulo operation.
2015-07-04 12:36:46 +03:00
Galen Hazelwood
616986a5f3
extmod: Add a2b_base64 and b2a_base64 functions to ubinascii.
2015-07-04 12:26:52 +03:00
Paul Sokolovsky
1679696612
moductypes: Swap address and descriptor args in constructor.
...
Now address comes first, and args related to struct type are groupped next.
Besides clear groupping, should help catch errors eagerly (e.g. forgetting
to pass address will error out).
Also, improve args number checking/reporting overall.
2015-06-06 22:57:54 +03:00
Daniel Campora
7bd273b818
extmod: Actually expose the ubinascii python methods.
2015-05-22 09:56:09 +02:00