Paul Sokolovsky
ed22e9ba3e
unix/modjni: Move type analysis logic to new_jobject(), for reuse.
2015-09-22 17:02:17 -07:00
stijn
dcbe936c50
windows/msvc: Exclude modjni from build.
2015-09-22 11:07:03 +01:00
Daniel Campora
dffa9f6da6
cc3200: New SD and RTC API plus os and time modules' extensions.
2015-09-21 22:30:32 +02:00
Daniel Campora
660f8613fd
tests/wipy: Remove unneeded dependencies to pyb.Pin.
2015-09-21 22:30:11 +02:00
Daniel Campora
06d93b36f9
cc3200: Correct safe boot level 1 blinking period.
2015-09-21 22:30:04 +02:00
Paul Sokolovsky
b2d880d749
unix/modjni: Support for subscripting of Java lists (r/o so far).
2015-09-21 12:02:54 -07:00
Paul Sokolovsky
6196aa45ed
unix/modjni: jvalue2py: Handle boolean.
2015-09-20 00:36:51 +03:00
Alex March
15018291b2
tests: Add escaped quotes tests for REPL.
...
Test possible combinations of single and double quotes with escaped
quotes and parenthesis with and without function calls in REPL.
Covers: #1419
2015-09-19 14:06:23 +01:00
Alex March
bfb272b9e0
py/repl: Treat escaped quotes correctly in REPL continuation.
...
Escaped quotes are now recognised correctly in REPL when used
inside normal quotes.
Fixes : #1419
2015-09-19 14:06:23 +01:00
Alex March
c0035d1694
unix: Use MICROPY_HAL_H macro for header inclusion.
...
Follow the same format as other ports using the macro to include
the HAL header.
2015-09-19 14:03:57 +01:00
Paul Sokolovsky
1e9d8e110b
unix/modjni: py2jvalue: Pass jobject's down to Java.
...
So far, no signature check is done (TODO).
2015-09-19 01:05:25 +03:00
Damien George
b0c08c8c17
drivers/nrf24l01: Fix SPI phase setting to match specs of nRF chip.
...
Addresses issue #1466 .
2015-09-18 13:00:12 +00:00
Paul Sokolovsky
011c7f5718
unix/modjni: py2jvalue: Handle both int and long java types (with TODO for long).
2015-09-18 13:21:21 +03:00
Paul Sokolovsky
1cb5de2cd5
unix/modjni: jvalue2py: Handle class-containing jvalues.
2015-09-17 13:31:40 +03:00
Daniel Campora
861fad5819
docs: Adapt WiPy's ADC doc and quickref to the new API.
2015-09-16 10:10:40 +02:00
Daniel Campora
22b4c28f85
cc3200: New ADC API.
2015-09-16 10:10:38 +02:00
Daniel Campora
0e52d9860a
tests/wipy: Improve I2C tests.
2015-09-16 10:10:35 +02:00
Daniel Campora
aba75e1233
cc3200: New SPI API.
2015-09-16 10:10:33 +02:00
Daniel Campora
624cdeacc4
docs/wipy: Add pins to the I2C constructor.
2015-09-16 10:10:31 +02:00
Daniel Campora
41f6948545
cc3200: New WDT API.
2015-09-16 10:10:29 +02:00
Daniel Campora
8332044f75
cc3200: Add UART.ODD and UART.EVEN to select parity.
2015-09-16 10:10:26 +02:00
Daniel Campora
d5ec336eef
cc3200: Replace Pin.PULL_NONE with None.
2015-09-16 10:10:24 +02:00
Daniel Campora
f38d16483a
docs: Update I2C and UART docs to match the new API.
2015-09-16 10:10:22 +02:00
Daniel Campora
e77abc261b
cc3200: Default peripheral ID support on I2C.
2015-09-16 10:10:19 +02:00
Daniel Campora
c69642a460
cc3200: Increase error led blynk period to 100ms
2015-09-16 10:10:17 +02:00
Daniel Campora
3c4b78e166
cc3200: Keep overwriting the same image on sequential updates.
2015-09-16 10:10:15 +02:00
Daniel Campora
7d6b6f6681
cc3200: Make UART choose default id when not given.
2015-09-16 10:10:13 +02:00
Daniel Campora
4ba9b34012
cc3200: Reduce servers cycle time to improve FTP transfer rate.
2015-09-16 10:10:11 +02:00
Paul Sokolovsky
cb6cf5e257
unix/modjni: Add env() module function.
...
Useful to load native method libraries not loaded by VM (as happens on
Android).
2015-09-16 01:10:09 +03:00
Tom Soulanille
661d9d1901
py/objslice: Fix indent.
2015-09-15 22:46:30 +01:00
Tom Soulanille
aeb62f9ae3
py/objslice: Make slice attributes (start/stop/step) readable.
...
Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
2015-09-15 21:59:20 +01:00
Damien George
d80174d7c3
stmhal: Use polling, not DMA, for 1 byte SPI transfers.
...
There is an issue sending 1 byte on the SPI bus using DMA, but it only
occurs when the transmit is done for the first time after initialising
the SPI and DMA peripherals. All other cases (sending 2 or more bytes,
doing send_recv, doing recv first) work okay. We sidestep this issue by
using polling (not DMA) for all 1 byte transfers. This is fine because
a 1 byte transfer can't be interrupted and doesn't need the benefits of
DMA (and using polling for this case is more efficient).
Resolves #1456 .
2015-09-15 20:45:37 +01:00
Bill Owens
e2bfa471fa
esp8266: Added wlan.isconnected() to maintain parity with other ports.
2015-09-15 20:07:50 +03:00
Tom Soulanille
04fffe6562
tests/README: Explain how tests get skipped
2015-09-15 20:05:05 +03:00
Damien George
0d6b2341b8
pic16bit: Add basic unistd.h file since it's not provided by tool chain.
2015-09-15 16:24:13 +01:00
Damien George
8b4fb4fe14
py/mpz: Fix calculation of max digit storage for mpz; fix sys.maxsize.
...
When creating constant mpz's, the length of the mpz must be exactly how
many digits are used (not allocated) otherwise these numbers are not
compatible with dynamically allocated numbers.
Addresses issue #1448 .
2015-09-15 16:15:57 +01:00
Paul Sokolovsky
b230a86d33
unix/modjni: Return any object type value as a jobject.
2015-09-15 14:07:39 +03:00
Paul Sokolovsky
5167332131
unix/modjni: Return Java null as Python None.
2015-09-14 00:15:35 +03:00
Paul Sokolovsky
7a4b10cc4c
unix/modjni: Support static methods.
2015-09-14 00:12:47 +03:00
Paul Sokolovsky
a5deadf082
tools: Upgrade upip to 0.5.8.
...
Adds support for ussl module (which is experimental and not fully
implemented yet itself).
2015-09-13 09:49:09 +03:00
Paul Sokolovsky
26a9b4d48e
unix/modjni: Factor out new_jobject(), jvalue2py() functions.
2015-09-13 01:27:47 +03:00
Tom Soulanille
7731edf2f5
stmhal: Add "opt" arg to pyb.main, to set mp_optimise_value.
...
Use this to set the global optimisation value when executing the main
script (and all scripts it imports).
2015-09-12 22:53:54 +01:00
Damien George
229b908d2e
esp8266: Remove "time" command from deploy target.
2015-09-12 22:22:30 +01:00
Damien George
3ca84026db
unix: Enable REPL auto-indent.
2015-09-12 22:09:18 +01:00
Damien George
0af73014cc
lib/mp-readline: Add auto-indent support.
...
4 spaces are added at start of line to match previous indent, and if
previous line ended in colon.
Backspace deletes 4 space if only spaces begin a line.
Configurable via MICROPY_REPL_AUTO_INDENT. Disabled by default.
2015-09-12 22:07:23 +01:00
Paul Sokolovsky
4e7bde8c9e
unix/modjni: Factor out py2jvalue() function.
2015-09-12 00:20:06 +03:00
Dave Hylands
9d6128acdc
stmhal: fix single precision float printing error
...
Fixes #1435 .
2015-09-11 23:09:50 +03:00
Paul Sokolovsky
e79c6b6312
unix/modjni: "jni" module to interface to JNI-compliant JavaVM.
...
This includes Android Dalvik VM for example.
Example usage:
import jni
System = jni.cls("java/lang/System")
System.out.println("Hello, Java!")
2015-09-11 21:38:57 +03:00
Daniel Campora
f352fe82a5
tests/wipy: Add I2C tests.
2015-09-10 08:00:59 +02:00
Daniel Campora
d265df589e
tests/wipy: Disable the REPL on UART before running the UART test.
2015-09-10 08:00:53 +02:00