Abilio Marques
525a920ca5
unix/modffi: Fix conversion between Python integers and ffi types.
...
This commit fixes the following problems converting to/from Python integers
and ffi types:
- integers of 8 and 16 bits not working on big endian
- integers of 64 bits not working on 32 bits architectures
- unsigned returns were converted to signed Python integers
Fixes issue #7269 .
2021-06-08 13:06:17 +10:00
Limor "Ladyada" Fried
c1c101ca2d
Merge pull request #4864 from ladyada/main
...
macropad rev B definion and fix for SH110x addressing
2021-06-07 21:59:56 -04:00
lady ada
467a4e7664
fix comment
2021-06-07 19:51:57 -04:00
lady ada
b39dd84560
move the col/row offsets to the top so oleds can take advantage of em
2021-06-07 19:43:49 -04:00
Scott Shawcroft
12499d6e26
Merge pull request #4860 from microDev1/update-readme
...
Update readme
2021-06-07 15:08:23 -07:00
Lucian Copeland
b6a268fca4
Further deinit additions
2021-06-07 14:13:59 -04:00
Lucian Copeland
63c1791d87
Merge remote-tracking branch 'upstream/main' into rp2040-alarms
2021-06-07 14:11:41 -04:00
Lucian Copeland
f2149edbd2
Add deinit to new boards
2021-06-07 12:48:12 -04:00
lady ada
2ff9e9766f
handclang
2021-06-07 12:39:59 -04:00
Limor "Ladyada" Fried
c4f685aab1
Merge pull request #4865 from ZodiusInfuser/pimoroni_boards
...
Added definition for upcoming Pimoroni RP2040 board
2021-06-07 11:13:01 -04:00
lady ada
3890271f19
turn off all neopix when booting
2021-06-06 18:30:17 -04:00
lady ada
8f1c25c8ae
fix SH110x mode, the SH1107 is actually column not row mode BUT the SD1107 module we use is vertical orientation (confusing!) so row/col are NOT swapped. we will have to fix the SH1107 driver to match. this fix required for SH1106 (which uses the same page mode commands but ISNT rotated)
2021-06-06 18:25:40 -04:00
lady ada
01195c2089
update to rev B
2021-06-06 15:57:41 -04:00
foamyguy
abfeb69454
remove hashes from version. upload to pypi in same step as S3
2021-06-06 10:14:02 -05:00
Damien George
20a8f4f7ec
tests/unix: Add ffi test for integer types.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-06-06 22:52:25 +10:00
Damien George
7842085434
tests/multi_bluetooth/ble_gap_advertise.py: Allow to work without set.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-06-06 21:58:07 +10:00
Damien George
da8e47da21
tests/run-multitests.py: Allow to work without sys.stdout on target.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-06-06 21:58:07 +10:00
Damien George
d00523ba0c
zephyr/boards: Enable ubluetooth on nucleo_wb55rg board.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-06-06 21:57:44 +10:00
Damien George
80e79a777d
zephyr: Add initial ubluetooth module integration.
...
Currently only advertising and scanning are supported, using the ring
buffer for events (ie not synchronous events at this stage).
The ble_gap_advertise.py multi-test passes (tested on a nucleo_wb55rg
board).
Signed-off-by: Damien George <damien@micropython.org>
2021-06-06 21:57:06 +10:00
Maureen Helm
5cb2ade65b
zephyr: Update to Zephyr v2.6.0.
...
Updates the zephyr port build instructions and CI to use the latest
zephyr release tag.
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-06-06 20:17:42 +10:00
Maureen Helm
3331b1811d
zephyr: Disable CONFIG_NET_SOCKETS_POSIX_NAMES.
...
Zephyr's default value for CONFIG_NET_SOCKETS_POSIX_NAMES was changed
from false to true between Zephyr v2.5.0 and v2.6.0. This caused
conflicts in MicroPython, which uses the zsock_ prefixed functions, so
disable it.
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-06-06 20:17:42 +10:00
Maureen Helm
f17c0db5f7
zephyr: Update disk access configuration for Zephyr v2.6.0.
...
Zephyr's Kconfig symbols and defaults for SDHC/SDMMC disk drivers and
the disk access subsystem were reworked between Zephyr v2.5.0 and
v2.6.0. Update MicroPython accordingly.
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-06-06 20:17:42 +10:00
root
b2dea8ae0d
Fix for issue #3383 - SAMD51 microcontroller.cpu.voltage
2021-06-05 16:17:14 -05:00
foamyguy
5a22a0f601
upload stubs step in actions
2021-06-05 12:07:12 -05:00
microDev
0de61075e4
update readme
2021-06-05 10:15:57 +05:30
Damien George
b15e1ef5a6
github/workflows: Add workflow to build and run unix port on ARM.
...
Following on from ef16834887
, this adds a
coverage build and running of the test suite on an ARM 32-bit Linux-based
architecture.
Signed-off-by: Damien George <damien@micropython.org>
2021-06-05 11:03:09 +10:00
Damien George
36cb365cad
unix/main: Increase stack limit on ARM architectures.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-06-05 11:03:09 +10:00
Damien George
5e1d3c8b5d
py/stackctrl: Prevent unused-var warning when stack checking disabled.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-06-05 11:03:09 +10:00
Damien George
a70a4e6688
py/emitglue: Always flush caches when assigning native ARM code.
...
Prior to this commit, cache flushing for ARM native code was done only in
the assembler code asm_thumb_end_pass()/asm_arm_end_pass(), at the last
pass of the assembler. But this misses flushing the cache when loading
native code from an .mpy file, ie in persistentcode.c.
The change here makes sure the cache is always flushed/cleaned/invalidated
when assigning native code on ARM architectures.
This problem was found running tests/micropython/import_mpy_native_gc.py on
the mimxrt port.
Signed-off-by: Damien George <damien@micropython.org>
2021-06-05 11:03:04 +10:00
Scott Shawcroft
bc014cecb5
Merge pull request #4859 from DavePutz/hcsr04_fix
...
Fix pulsein pause and resume functions to handle HCSR04
2021-06-04 13:26:05 -07:00
Scott Shawcroft
e1ebc37da2
Merge pull request #4858 from EmergReanimator/main
...
resolves #4153 : Fixed build issue when CIRCUITPY_USB is off
2021-06-04 10:42:36 -07:00
Scott Shawcroft
759ec5452e
Merge pull request #4857 from dunkmann00/enable_slice_indices
...
Enable slice indices
2021-06-04 10:42:05 -07:00
Scott Shawcroft
121ea4283f
Merge pull request #4855 from jepler/update-run-tests
...
run_tests: Parallelism improvements, partial sync with micropython
2021-06-04 10:36:50 -07:00
root
57334c812e
Fix pulsein pause and resume functions to handle HCSR04
2021-06-04 12:10:41 -05:00
ZodiusInfuser
af7557b53b
Updated with final USB PID
2021-06-04 16:02:32 +01:00
EmergReanimator
f2e3231c46
resolves #4153 : Fixed build issue when CIRCUITPY_USB is off
2021-06-04 10:12:50 +02:00
George Waters
c5066efacb
Enable slice indices
2021-06-03 22:55:32 -04:00
Jeff Epler
a99eba35b8
Merge pull request #4809 from DavePutz/issue_4266
...
Fix for Issue #4266 - second PWMAudioOut interferes with the first one
2021-06-03 19:08:28 -05:00
Jeff Epler
e6fe55349d
run_tests: Parallelism improvements, partial sync with micropython
...
Take changes from https://github.com/micropython/micropython/pull/3694
(expected to be merged soon) as well as other accumulated stuff from
upstream that we want.
Leave our desired differences, including:
* silencing warnings in python3
* renaming the file descriptors returned by openpty()
* adding ulab tests
* Adding "." to the import path for skip_if
This speeds up `make test_full` and should also reduce the time in CI
a little bit.
2021-06-03 16:17:47 -05:00
Scott Shawcroft
934a14b327
Merge pull request #4853 from t-ikegami/fix_terminalio_esc_sequence
...
Fix move cursor esc sequence of terminalio to meet ANSI standard
2021-06-03 12:43:43 -07:00
leo chung
fad0efdcf2
esp32/Makefile: Fix wrong target for partition-table.bin.
...
"$(BUILD)/partition_table/partition -table.bin" is typing mistake.
Signed-off-by: leo chung <gewalalb@gmail.com>
2021-06-04 01:04:35 +10:00
robert-hh
53fea8598e
mimxrt/boards: Add board configuration files for Teensy 4.1.
...
These are at the moment more or less identical to the Teensy 4.0 files,
except for the pins.csv file and the flash size.
2021-06-04 01:00:39 +10:00
Philipp Ebensberger
b8c65b174f
mimxrt/machine_adc: Add the ADC class to the machine module.
...
This adds the machine.ADC class with the read_u16() method. make-pins.py
and supporting files are updated to generate ADC information.
2021-06-04 00:51:58 +10:00
ZodiusInfuser
6011db3aec
Added board definition
2021-06-03 15:49:23 +01:00
robert-hh
bbdc98f72e
mimxrt: Enable many Python and some extmod features.
...
Besides Python features this includes the extmod modules which make use of
the Pin module, especially machine.softSPI, machine.SoftI2C and onewire.
2021-06-04 00:38:18 +10:00
robert-hh
a40e1473dc
mimxrt: Add floating point support.
...
Since not all boards support double fp, all board specific .mk files are
affected too.
2021-06-04 00:37:22 +10:00
Jeff Epler
c7df5e9980
Merge pull request #4852 from stonehippo/sparkfun-micromod-samd51
...
Sparkfun micromod samd51
2021-06-03 07:14:25 -06:00
Tsutomu IKEGAMI
a4be61912c
Fix move cursor esc sequence of terminalio to meet ANSI standard
2021-06-03 20:40:37 +09:00
George White
9cde8a2265
MicroMod SAMD51 - correct I2C_INT pin
2021-06-03 06:05:13 -04:00
George White
26c6bd2346
MicroMod SAMD51 - correct SCL2
2021-06-03 05:39:09 -04:00