summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-09-27cc3200: New irq API, affects all classes that provide the irq method.Daniel Campora
2015-09-26unix/modjni: call_method(): If name doesn't match, cleanup via goto next_method.Paul Sokolovsky
2015-09-26unix/modjni: Need to really use per-rettype Call*Method functions.Paul Sokolovsky
2015-09-24unix/modjni: new_jobject(): Handle null reference.Paul Sokolovsky
2015-09-24py/compile: Put compiler state on the C stack.Damien George
It's relatively small (between 44 and 56 bytes) and helps to reduce heap pressure and fragmentation during compilation.
2015-09-23docs: Bump version to 1.4.6.v1.4.6Damien George
2015-09-23unix/modjni: Factor out is_object_type().Paul Sokolovsky
2015-09-23windows: Make mpconfigport.h up-to-date with the unix portstijn
2015-09-23tests: Omit process output parsing in case of CalledProcessErrorstijn
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'
2015-09-23py: Slightly simplify compile and emit of star/double-star arguments.Damien George
Saves a few bytes of code space and eliminates need for rot_two bytecode (hence saving RAM and execution time, by a tiny bit).
2015-09-23py: Fix call args when a stararg is followed by keyword args.Delio Brignoli
2015-09-22unix/modffi.c: cast first to intptr_t when casting from/to pointerVicente Olivert Riera
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>
2015-09-22unix/modjni: Move type analysis logic to new_jobject(), for reuse.Paul Sokolovsky
2015-09-22windows/msvc: Exclude modjni from build.stijn
2015-09-21cc3200: New SD and RTC API plus os and time modules' extensions.Daniel Campora
2015-09-21tests/wipy: Remove unneeded dependencies to pyb.Pin.Daniel Campora
2015-09-21cc3200: Correct safe boot level 1 blinking period.Daniel Campora
2015-09-21unix/modjni: Support for subscripting of Java lists (r/o so far).Paul Sokolovsky
2015-09-20unix/modjni: jvalue2py: Handle boolean.Paul Sokolovsky
2015-09-19tests: Add escaped quotes tests for REPL.Alex March
Test possible combinations of single and double quotes with escaped quotes and parenthesis with and without function calls in REPL. Covers: #1419
2015-09-19py/repl: Treat escaped quotes correctly in REPL continuation.Alex March
Escaped quotes are now recognised correctly in REPL when used inside normal quotes. Fixes: #1419
2015-09-19unix: Use MICROPY_HAL_H macro for header inclusion.Alex March
Follow the same format as other ports using the macro to include the HAL header.
2015-09-19unix/modjni: py2jvalue: Pass jobject's down to Java.Paul Sokolovsky
So far, no signature check is done (TODO).
2015-09-18drivers/nrf24l01: Fix SPI phase setting to match specs of nRF chip.Damien George
Addresses issue #1466.
2015-09-18unix/modjni: py2jvalue: Handle both int and long java types (with TODO for ↵Paul Sokolovsky
long).
2015-09-17unix/modjni: jvalue2py: Handle class-containing jvalues.Paul Sokolovsky
2015-09-16docs: Adapt WiPy's ADC doc and quickref to the new API.Daniel Campora
2015-09-16cc3200: New ADC API.Daniel Campora
2015-09-16tests/wipy: Improve I2C tests.Daniel Campora
2015-09-16cc3200: New SPI API.Daniel Campora
2015-09-16docs/wipy: Add pins to the I2C constructor.Daniel Campora
2015-09-16cc3200: New WDT API.Daniel Campora
2015-09-16cc3200: Add UART.ODD and UART.EVEN to select parity.Daniel Campora
2015-09-16cc3200: Replace Pin.PULL_NONE with None.Daniel Campora
2015-09-16docs: Update I2C and UART docs to match the new API.Daniel Campora
2015-09-16cc3200: Default peripheral ID support on I2C.Daniel Campora
2015-09-16cc3200: Increase error led blynk period to 100msDaniel Campora
2015-09-16cc3200: Keep overwriting the same image on sequential updates.Daniel Campora
2015-09-16cc3200: Make UART choose default id when not given.Daniel Campora
2015-09-16cc3200: Reduce servers cycle time to improve FTP transfer rate.Daniel Campora
2015-09-16unix/modjni: Add env() module function.Paul Sokolovsky
Useful to load native method libraries not loaded by VM (as happens on Android).
2015-09-15py/objslice: Fix indent.Tom Soulanille
2015-09-15py/objslice: Make slice attributes (start/stop/step) readable.Tom Soulanille
Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
2015-09-15stmhal: Use polling, not DMA, for 1 byte SPI transfers.Damien George
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-15esp8266: Added wlan.isconnected() to maintain parity with other ports.Bill Owens
2015-09-15tests/README: Explain how tests get skippedTom Soulanille
2015-09-15pic16bit: Add basic unistd.h file since it's not provided by tool chain.Damien George
2015-09-15py/mpz: Fix calculation of max digit storage for mpz; fix sys.maxsize.Damien George
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-15unix/modjni: Return any object type value as a jobject.Paul Sokolovsky
2015-09-14unix/modjni: Return Java null as Python None.Paul Sokolovsky