Paul Sokolovsky
f3ca8623f7
unix/modjni: Implement len() for objects with java.util.List interface.
9 years ago
Paul Sokolovsky
77020281ae
unix/modjni: call_method: Delete done local references in loop.
To avoid local ref table overflow.
9 years ago
Tom Soulanille
f1a9923308
py/objrange: Bugfix for range_subscr() when index is a slice object.
9 years ago
Tom Soulanille
2a8a564fbd
tests: Test slicing a range that does not start at zero.
9 years ago
Paul Sokolovsky
0d28a3edb9
unix/modjni: call_method: Better resource release.
9 years ago
Daniel Campora
ff736d6f6f
cc3200: WiPy SW v1.0.0 release.
9 years ago
Daniel Campora
d88d3b0b3a
tests/wipy: Skip the rtc_irq test.
9 years ago
Daniel Campora
b6bdb0dbda
cc3200: Always reset WLAN after setting the mode.
9 years ago
Daniel Campora
ed6a5b78ad
cc3200: Make auth param positional in wlan.connect.
9 years ago
Daniel Campora
d5de1bf853
tests: Skip uheapq1 test if target is WiPy.
9 years ago
Daniel Campora
eb9a3ec654
cc3200: Disable uheapq and uhashlib.
Those two are rarely used features and better to have the extra heap.
9 years ago
Daniel Campora
6143f63560
tests/wipy: Fix error in wlan test.
9 years ago
Daniel Campora
37a2015cc5
tests/wipy: Add machine module tests.
9 years ago
Daniel Campora
958e273336
tests: Skip extmod machine tests when target is WiPy.
9 years ago
Daniel Campora
c92e6a45eb
cc3200: Rename pyb module to machine.
9 years ago
Daniel Campora
0a7e4fa5ce
tests/wipy: Improve robustness of rtc_irq test.
9 years ago
Daniel Campora
8192310dad
tests/wipy: Improve robustness of time test.
9 years ago
Daniel Campora
ef369249cb
cc3200: Implement support for os.dupterm().
9 years ago
Daniel Campora
a7261ae059
cc3200/mods: Use mp_obj_get_array_fixed_n() where applicable.
9 years ago
Daniel Campora
635ef16432
cc3200/tools: Improve update script robustness.
9 years ago
Daniel Campora
57fa14b5be
cc3200: New WLAN API including test.
9 years ago
Daniel Campora
dbdcb58d64
cc3200: New irq API, affects all classes that provide the irq method.
9 years ago
Paul Sokolovsky
81d64ab939
unix/modjni: call_method(): If name doesn't match, cleanup via goto next_method.
9 years ago
Paul Sokolovsky
c0a79cc919
unix/modjni: Need to really use per-rettype Call*Method functions.
9 years ago
Paul Sokolovsky
7e18d3b6ff
unix/modjni: new_jobject(): Handle null reference.
9 years ago
Damien George
9d5e5c08ab
py/compile: Put compiler state on the C stack.
It's relatively small (between 44 and 56 bytes) and helps to reduce heap
pressure and fragmentation during compilation.
9 years ago
Damien George
5572f735b6
docs: Bump version to 1.4.6.
9 years ago
Paul Sokolovsky
e632b1fda7
unix/modjni: Factor out is_object_type().
9 years ago
stijn
941040e9e8
windows: Make mpconfigport.h up-to-date with the unix port
9 years ago
stijn
dfa915a6af
tests: Omit process output parsing in case of CalledProcessError
Adding a line-end makes the determination of skip_native fail as it compares
the output against b'CRASH' while it is in fact b'CRASH\n'
9 years ago
Damien George
fbcaf0ea18
py: Slightly simplify compile and emit of star/double-star arguments.
Saves a few bytes of code space and eliminates need for rot_two
bytecode (hence saving RAM and execution time, by a tiny bit).
9 years ago
Delio Brignoli
e6978a4e26
py: Fix call args when a stararg is followed by keyword args.
9 years ago
Vicente Olivert Riera
587914169c
unix/modffi.c: cast first to intptr_t when casting from/to pointer
This fixes errors like these ones:
modffi.c: In function 'return_ffi_value':
modffi.c:143:29: error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
const char *s = (const char *)val;
^
modffi.c:162:20: error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
return (mp_obj_t)val;
^
modffi.c: In function 'ffifunc_call':
modffi.c:358:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
values[i] = (ffi_arg)a;
^
modffi.c:373:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
values[i] = (ffi_arg)s;
^
modffi.c:381:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
values[i] = (ffi_arg)bufinfo.buf;
^
modffi.c:384:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
values[i] = (ffi_arg)p->func;
^
These errors can be highlighted when building micropython from MIPS64
n32 because ffi_arg is 64-bit wide and the pointers on MIPS64 n32 are
32-bit wide, so it's trying to case an integer to a pointer (or
vice-versa) of a different size. We should cast first the pointer (or the
integer) to a pointer sized integer (intptr_t) to fix that problem.
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
9 years ago
Paul Sokolovsky
ed22e9ba3e
unix/modjni: Move type analysis logic to new_jobject(), for reuse.
9 years ago
stijn
dcbe936c50
windows/msvc: Exclude modjni from build.
9 years ago
Daniel Campora
dffa9f6da6
cc3200: New SD and RTC API plus os and time modules' extensions.
9 years ago
Daniel Campora
660f8613fd
tests/wipy: Remove unneeded dependencies to pyb.Pin.
9 years ago
Daniel Campora
06d93b36f9
cc3200: Correct safe boot level 1 blinking period.
9 years ago
Paul Sokolovsky
b2d880d749
unix/modjni: Support for subscripting of Java lists (r/o so far).
9 years ago
Paul Sokolovsky
6196aa45ed
unix/modjni: jvalue2py: Handle boolean.
9 years ago
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
9 years ago
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
9 years ago
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.
9 years ago
Paul Sokolovsky
1e9d8e110b
unix/modjni: py2jvalue: Pass jobject's down to Java.
So far, no signature check is done (TODO).
9 years ago
Damien George
b0c08c8c17
drivers/nrf24l01: Fix SPI phase setting to match specs of nRF chip.
Addresses issue #1466 .
9 years ago
Paul Sokolovsky
011c7f5718
unix/modjni: py2jvalue: Handle both int and long java types (with TODO for long).
9 years ago
Paul Sokolovsky
1cb5de2cd5
unix/modjni: jvalue2py: Handle class-containing jvalues.
9 years ago
Daniel Campora
861fad5819
docs: Adapt WiPy's ADC doc and quickref to the new API.
9 years ago
Daniel Campora
22b4c28f85
cc3200: New ADC API.
9 years ago
Daniel Campora
0e52d9860a
tests/wipy: Improve I2C tests.
9 years ago