Nathan Young
04ce6a6e8c
Check jmp_pin specified when JMP PIN opcodes used
2021-07-23 13:35:20 +02:00
microDev
e790ff7327
Merge pull request #5036 from tannewt/esp_oserror0
...
Remove OSError(0) and old network modules
2021-07-23 11:00:56 +05:30
Damien George
14b853eae0
minimal/Makefile: Add support for building with user C modules.
...
Fixes issue #5750 .
Signed-off-by: Damien George <damien@micropython.org>
2021-07-23 12:02:03 +10:00
Scott Shawcroft
beda1f7998
Merge pull request #5037 from hierophect/getprevtraceback
...
Add supervisor.get_previous_traceback() function.
2021-07-22 17:00:14 -07:00
Lucian Copeland
ace04ef600
Formatting fixes
2021-07-22 12:57:10 -04:00
Nathan Young
8221a12cf6
Added support for specifying the JMP pin (RP2 PIO)
2021-07-22 18:39:04 +02:00
Sashkoiv
753b08cae6
stm32/boards/NUCLEO_F446RE: Enable CAN bus support.
2021-07-23 00:06:13 +10:00
Roberto Colistete Jr
b099db4426
esp8266/Makefile: Add more libm files to build.
...
Allows MICROPY_PY_MATH_SPECIAL_FUNCTIONS to be enabled, and for ulab to be
built as a user C module.
2021-07-22 23:55:31 +10:00
Damien George
a5ac3d5645
samd: Add support for building with user C modules.
...
Fixes issue #7545 .
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22 22:22:03 +10:00
iabdalkader
7649f5fbd2
stm32/sdram: Make SDRAM test cache aware, and optional failure with msg.
...
* Make SDRAM test cache-aware for newer MCUs.
* Use the defined data bus width (instead of the fixed 8-bits).
* Allow optional failure on error with verbose error messages.
* Test speed is now inverted (test accepts exhaustive instead fast).
2021-07-22 16:47:49 +10:00
Scott Shawcroft
f84cb94819
Remove OSError(0) and old network modules
...
The newer modules are `socketpool` and `ssl`.
Fixes #3924 , related to #2021 , closes #1880 , closes #2273 , closes #2274
2021-07-21 17:33:40 -07:00
Scott Shawcroft
109bd2886b
Fix Arduino RP2040 flash size
...
For RP2040 boards, we now change the default flash size based on
the configured flash. We will still try to read the size from the
flash first.
Fixes #4874
2021-07-21 11:02:55 -07:00
Scott Shawcroft
8723a0335f
Merge pull request #5032 from DavePutz/multi_pulseout
...
Moved global variables to support multiple RP2040 PulseOuts
2021-07-21 10:26:17 -07:00
Scott Shawcroft
e14923028f
Merge pull request #5030 from dhalbert/update-to-raspberrypi-pico-sdk-1.2.0
...
Update pico-sdk to 1.2.0, using raspberrypi repo
2021-07-21 08:14:13 -07:00
root
b2d6203c63
fix formatting
2021-07-21 10:05:09 -05:00
root
0559fcd1c0
Moved global variables to support multiple PulseOuts
2021-07-21 09:52:17 -05:00
Damien George
6214fa3f9e
esp32/mphalport: Always yield at least once in delay_ms.
...
This helps the OS switch to and give other threads processing time during
the sleep. It also ensures that pending events are handled, even when
sleeping for 0ms.
Fixes issue #5344 .
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22 00:20:53 +10:00
Damien George
2cfbe5bc0f
esp32/modmachine: Release the GIL in machine.idle().
...
So that other threads get a chance to run when taskYIELD() is called.
See issue #5344 .
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22 00:17:59 +10:00
Josh Lloyd
6bc50c4fa9
stm32/systick: Always POLL_HOOK when delaying for milliseconds.
...
Call MICROPY_EVENT_POLL_HOOK even on very short delays so that busy loops
that call sleep_ms still yield to events and other threads.
See related issue #5344 .
2021-07-22 00:15:36 +10:00
microDev
68070318f0
Merge pull request #5026 from tannewt/samd_uart
...
Fix crash when UART construct fails
2021-07-21 08:34:50 +05:30
Scott Shawcroft
db0adf1253
Merge pull request #5025 from DavePutz/issue_5016
...
Turn off PWM pin during PulseOut construct
2021-07-20 17:25:10 -07:00
Scott Shawcroft
fece0fb432
Fix crash when UART construct fails
...
After the script stops with the exception thrown the final gc_sweep
will call any finalizers and they usually call deinit. deinit on
invalid objects can wreak havoc by changing random memory or
(hopefully) crashing. This fixes ensures the object is deinited
until initialization succeeds and the object is valid.
Do the same fix for I2C and SPI too.
Fixes #4700 and fixes #5005
2021-07-20 17:15:19 -07:00
root
8fe4fa0114
Turn off PWN pin during PulseOut construct
2021-07-20 17:17:41 -05:00
Dan Halbert
0293ec261a
Update pico-sdk to 1.2.0, using raspberrypi repo
2021-07-20 17:31:29 -04:00
Dan Halbert
ce7301527a
Merge pull request #5024 from tannewt/rp2_ble_wait
...
Don't blink blue on non-BLE workflow boards
2021-07-19 23:51:27 -04:00
Scott Shawcroft
f8290e746b
Don't blink blue on non-BLE workflow boards
...
This includes any boards that have _bleio implemented via HCI.
Fixes #4969
2021-07-19 18:40:37 -07:00
Dan Halbert
5e773b863f
Merge pull request #4793 from kmatch98/funhouse_spi_speed
...
reduce SPI display baudrate from 60 MHz to 5 MHz to eliminate display glitch
2021-07-19 18:24:48 -04:00
Dan Halbert
128bedae7e
Merge pull request #5019 from DavePutz/issue_5016
...
Ensure RP2040 pin is left low after PulseOut
2021-07-19 17:57:42 -04:00
Dan Halbert
d2f2afe57b
Merge pull request #4925 from microDev1/update-run-mode
...
Add RunMode.UF2 and update esp32s2 run-modes
2021-07-19 16:37:46 -04:00
root
8d79d4e5ee
Ensure pin is left low after PulseOut
2021-07-19 11:46:09 -05:00
Mike Causer
cc77b30639
rp2/machine_spi: Allow boards to configure SPI pins using new macros.
2021-07-19 23:16:11 +10:00
Mike Causer
79da7757cc
rp2/machine_i2c: Allow boards to configure I2C pins using new macros.
2021-07-19 23:16:11 +10:00
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
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
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
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
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
root
588a19a1ab
Issue #5012 - Moved globals to PulseIn object to fix multiple instances
2021-07-16 15:59:08 -05: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
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