iabdalkader
4f2a10bfc9
rp2/machine_uart: Allow overriding default machine UART pins.
2021-07-19 23:14:02 +10:00
iabdalkader
8599f7a68d
rp2/machine_uart: Add hardware flow control support.
2021-07-19 23:13:57 +10:00
microDev
3c25d8e2a0
Merge pull request #5013 from DavePutz/issue_5012
...
Issue #5012 - RP2040 moved globals to PulseIn object to fix multiple instances
2021-07-19 00:21:55 +05:30
root
43275e0b0d
Made suggested changes (mostly)
2021-07-18 12:00:37 -05:00
Damien George
9f71a11d3f
tools/ci.sh: Build GENERIC_C3 board as part of esp32 CI.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18 23:58:24 +10:00
Damien George
c77225ae5b
esp32/boards/GENERIC_C3: Add generic C3-based board.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18 23:58:24 +10:00
Damien George
6823514845
esp32: Add initial support for ESP32C3 SoCs.
...
Supported features for this SoC are:
- UART REPL, filesystem
- Pin, ADC, PWM, SoftI2C, SoftSPI, Timer, RTC
- OneWire, DHT, NeoPixel
- RMT
- WiFi, Bluetooth
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18 23:58:24 +10:00
Damien George
59dbbe9be7
esp32: Fix use of mp_int_t, size_t and uintptr_t.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18 23:58:16 +10:00
microDev
40b085746a
Merge pull request #5006 from tannewt/scanentry_match_all
...
ScanEntry.matches() kwarg all -> match_all
2021-07-18 09:45:58 +05:30
Dan Halbert
2afd3c2d6b
Merge pull request #5015 from dhalbert/fix-build.yml-stub-upload
...
fix stubs upload conditionals
2021-07-17 22:59:40 -04:00
Damien George
0fc0ccabec
esp32/machine_i2s: Add MICROPY_PY_MACHINE_I2S option, enable by default.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18 12:31:13 +10:00
Damien George
1f9243f8d4
esp32/machine_dac: Add MICROPY_PY_MACHINE_DAC option, enable by default.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18 12:11:10 +10:00
David P
d3f6ce7dc3
nrf/modules: Replace master/slave with controller/peripheral in SPI.
...
Also remove mistaken usage of MASTER/SLAVE constants in comments.
2021-07-18 11:23:41 +10:00
David P
f365025c9c
stm32: Replace master/slave with controller/peripheral in I2C and SPI.
...
Replace "master" with "controller" and "slave" with "peripheral" in
comments, errors, and debug messages.
Add CONTROLLER and PERIPHERAL constants to pyb.SPI and pyb.I2C classes;
retain MASTER and SLAVE constants for backward compatiblity.
2021-07-18 11:23:41 +10:00
David P
fdd5b18133
docs: Replace master/slave with controller/peripheral in I2C and SPI.
...
See https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names
2021-07-18 11:19:44 +10:00
microDev
9ac607dffa
update run-mode
...
- add microcontroller.RunMode.UF2
- add UF2, NORMAL and BOOTLOADER run-modes to esp32s2
2021-07-18 00:00:58 +05:30
Damien George
cbc8d5b61f
tools/ci.sh: Build unix dev variant as part of macOS CI.
...
To test BTstack build on macOS.
Signed-off-by: Damien George <damien@micropython.org>
2021-07-17 23:55:25 +10:00
Damien George
74db526cf0
extmod/btstack/btstack.mk: Use -Wno-implicit-fallthrough, not =0.
...
In 2ae3c890bd923b4c39bba3d2e2f2d75eca5dcc06, -Wimplicit-fallthrough=0 was
added to get the build to pass. This option is equivalent to
-Wno-implicit-fallthrough, and the latter is compatible with clang (while
the former is not).
Fixes issue #7546 .
Signed-off-by: Damien George <damien@micropython.org>
2021-07-17 23:55:25 +10:00
Jim Mussared
12e3fcc785
extmod/nimble: Fix leak in l2cap_send if send-while-stalled.
...
A correctly-behaved application shouldn't do this, but in the
case where the channel is stalled, there's still enough room
in the mbuf pool, then we'll fail the send (BLE_HS_EBUSY) so
the mbuf needs to be freed.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-07-17 23:38:39 +10:00
David Lechner
8758504f0f
extmod/moduselect: Conditionally compile select().
...
This adds #if MICROPY_PY_USELECT_SELECT around the uselect.select()
function. According to the docs, this function is only for CPython
compatibility and should not normally be used. So we can disable it
and save a few bytes of flash space where possible.
Signed-off-by: David Lechner <david@pybricks.com>
2021-07-17 23:32:39 +10:00
Dan Halbert
f748bf0c67
fix stubs upload conditionals
2021-07-16 23:26:19 -04:00
Dan Halbert
50a8e995ff
Merge pull request #5007 from tannewt/samd_pin_reset
...
Remove MICROPY_PORT_* macros used for never reset
2021-07-16 18:29:30 -04:00
root
1c80696746
iFix formatting
2021-07-16 17:18:06 -05:00
Dan Halbert
1d1b80f4c1
Merge pull request #5011 from dhalbert/keypad-eventqueue-typos
...
Correct type name for EventQueue; EventQueue.overflowed not accessible
2021-07-16 18:07:19 -04:00
Dan Halbert
8e0eb2fd63
Merge pull request #5010 from kattni/pixelbuf-rename
...
Rename _pixelbuf to adafruit_pixelbuf, alias.
2021-07-16 16:59:47 -04:00
root
588a19a1ab
Issue #5012 - Moved globals to PulseIn object to fix multiple instances
2021-07-16 15:59:08 -05:00
Dan Halbert
e958757e15
fix xtensa cache key
2021-07-16 16:58:04 -04:00
Kattni Rembor
11b5873235
Update idf key.
2021-07-16 14:59:30 -04:00
Dan Halbert
e785ddfd6f
Correct type name for EventQueue; EventQueue.overflowed not accessible
2021-07-16 14:51:58 -04:00
Scott Shawcroft
bba611336c
Merge pull request #4964 from DavePutz/issue_4937
...
Fix for issue #4937 - Implement minimum PulseOut time
2021-07-16 11:29:32 -07:00
Scott Shawcroft
e042d54702
Fix three boards and xtensa cache key
2021-07-16 11:15:05 -07:00
Kattni Rembor
c21e16162c
Remove _ from common_hal__adafruit_pixelbuf.
2021-07-16 14:08:39 -04:00
Kattni Rembor
dc2907ac1b
Rename _pixelbuf to adafruit_pixelbuf, alias.
2021-07-16 13:31:40 -04:00
Jonathan Hogg
8be29b9b1b
esp32/machine_hw_spi: Use a 2 item SPI queue for long transfers.
...
Using a 2-item transaction queue instead of 1 allows long transfers to
be executed with the minimum inter-transaction delay. Limit maximum
transaction length to ensure an integer multiple of the SPI `bits`
setting are transferred. Fixes #7511 .
2021-07-16 16:12:45 +01:00
Jonathan Hogg
eb3029c669
esp32/machine_spi: Calculate actual attained baudrate.
...
Calculate the actual baudrate that the hardware is capable of achieving
and remember it so that printing the SPI object will show this. Fixes
#7530 .
2021-07-16 23:05:30 +10:00
root
eebddbb16d
Change min pulse calculation
2021-07-15 21:27:23 -05:00
Scott Shawcroft
ca2cb9af2b
Remove MICROPY_PORT_* macros used for never reset
...
Now we use never_reset which is generally more correct and easier
to get right.
Fixes #5001 and fixes #4997
2021-07-15 16:20:04 -07:00
Scott Shawcroft
448597b4a0
ScanEntry.matches() kwarg all -> match_all
...
Related to #3007
2021-07-15 14:36:57 -07:00
Scott Shawcroft
c16f559574
Merge pull request #4907 from jepler/refine-stubs
...
refine stubs-building procedure
2021-07-15 12:11:58 -07:00
Dan Halbert
698a392cf1
Merge pull request #4762 from Neradoc/small-timestamps-if-epoch-2000
...
time.localtime: low timestamps when epoch is 2000
2021-07-15 15:08:09 -04:00
Jeff Epler
e528d8dac3
Merge pull request #5002 from tannewt/microbitv2
...
Create first BLE-only board, Micro:Bit v2
2021-07-15 14:02:35 -05:00
Jeff Epler
0bb21c7793
Merge pull request #5003 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2021-07-15 13:59:37 -05:00
Scott Shawcroft
4d3a355f0a
Tweak blink and treat SWD reset like reset button
2021-07-14 16:45:47 -07:00
Scott Shawcroft
e0919c4b9c
Install intelhex on windows CI
2021-07-14 10:47:03 -07:00
Hosted Weblate
fe12847afc
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-07-14 19:30:06 +02:00
Lucian Copeland
e3bc800bbc
Merge pull request #4999 from hierophect/esp-timer-leak
...
ESP32S2: Fix PWM timer leak and variable frequency conflicts
2021-07-14 13:29:56 -04:00
Scott Shawcroft
0fadf028ef
Create first BLE-only board, Micro:Bit v2
...
This fixes build issues with USB off, tweaks the README to allow
for BLE-only boards and adds the Micro:Bit v2 definition.
Fixes #4546
2021-07-14 09:55:51 -07:00
robert-hh
98c5703027
mimxrt/machine_i2c: Add hardware-based machine.I2C to machine module.
...
It uses non-blocking transfer of data. Advantage over SoftI2C:
- Higher data rate up to ~3 MHZ.
- Full protocol support.
2021-07-15 00:36:31 +10:00
Damien George
06277a9169
mimxrt/machine_led: Use mp_raise_msg_varg helper.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-15 00:12:41 +10:00
Damien George
70b8e1d1f5
py/obj: Fix formatting of comment for mp_obj_is_integer.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-15 00:12:41 +10:00