Krzysztof Blazewicz
1f69b16d3f
stmhal: Remove STM32CubeF2 HAL files, they are unused/unsupported.
2016-09-22 12:11:01 +10:00
Krzysztof Blazewicz
9310dad15d
stmhal: Put common definitions from linker files to common.ld.
2016-09-22 12:03:12 +10:00
Damien George
c4a69c75a5
unix: Enable btree module for coverage build.
2016-09-22 11:10:11 +10:00
Damien George
6c79980b0e
py/py.mk: Suppress some compiler warnings when building berkeley-db.
2016-09-22 11:09:21 +10:00
Damien George
79ec869f95
py/stream: Remove unnecessary check for NULL return from vstr_extend.
...
vstr_extend will now only return NULL if the vstr is a fixed buffer, which
in this case it is not.
2016-09-22 10:50:47 +10:00
Damien George
c528489eee
README: Remove issue-stats badges, the service is no longer available.
...
The issue-stats service is not well maintained and likely the situation
won't improve in the future. See:
https://github.com/hstove/issue_stats/issues/41
https://github.com/hstove/issue_stats/issues/46
2016-09-22 10:38:49 +10:00
Paul Sokolovsky
080e4d44f3
extmod/modussl_mbedtls: Use 2-component include paths.
...
This is required to use mbedTLS versions from various sources, e.g.
mainline vs embedded into Zephyr RTOS.
2016-09-22 01:30:48 +03:00
Paul Sokolovsky
5f0ecb72c2
extmod/modussl_mbedtls: Implement key= and cert= args to wrap_socket().
...
Unlike standard keyfile= and certfile=, these accept byte buffer objects
(to not depend on FS implementation).
2016-09-22 00:17:44 +03:00
Pavol Rusnak
7f5a541b84
extmod/modubinascii: Fix crc32() function on 32-bit platforms.
2016-09-21 21:40:18 +03:00
Stefan Agner
b84e1231c9
extmod/uctypes: Allow full 32-bit address range.
...
Use mp_obj_int_get_truncated to allow the full 32-bit address range
as first parameter.
2016-09-21 21:37:08 +03:00
Paul Sokolovsky
9ea2882317
extmod/modussl_mbedtls: Initial implementation of mbedTLS ussl module.
2016-09-21 21:25:33 +03:00
Damien George
93c4a6a3f7
all: Remove 'name' member from mp_obj_module_t struct.
...
One can instead lookup __name__ in the modules dict to get the value.
2016-09-22 00:23:16 +10:00
Stefan Agner
b0a46900de
stmhal: Use attribute to avoid inlining.
...
Use MP_NOINLINE macro to avoid inlining of init_flash_fs. This helps
to keep stack usage of main() low.
2016-09-20 20:41:11 -07:00
Paul Sokolovsky
7ea3fa2641
py/builtinimport: Fix nanbox build after change to better handle -m modules.
2016-09-20 17:55:42 +03:00
Delio Brignoli
21c719bd0a
builtinimport: add the module specified by -m to sys.modules as '__main__'
2016-09-20 14:01:31 +03:00
Damien George
34e0198436
esp8266: Extend system microsecond counter to 64-bits; use in ticks_ms.
...
So now ticks_ms can count up to the full 30 bits. Fixes issue #2412 .
2016-09-20 14:28:17 +10:00
Damien George
cc7c311b5e
travis: Run feature and coverage test for precompiled mpy files.
2016-09-20 12:21:53 +10:00
Damien George
3f5fe6269e
tests/run-tests: Add --via-mpy option to run test from precompiled code.
...
With mpy-cross built, tests can now be run by first compiling them to .mpy
files, and then executing the .mpy file. Usage: ./run-tests --via-mpy
2016-09-20 12:19:35 +10:00
Damien George
bb954d80a4
tests: Get cmdline verbose tests running again.
...
The showbc function now no longer uses the system printf so works
correctly.
2016-09-20 11:33:19 +10:00
Damien George
fbddea929d
py/showbc: Make printf's go to the platform print stream.
...
The system printf is no longer used by the core uPy code. Instead, the
platform print stream or DEBUG_printf is used. Using DEBUG_printf in the
showbc functions would mean that the code can't be tested by the test
suite, so use the normal output instead.
This patch also fixes parsing of bytecode-line-number mappings.
2016-09-20 11:30:54 +10:00
Paul Sokolovsky
60592fd23c
tests/array1: Add tests for "l", "L" array types to improve coverage.
2016-09-19 17:20:41 +03:00
Paul Sokolovsky
b85bcd671c
tests/struct1: Test "l" specifier to improve coverage.
2016-09-19 17:01:02 +03:00
Damien George
e60835bac5
py/qstr: Remove a comment.
...
qstrs are always null terminated so qstr_str will stay as part of the API.
2016-09-19 13:18:54 +10:00
Damien George
4874bde104
stmhal/boards: For OLIMEX_E407, enable UART1 and fix I2C1 mapping.
...
UART1 can be used even if the switch is enabled. The schematics for this
board make I2C1 available on PB8/PB9, even though it can also be mapped
to PB6/PB7.
See #2396 and #2427 .
2016-09-19 13:00:15 +10:00
Damien George
8dd5960ac0
py/objnone: Use mp_generic_unary_op instead of custom one.
2016-09-19 12:28:55 +10:00