- 23 Sep, 2015 3 commits
-
-
Delio Brignoli authored
-
Vicente Olivert Riera authored
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>
-
Paul Sokolovsky authored
-
- 22 Sep, 2015 1 commit
-
-
stijn authored
-
- 21 Sep, 2015 4 commits
-
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Paul Sokolovsky authored
-
- 19 Sep, 2015 4 commits
-
-
Paul Sokolovsky authored
-
Alex March authored
Test possible combinations of single and double quotes with escaped quotes and parenthesis with and without function calls in REPL. Covers: #1419
-
Alex March authored
Escaped quotes are now recognised correctly in REPL when used inside normal quotes. Fixes: #1419
-
Alex March authored
Follow the same format as other ports using the macro to include the HAL header.
-
- 18 Sep, 2015 3 commits
-
-
Paul Sokolovsky authored
So far, no signature check is done (TODO).
-
Damien George authored
Addresses issue #1466.
-
Paul Sokolovsky authored
-
- 17 Sep, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 16 Sep, 2015 14 commits
-
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
- 15 Sep, 2015 9 commits
-
-
Paul Sokolovsky authored
Useful to load native method libraries not loaded by VM (as happens on Android).
-
Tom Soulanille authored
-
Tom Soulanille authored
Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
-
Damien George authored
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.
-
Bill Owens authored
-
Tom Soulanille authored
-
Damien George authored
-
Damien George authored
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.
-
Paul Sokolovsky authored
-
- 13 Sep, 2015 1 commit
-
-
Paul Sokolovsky authored
-