Glenn Ruben Bakke
ef8e679d77
nrf5/pin: Adding PORT_B to Pin port enum to reflect gpio port 1 on nrf52840.
2017-01-08 16:08:47 +01:00
Glenn Ruben Bakke
6973c13608
nrf5/boards: Updating all board configs with gpio port configuration for uart/spi pins. Leds still not defined by gpio port.
2017-01-08 16:04:52 +01:00
Glenn Ruben Bakke
307f95bd03
nrf5/devices: Updating header files for nrf51 and nrf52. Adding headers for nrf52840.
2017-01-08 15:32:26 +01:00
Glenn Ruben Bakke
19d354ed05
nrf5: Updating to use new nrfjprog in makefile. Needed for nrf52840 targets. Changed from pinreset to debug reset.
2017-01-08 15:17:03 +01:00
Glenn Ruben Bakke
4f04eed4c5
nrf5/boards: Updating makefiles to use system.c files based on sub-variant of mcu.
2017-01-08 15:15:36 +01:00
Damien George
65cadbeb9d
tests: Update test suite to be compatible with CPython 3.6.
...
CPython 3.6 has a few changes that, when run on uPy's test suite, give a
different output to CPython 3.5. uPy currently officially supports the
3.4 language definition, but it's useful to be able to run the test suite
with 3.4/3.5/3.6 versions of CPython. This patch makes such changes to
support 3.6.
2017-01-09 00:19:01 +11:00
Damien George
5653e3c72f
docs: Bump version to 1.8.7.
2017-01-08 23:53:08 +11:00
Glenn Ruben Bakke
721065b307
nrf5/devices: Renaming system.c files for nrf51 and nrf52 to be more explicit on which version of chip they are referring to.
2017-01-08 13:32:13 +01:00
Damien George
a722ed532f
tests/unix/extra_coverage: Add tests for importing frozen packages.
2017-01-08 22:45:55 +11:00
Damien George
b528e9a428
py/builtinimport: Fix bug when importing names from frozen packages.
...
The commit d9047d3c8a
introduced a bug
whereby "from a.b import c" stopped working for frozen packages. This is
because the path was not properly truncated and became "a//b". Such a
path resolves correctly for a "real" filesystem, but not for a search in
the list of frozen modules.
2017-01-08 20:17:23 +11:00
syndycat
b2611d6be3
drivers/onewire/ds18x20: Fix negative temperature calc for DS18B20.
2017-01-08 19:26:22 +11:00
Paul Sokolovsky
044f96c330
cc3200/modwlan: Add network.WLAN.print_ver() diagnostic function.
...
Prints NWP/MAC/PHY version, as affected by servicepack installed.
2017-01-07 19:48:12 +03:00
Paul Sokolovsky
a1a8f01799
docs/usocket: Clarify that socket timeout raises OSError exception.
2017-01-07 14:23:33 +03:00
Glenn Ruben Bakke
9214381671
nrf5/drivers: Backing up working epaper display (sld00200p shield) driver before refactoring.
2017-01-07 00:07:17 +01:00
Glenn Ruben Bakke
a2e2f3c07e
nrf5/drivers: Fixing parenthesis in ILI9341 __str__ print function.
2017-01-06 23:41:16 +01:00
Glenn Ruben Bakke
ad4149cc80
nrf5/pwm: Moving out object types to header file so that it can be resused by other modules.
2017-01-06 23:40:23 +01:00
Paul Sokolovsky
ef1bbada96
tests/array*: Allow to skip test if "array" is unavailable.
2017-01-07 01:13:40 +03:00
Glenn Ruben Bakke
67683722c8
nrf5/drivers: Updating a working version of ili9341 module and driver. About 10 times faster than python implementation to update a full screen.
2017-01-06 20:18:00 +01:00
Glenn Ruben Bakke
f92e581e13
nrf5: Started to split up lcd_mono_fb such that it can be used as a c-library and python module with the same implementaton.
2017-01-06 20:06:09 +01:00
Glenn Ruben Bakke
795df06283
nrf5/hal: Adding include of stdbool.h in hal_spi.h as it is used by the header.
2017-01-06 19:59:58 +01:00
Paul Sokolovsky
e5a6a26330
tests/types1: Split out set type test to set_types.
...
set isn't the most basic type and can be disabled by a port.
2017-01-06 11:01:55 +03:00
Damien George
36ec5c8f27
docs/library/esp: Remove para and add further warning about flash.
...
There is no longer space reserved by default for native code.
2017-01-06 18:32:49 +11:00
Damien George
e343bea6e7
esp8266/modules/flashbdev: Change RESERVED_SECS to 0.
...
This effectively reverts the change that introduced this new constant.
The reason is so that users do not need to rebuild the filesystem on
their modules when upgrading the firmware.
Users can change RESERVED_SECS by hand if they need the feature, and in
future firmware it may default to a non-zero value.
2017-01-06 18:30:55 +11:00
Damien George
cc7e48fdc8
esp8266/modules/flashbdev: Remove now-unused function set_bl_flash_size.
2017-01-06 16:22:53 +11:00
Glenn Ruben Bakke
62c3f9c1e3
nrf5/drivers: Adding preliminary file for ili9341 lcd driver.
2017-01-05 21:57:59 +01:00
Glenn Ruben Bakke
042e3653cf
nrf5/hal: Adding support for NULL pointer to be set if no rx buffer is of interest in SPI rx_tx function.
2017-01-05 21:56:17 +01:00
Paul Sokolovsky
4a72294d7d
esp8266/modules/flashbdev: Remove code to patch bootloader flash size.
...
This code is no longer pertinent for some time - since switchover to
SDK2.0, there must be correct flash size set for bootloader, or there's
a risk of flash data corruption. And indeed, the correct flash size is
by default auto-detected by esptool.py 1.2.
2017-01-05 22:26:23 +03:00
Glenn Ruben Bakke
a8dc8cb236
nrf5: Adding ili9341 class and driver files in Makefile to be included in build.
2017-01-05 20:16:24 +01:00
Glenn Ruben Bakke
a62573ad41
nrf5/drivers: Adding template files for upcomming ili9341 driver.
2017-01-05 20:15:23 +01:00
Glenn Ruben Bakke
5079cb0a25
nrf5/drivers: Adding lcd ili9341 object implementation to make a new instance. print implemented for debugging pins assigned to the display driver. No interaction yet with the hal driver.
2017-01-05 20:13:51 +01:00
Glenn Ruben Bakke
28539221ce
nrf5/drivers: Adding ILI9341 class to the display global dict.
2017-01-05 20:01:23 +01:00
Glenn Ruben Bakke
56d187b942
nrf5/boards: Changing tft lcd display name from SLD10261P to ILI9341 in pca10040 board configuration.
2017-01-05 19:59:25 +01:00
Glenn Ruben Bakke
e7c535b0cb
nrf5: Moving out mp_obj_framebuf_t to the header file to get access to it from other modules. Exposing helper function to make new framebuffer object from c-code.
2017-01-05 19:58:12 +01:00
Glenn Ruben Bakke
4c24d39122
nrf5: Trimming down display configurations in mpconfigport.h
2017-01-05 19:56:09 +01:00
Glenn Ruben Bakke
f9ffcfdb7d
nrf5/spi: Moving *_spi_obj_t out of implementation file to header. Setting hal init structure in the object structure instead of making a temp struct to configure hal. This would enable lookup of the spi settings later.
2017-01-05 19:50:20 +01:00
Glenn Ruben Bakke
b85b3b4e24
nrf5: Removing epaper, lcd and oled modules from Makefile source list as the display modules has been moved to display root folder.
2017-01-05 10:35:39 +01:00
Damien George
5d0d61586c
unix/Makefile: Allow cache-map-lookup optimisation with frozen bytecode.
2017-01-05 15:55:06 +11:00
Damien George
98458a46ec
tools/mpy-tool.py: Add support for OPT_CACHE_MAP_LOOKUP_IN_BYTECODE.
...
With caching of map lookups in the bytecode, frozen bytecode can still
work but must be stored in RAM, not ROM. This patch allows mpy-tool.py to
generate code that works with this optimisation, but it's not recommended
to use it on embedded targets (because of lack of RAM).
2017-01-05 15:52:52 +11:00
Damien George
343b4189b0
py/mkrules.mk: Add MPY_CROSS_FLAGS option to pass flags to mpy-cross.
...
So that ports can pass their own custom options to mpy-cross.
2017-01-05 15:51:36 +11:00
Damien George
8d1c236a1f
tests/unix/extra_coverage: Add basic tests to import frozen str and mpy.
2017-01-05 14:58:08 +11:00
Damien George
1551309575
unix: Enable and add basic frozen str and frozen mpy in coverage build.
2017-01-05 14:55:57 +11:00
Damien George
ea00151ffa
unix/Makefile: Split long line for coverage target, easier to modify.
2017-01-05 14:48:48 +11:00
Rami Ali
d7e168428b
tests/unix: Improve formatfloat.c test coverage using C.
2017-01-05 12:31:05 +11:00
Rami Ali
64dc925c4a
tests/float: Improve formatfloat.c test coverage using Python.
2017-01-05 12:31:05 +11:00
Rami Ali
ec72db8a39
tests: Improve warning.c test coverage.
2017-01-05 12:23:40 +11:00
Glenn Ruben Bakke
aaadec99e0
nrf5/drivers: Removing one level of module hierarchy in display drivers. Removed epaper, lcd and oled modules, making import of classes happen directly from display module.
2017-01-05 00:49:21 +01:00
Paul Sokolovsky
26f00ff154
tests/run-tests: Allow to skip set tests.
...
If sets are not enabled, set literals lead to SyntaxError during parsing,
so it requires feature_check. Set tests are skipped based on set_*.py
pattern.
2017-01-05 00:16:29 +03:00
Glenn Ruben Bakke
6cddad02a8
nrf5/drivers: Creating python object implementation (locals) to be used for epaper sld00200p.
2017-01-04 21:10:06 +01:00
Glenn Ruben Bakke
4c0bb63e2b
nrf5: Moving color defines in lcd_mono_fb from .c to .h so that it can be reused by other modules.
2017-01-04 21:06:51 +01:00
Glenn Ruben Bakke
6a077806c6
nrf5: Enable MICROPY_FINALISER and REPL_AUTO_INDENT.
2017-01-04 20:11:41 +01:00