Damien George
24652228af
drivers/sdcard: Allow up to 5 retries to initialise SD card.
...
Apparently some cards need more than 2 retries. See issue #1482 .
2015-10-10 00:07:40 +01:00
Damien George
845b5a2a58
docs: Describe properly how MCU can be woken from pyb.standby() state.
2015-10-10 00:03:14 +01:00
Paul Sokolovsky
7381b7ac71
unix/modjni: py2jvalue: Support bool and None values.
2015-10-10 01:20:48 +03:00
Peter Hinch
0e87bc7be6
tests: In pyb RTC tests, check wakeup register values.
2015-10-09 23:06:05 +01:00
Dave Hylands
01d64914c5
stmhal: Fix USB CDC-only mode under Windows.
...
This fix adds PIDs 9801 and 9802 to the pybcdc.inf file.
When in CDC only mode, it presents itself as a Communcations
device rather than as a composite device. Presenting as a
composite device with only the CDC interface seems to confuse
windows.
To test and make sure that the correct pybcdc.inf was being used,
I used USBDeview from http://www.nirsoft.net/utils/usb_devices_view.html
to uninstall any old pyboard drivers (Use Control-F and search
for pyboard). I found running USBDeview as administrator worked best.
Installing the driver in CDC+MSC mode first is recommended (since the
pybcdc.inf file in on the internal flash drive). Then when you switch
modes everything seems to work properly.
I used https://github.com/dhylands/upy-examples/blob/master/boot_switch.py
to easily switch the pyboard between the various USB modes for testing.
2015-10-09 00:18:01 +01:00
Damien George
366239b8b9
py/parse: Factor logic when creating parse node from and-rule.
2015-10-08 23:13:18 +01:00
Paul Sokolovsky
02041bf2e0
unix/modjni: jvalue2py() is currently not used.
...
Not remove so far, may be needed later.
2015-10-09 00:27:27 +03:00
Paul Sokolovsky
216b6a494e
unix/modjni: Allow to access fields of objects.
2015-10-08 16:57:02 +03:00
Damien George
b948de36fb
py: Don't generate unnecessary parse nodes for assignment or kwargs.
...
This patch eliminates the need for a nested parse node for assignments
and keyword arguments. It saves a little bit of RAM when parsing.
2015-10-08 14:26:01 +01:00
Damien George
4fb5ff86ee
tests: Add test for evaluation order of dictionary key/value pairs.
...
In Python 3.4 the value is evaluated before the key. In Python 3.5 it's
key then value.
2015-10-08 13:15:07 +01:00
Damien George
9f5f156b9d
py/emitnative: Raise ViperTypeError for unsupported unary ops.
2015-10-08 13:08:59 +01:00
Damien George
7e12a601b8
py/compile: Fix edge case when constant-folding negation of integer.
...
Also adds tests specifically for testing constant folding.
2015-10-08 13:02:00 +01:00
Damien George
2a8d7ee0f8
stmhal: Fix RTC.wakeup so it correctly calculates WUT for large periods.
...
Thanks to Peter Hinch. Addresses issue #1488 .
2015-10-08 12:41:12 +01:00
Paul Sokolovsky
fd38799049
unix/modjni: After Call*Method(), Java exception should always be checked.
...
OpenJDK seemed to return NULL in case of exception, but Dalvik returns
arbitrary value, so skip such "optimizations".
2015-10-07 07:40:29 +03:00
Damien George
fa391eed9d
stmhal: In RTC.wakeup, fix setting of wucksel to get correct period.
...
Thanks to Peter Hinch. See issue #1490 .
2015-10-06 23:39:57 +01:00
Radomir Dopieralski
37ab061f4d
docs: Update esp8266 documentation to match the code.
...
* Move the esp.status() to network module.
* Describe the wifi.isconnected() method.
* Describe esp.mac(), esp.wifi_mode(), esp.phy_mode(), esp.sleep_type(),
esp.deepsleep(), and esp.flash_id() functions.
2015-10-06 23:25:35 +01:00
Paul Sokolovsky
aaa8867d4a
modussl: SSL socket wrapper module based on axTLS.
2015-10-06 18:10:39 +03:00
Paul Sokolovsky
062bd81814
tests/basics/builtin_range: PEP8 fixes.
2015-10-05 20:02:52 +03:00
Paul Sokolovsky
f4d55c91fe
lib/axtls: Update submodule, adds .gitignore .
2015-10-04 15:55:37 +03:00
Paul Sokolovsky
326ff54649
unix: Add support for building axtls dependency lib.
2015-10-04 02:39:01 +03:00
Paul Sokolovsky
90a36942b4
lib/axtls: Add axtls git submodule, dependency of modussl.
...
From https://github.com/pfalcon/axtls , branch micropython.
2015-10-04 02:39:00 +03:00
Paul Sokolovsky
1ea4b77a9a
unix/modjni: jclass.__str__/__repr__: Return Java .toString() value.
2015-10-04 01:57:07 +03:00
Damien George
0496de26d3
py: Allow to enable inline assembler without native emitter.
2015-10-03 17:07:54 +01:00
Paul Sokolovsky
f22be4ebd9
unix/modjni: jobject.__str__/__repr__: Return Java .toString() value.
2015-10-03 08:58:46 -07:00
Damien George
34f26ea862
tests: Allow tests to pass against CPython 3.5.
...
All breaking changes going from 3.4 to 3.5 are contained in
basics/python34.py.
2015-10-02 13:01:47 +01:00