Paul Sokolovsky
462748de0c
esp8266/esp8266.ld: Move main.o to iROM.
2016-10-19 00:12:54 +03:00
Paul Sokolovsky
e7e0d91be8
esp8266/esp8266.ld: Move modmachine.o to iROM.
2016-10-19 00:04:30 +03:00
Paul Sokolovsky
6566e3f6a8
esp8266/esp8266.ld: Move help.o to iROM.
2016-10-19 00:01:14 +03:00
Paul Sokolovsky
20d0271863
esp8266/esp_init_data: Auto-initialize system params with vendor SDK 2.0.0.
...
SDK 2.0.0 goes into boot loop if a firmware is programmed over erased flash,
causing problems with user experience. This change implements behavior
similar to older SDKs': if clean flash is detected, default system
parameters are used.
2016-10-18 15:18:07 +03:00
Damien George
542f05d228
teensy: Update to provide new mp_hal_pin_XXX functions following stmhal.
2016-10-18 15:34:17 +11:00
Damien George
b4cc68e4a4
stmhal/led: Refactor LED to use mp_hal_pin_output() init function.
...
As part of this patch the MICROPY_HW_LED_OTYPE setting is removed because
it is now unused (all boards anyway had this as OUTPUT_PP).
2016-10-18 14:43:05 +11:00
Damien George
d49d81b167
stmhal: Refactor pin usage to use mp_hal_pin API.
2016-10-18 14:34:08 +11:00
Damien George
cd9b14bb11
stmhal/modutime: Refactor to use extmod's version of ticks_cpu.
2016-10-18 14:34:08 +11:00
Damien George
5c93d0b916
cc3200: Enable loading of precompiled .mpy files.
...
Adds 1072 bytes to the code size.
2016-10-18 10:17:54 +11:00
Damien George
628799cd36
cc3200/mods/pybspi: Allow "write" arg of read/readinto to be positional.
...
To conform with Hardware API.
2016-10-18 10:16:46 +11:00
Damien George
f12047f66d
docs/machine.SPI: Improve descriptions of xfer methods.
...
In particular remove the "*" because not all ports support keyword
arguments.
2016-10-18 10:14:26 +11:00
Damien George
50ddaafa6a
cc3200: Use mp_raise_XXX helper functions to reduce code size.
...
Reduces code size by 632 bytes.
2016-10-18 09:53:43 +11:00
Paul Sokolovsky
4d45f286eb
esp8266/Makefile: Use latest esptool.py flash size auto-detection.
2016-10-18 00:06:59 +03:00
Paul Sokolovsky
a0b2f48c2f
docs/machine.SPI: Bring up to date with Hardware API, make vendor-neutral.
2016-10-17 18:05:16 +03:00
Damien George
c8d31585a0
docs: Bump version to 1.8.5.
2016-10-17 15:32:43 +11:00
Damien George
1e3a7c4ac5
tests/run-tests: Enable extmod/machine1.py on pyboard.
...
It now works.
2016-10-17 13:18:27 +11:00
Damien George
48feb8ac6e
stmhal: Enable str.center(), str.[r]partition() and builtin compile().
...
Also adds "machine" to the list of modules that the parser can search for
constants.
2016-10-17 13:17:19 +11:00
Damien George
57226a2b7f
stmhal: Implement machine.soft_reset().
2016-10-17 13:16:47 +11:00
Damien George
ad3724e0bc
lib/utils/pyexec: Allow behaviour of SystemExit to be configurable.
...
Setting the pyexec_system_exit variable to PYEXEC_FORCED_EXT allows
SystemExit exceptions to terminate the pyexec functions.
2016-10-17 13:14:59 +11:00
Damien George
7d0d7215d2
py: Use mp_raise_msg helper function where appropriate.
...
Saves the following number of bytes of code space: 176 for bare-arm, 352
for minimal, 272 for unix x86-64, 140 for stmhal, 120 for esp8266.
2016-10-17 12:17:37 +11:00
Damien George
6caca3259f
tests: Add test to print full KeyError exc from failed dict lookup.
2016-10-17 12:01:18 +11:00
Damien George
2750a7b38e
py/objdict: Actually provide the key that failed in KeyError exception.
...
The failed key is available as exc.args[0], as per CPython.
2016-10-17 12:00:19 +11:00
Damien George
a3edeb9ea5
py/objdict: Fix optimisation for allocating result in fromkeys.
...
Iterables don't respond to __len__, so call __len__ on the original
argument.
2016-10-17 11:58:57 +11:00
Damien George
e9404e5f5f
tests: Improve coverage of array, range, dict, slice, exc, unicode.
2016-10-17 11:43:47 +11:00
Damien George
453c2e8f55
tests/cmdline: Improve coverage test for printing bytecode.
2016-10-17 11:23:37 +11:00