Damien George
94c41bb06f
py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible.
...
Saves 168 bytes on bare-arm.
2017-03-28 22:37:26 +11:00
Damien George
7b1804c582
stmhal/dma: Fix reinitialisation of DMA on F7 MCUs, following F4.
2017-03-28 12:59:02 +11:00
Damien George
e997bb6328
stmhal/hal: For F7 MCUs, expose DMA_CalcBaseAndBitshift function.
...
It's needed by the DMA driver to do an efficient reinitialisation. This
patch follows what is done in the F4 HAL.
2017-03-28 12:56:18 +11:00
Damien George
ff927cb106
stmhal/spi: Clean and/or invalidate D-cache before SPI DMA transfers.
...
On MCUs with a cache (eg F7) this must be done or else the SPI data that is
transferred is incorrect.
2017-03-28 12:54:01 +11:00
Damien George
9a1b3da158
stmhal/board: Fix existing and add more pin defs for NUCLEO_F767ZI.
2017-03-28 12:42:23 +11:00
Damien George
8b36664e17
stmhal/boards: Fix alt-func config for PA5 of STM32F767.
2017-03-28 12:41:55 +11:00
Paul Sokolovsky
dbb2aea428
zephyr/prj_base.conf: Disable legacy kernel compatibility.
...
This keeps dependency on mdef, sysgen and other stuff which complicates
build integration.
2017-03-27 17:06:30 +03:00
Damien George
54507f78ee
py/objmap: Convert mp_uint_t to size_t.
2017-03-27 12:19:24 +11:00
Damien George
f648e5442b
esp8266/modesp: Remove long-obsolete and unused espconn bindings.
2017-03-27 12:05:18 +11:00
Damien George
734775524e
tests/basics: Add test for super() when self is closed over.
2017-03-27 11:29:11 +11:00
Damien George
40c1272e55
py/compile: When compiling super(), handle closed-over self variable.
...
The self variable may be closed-over in the function, and in that case the
call to super() should load the contents of the closure cell using
LOAD_DEREF (before this patch it would just load the cell directly).
2017-03-27 11:27:08 +11:00
Damien George
a0973b09ce
py/vm: Fix VM opcode tracing to print correct stack pointer.
...
Also const_table is now moved to the code_state->fun_bc structure.
2017-03-27 10:52:04 +11:00
Paul Sokolovsky
220df8544b
zephyr/zephyr_getchar: Use native k_sem instead of legacy nano_sem.
2017-03-27 00:41:58 +03:00
Damien George
3f810daeb3
py/obj: Change mp_uint_t to size_t for mp_obj_get_array_fixed_n len arg.
2017-03-26 19:20:06 +11:00
Damien George
9c388f66cf
esp8266/modesp: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
2017-03-26 19:19:48 +11:00
Damien George
b568448306
extmod/modlwip: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
2017-03-26 19:19:35 +11:00
Damien George
fb139a4ba6
README: Change Travis & Coveralls badges to not use link references.
...
Link references don't seem to work anymore.
2017-03-26 17:03:54 +11:00
Paul Sokolovsky
99866a00a0
py/nlrx86: Better check for Zephyr (requires 1.7).
2017-03-26 00:33:23 +03:00
Paul Sokolovsky
fa17eabce9
README: Describe extmod/ dir.
2017-03-25 17:12:24 +03:00
Paul Sokolovsky
c16d1c07ca
README: Add link to docs.micropython.org.
2017-03-25 17:07:57 +03:00
Damien George
29424304d9
unix: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
2017-03-25 19:54:07 +11:00
Damien George
ab5689bc9d
py/objarray: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
2017-03-25 19:53:31 +11:00
Damien George
64a4f11b2d
py: Remove MP_STATE_CTX, use MP_STATE_THREAD instead (it's an alias).
...
MP_STATE_CTX was recently aliased to MP_STATE_THREAD and can now be
removed.
2017-03-24 18:43:28 +11:00
Damien George
707f16b05c
py: Use mp_locals/mp_globals accessor funcs instead of MP_STATE_CTX.
...
To improve maintainability of the code.
2017-03-24 18:41:11 +11:00
Damien George
f4ee1ba9b4
py/objnamedtuple: Use size_t where appropriate, instead of mp_uint_t.
2017-03-24 17:25:25 +11:00