sabas1080
c1987b7311
init port hunter cat nfc!
2021-04-02 13:19:59 -06:00
Jonny Bergdahl
1afd204828
Changed error message to display the generic term 'system firmware' instead of the Nordic specific term 'soft device'
2021-04-02 20:34:37 +02:00
Jeff Epler
3451c25a75
Merge pull request #4530 from jepler/mimxrt1011-pwmio
...
mimxrt1011: pwmio: Enable basic PWMOut functionality
2021-04-02 09:29:41 -05:00
Dan Halbert
da16e4dce1
Merge pull request #4534 from UnexpectedCircuitPython/main
...
Changed some pins for TinyS2
2021-04-01 21:05:46 -04:00
Scott Shawcroft
58835e5a5b
Two small PacketBuffer fixes
...
1. Allow for ctrl-c during a write.
2. Handle disconnects when acting as a client.
2021-04-01 14:16:35 -07:00
Seon Rozenblum
a9b4e04643
Changed some pins for TinyS2
2021-04-02 08:08:02 +11:00
Jeff Epler
3f3cb79b7d
Add pinmux info for 1021 and 1062 family MCUs
2021-04-01 15:59:57 -05:00
Jeff Epler
89fc0298ce
mimxrt1011: pwmout: Add prescaler, fix duty_cycle=65535
2021-04-01 13:04:06 -05:00
Jeff Epler
489163b74e
mimxrt1011: pwmio: Enable basic PWMOut functionality
...
After this change, the following program works for me on the MIMXRT1010-EVK:
```python
import pwmio
import board
p = pwmio.PWMOut(board.D13, frequency=1_000_000, variable_frequency=True)
p.duty_cycle = 32868
while True:
pass
```
Querying and varying the duty_cycle and frequency work as well.
The lowest frequency obtainable is about 2kHz; there is an additional
divider which would allow lower PWM frequencies (I think 1kHz is important
for servos?)
Something odd happens with very low duty cycles, such as
```python
>>> p.frequency = 2000
>>> p.duty_cycle = 2
```
instead of a symmetrical waveform, it's asymmetrical. With `duty_cycle=4`,
the effect disappears. The reason for this is probably hidden in the
datasheet, but could affect servos or other things that count pulse
widths.
2021-04-01 10:06:59 -05:00
Tsutomu IKEGAMI
be50732515
Fix SD_DET pin assignment of seeduino_wio_terminal.
2021-04-01 17:09:56 +09:00
Dan Halbert
d0ba75e6dc
Merge pull request #4522 from tannewt/ble_fixup
...
Fix central pairing and crash on clear
2021-03-31 21:24:19 -04:00
Scott Shawcroft
0752bbd5fd
Fix central pairing and crash on clear
...
The list_clear would crash if we tried to clear a NULL list. (It
can happen if we haven't tried to discover any services.)
2021-03-31 16:04:04 -07:00
Dan Halbert
0e915dc3fb
Merge pull request #4518 from jepler/fix-bogus-assertion
...
mimxrt10xx: Fix bogus assertion.
2021-03-31 15:53:42 -04:00
Jeff Epler
cce8b2be07
raspberypi: Allow mpconfigboard to override additional items
...
This allows more options to be overridden to 0 in an mpconfigboard.mk.
Improved:
* FRAMEBUFFERIO, FULL_BUILD, BITOPS, PWMIO, RGBMATRIX, OTARYIO, PULSEIO, WATCHDOG
Still problematic (pull requests welcome):
* RP2PIO & NEOPIXEL_WRITE, possibly only if a status neopixel is defined
* BITBANGIO, possibly only if BUSIO is enabled
* RTC
Incidentally, with RP2PIO & NEOPIXEL_WRITE, BITBANGIO, and RTC re-enabled I get
```
323956 bytes used, 720524 bytes free in flash firmware space out of 1044480 bytes (1020.0kB).
12072 bytes used, 250072 bytes free in ram for stack and heap out of 262144 bytes (256.0kB).
```
Closes #4515
2021-03-31 09:40:48 -05:00
Jeff Epler
cb29ad0846
mimxrt10xx: Fix bogus assertion.
...
.. as noted by @d-c-d
2021-03-31 09:21:08 -05:00
Jeff Epler
71eee45a37
mimxrt1011: UART: Add additional error checking
...
.. and make the 'invalid pin' messages standard.
Closes #4502
2021-03-30 10:17:48 -05:00
Scott Shawcroft
580456719c
Merge pull request #4508 from dhalbert/rp2040-calc-sda-hold-time
...
Calculate RP2040 SDA hold time
2021-03-29 15:09:30 -07:00
Dan Halbert
840373f5c2
Merge pull request #4495 from tyomitch/patch-1
...
[ure] to save space, disable debug dumps by default
2021-03-29 16:08:56 -04:00
Dan Halbert
8e0834d74c
Calculate RP2040 SDA hold time
2021-03-29 14:40:13 -04:00
Lucian Copeland
00178ca5e0
Sleep API changes, redundancy fix
2021-03-27 14:14:57 -04:00
Jeff Epler
010232574e
Merge pull request #4468 from jepler/metro-m7-dup-pins
...
remove duplicate RX/TX pin lines
2021-03-27 12:49:33 -05:00
Limor "Ladyada" Fried
9ac8ea587a
Merge pull request #4499 from dhalbert/rp2040-lengthen-sda-tx-hold-time
...
Length RP2040 I2C SDA hold time
2021-03-26 20:21:52 -04:00
Dan Halbert
03340a3fcd
Incorporate https://github.com/adafruit/pico-sdk/pull/2
2021-03-26 18:55:45 -04:00
Artyom Skrobov
8056af8648
[synthio] add a simple MidiTrack implementation
2021-03-26 16:38:10 -04:00
Artyom Skrobov
d7dc3801ab
[ure] to save space, disable debug dumps by default
...
Has to stay enabled in unix port for the sake of tests/extmod/ure_debug.py
2021-03-26 13:24:20 -04:00
Artyom Skrobov
b40d072648
[stm] implementation of audiopwmio
...
Based on nrf PWMAudioOut by @jepler and stm PulseOut by @hierophect
Tested on a Meowbit
2021-03-26 13:18:01 -04:00
Jeff Epler
2bc61b4580
Parenthesize double-division for clarity
2021-03-26 11:01:22 -05:00
Jeff Epler
231cb1ffd9
mimxrt10xx: Use the proper "betweenTransferDelay" (et al) values
...
Set the betweenTransferDelay to the SCK low-time, to avoid long pauses
between bytes (transfers) while preventing the last SCK cycle in a byte
from being a runt pulse.
Compared to an earlier revision of this change, which just set the delays
all to zero, this doesn't break using an AirLift, which was sensitive
to the runt pulses (the simple loopback-wire test didn't detect the problem)
2021-03-26 10:54:13 -05:00
Jeff Epler
1d48054aea
mimxrt10xx: Factor out "transfer_common"
...
.. and set the "MasterPcsContinuous" flag, which removes some of the
gap between bytes of a single SPI transaction
2021-03-26 10:04:35 -05:00
Jeff Epler
ffb70a8737
Freeze ESP32SPI into mimxrt1011_evk
...
.. so that it is more conveniently like the metro m7 for my testing
2021-03-26 10:01:53 -05:00
Jeff Epler
9e110f120a
mimxrt10xx: busio: cap SPI baudrate at 30MHz per datasheet
2021-03-26 10:01:53 -05:00
Dan Halbert
155b61f027
Merge pull request #4378 from Gadgetoid/patch-remove-rp2040-i2c-bitbang
...
RP2040: Remove short-write bitbang from I2C
2021-03-25 21:01:02 -04:00
Scott Shawcroft
da4dceea15
Fix 16MB Winbond names
2021-03-25 11:37:08 -07:00
Scott Shawcroft
aec0ef3cbf
Switch devices.h to nvm.toml data
2021-03-25 09:57:18 -07:00
Scott Shawcroft
e9ceb9263e
Merge pull request #4474 from jepler/fix-spi-frequency
...
mimxrt: SPI: Set the TCR value returned by MasterBaudSetRate
2021-03-25 08:59:21 -07:00
Scott Shawcroft
f79d60b205
Use GCC @file to shorten linker command length
...
This hopefully fixes linking on Windows with cmd.exe
2021-03-24 15:03:33 -07:00
Jeff Epler
b440883fe5
mimxrt: SPI: Set the TCR value returned by MasterBaudSetRate
...
without this, the baud rate could be wrong; in my testing, it was
low by a factor of 2 when requesating baudrate=1_000_000 (1MHz).
When passing the baudrate in to LPSPI_MasterInit, the setting is made
automatically, but LPSPI_MAster_SetBaudRate just returns it via the
out-parameter tcrPrescaleValue.
2021-03-24 13:33:21 -05:00
Jeff Epler
5314fddca0
remove duplicate RX/TX pin lines
2021-03-23 16:04:23 -05:00
Dan Halbert
c81007afb0
Merge pull request #4446 from tannewt/rp2040_flash
...
Switch RP2040 flash settings to nvm.toml
2021-03-23 15:18:29 -04:00
felixerdy
cde659651b
add brown out detect level
2021-03-23 19:17:45 +01:00
Lucian Copeland
278d53c512
Merge pull request #4465 from anecdata/udp_server
...
swap recvfrom_into() port byte-order
2021-03-23 13:48:39 -04:00
Scott Shawcroft
36edc4bb89
Improve Winbond naming and correct board settings
2021-03-23 09:06:48 -07:00
anecdata
c106b432c5
swap recvfrom_into() port byte-order
2021-03-22 20:03:26 -05:00
Scott Shawcroft
7867632a81
Merge remote-tracking branch 'adafruit/main' into rp2040_flash
2021-03-22 15:29:43 -07:00
Scott Shawcroft
f200e6a21e
Fix doc build and address feedback
2021-03-22 15:24:27 -07:00
lady ada
36ae69ab6f
qtpy is more of a button than a switch! add itsybitsy rev C files
2021-03-21 18:44:32 -04:00
lady ada
ebd6011633
add USBBOOT switch, move RX pin, re-enable UART (tested)
2021-03-21 14:58:18 -04:00
Limor "Ladyada" Fried
4b42932188
Merge pull request #4449 from ladyada/main
...
adventure together with rotary trinkey
2021-03-20 13:37:31 -04:00
lady ada
8884682cac
adventure together with rotary trinkey
2021-03-20 12:03:51 -04:00
Scott Shawcroft
4aea7f8f52
Add requirements-dev.txt for python deps
2021-03-19 15:22:23 -07:00
Jeff Epler
22906ac95e
Merge pull request #4442 from jepler/m7-reboot-bootloader
...
mimxrt1011: Fix reset-to-bootloader
2021-03-19 15:37:06 -05:00
Jeff Epler
3fcb6b278f
Merge pull request #4443 from jepler/evk-pins-dnp
...
imxrt1010_evk: Delete pins that are not connected
2021-03-19 15:36:36 -05:00
Limor "Ladyada" Fried
c0ec904c7a
Merge pull request #4441 from jepler/metro_m7_4mb
...
metro m7: another place to fix flash capacity
2021-03-19 12:42:35 -04:00
Jeff Epler
ee59c75f62
imxrt1010_evk: Delete pins that are not connected
...
There are DNP resistors on the MIMXRT1010-EVK board (see SCH-45852)
that lead to these pins on the arduino-style header not being connected
through. In theory someone could populate them, but as it the presence
of these names in the pins module caused problems when they didn't work
as expected.
Closes #3012
2021-03-19 11:29:32 -05:00
Jeff Epler
06743d91ed
mimxrt1011: Fix reset-to-bootloader
...
The definition of DBL_TAP_REG must match tinyuf2
2021-03-19 10:11:45 -05:00
Dan Halbert
d7a2ae9df7
fix stm compiler error
2021-03-19 11:04:46 -04:00
Jeff Epler
01a1cdf13a
update flash chip comment
2021-03-19 09:50:26 -05:00
Dan Halbert
1512ca520b
Fix PWMOut non-error handling and never reset
2021-03-19 09:57:21 -04:00
Jeff Epler
6abea8a4aa
another place to fix flash capacity
2021-03-19 08:41:28 -05:00
Dan Halbert
8293e1eedc
fix display rotation and position
2021-03-19 00:09:48 -04:00
Dan Halbert
47437cb415
make translate; fix display pins
2021-03-18 23:42:24 -04:00
Dan Halbert
ea82ca1d02
correct PID
2021-03-18 23:24:20 -04:00
Dan Halbert
21c55f8e75
update funhouse pins for latest rev b
2021-03-18 23:14:59 -04:00
Dan Halbert
b2d913412f
merge from upstream
2021-03-18 23:14:43 -04:00
Scott Shawcroft
5d2b60cbf6
Redo RP2040 flash settings
...
This switches stage2 to C and uses Jinja to change the C code based
on flash settings from https://github.com/adafruit/nvm.toml . It
produces the fastest settings for the given set of external flashes.
Flash size is no longer hard coded so switching flashes with similar
capabilities but different sizes should *just work*.
This PR also places "ITCM" code in RAM to save the XIP cache for
code execution. Further optimization is possible. A blink code.py
still requires a number of flash fetches every blink.
Fixes #4041
2021-03-18 16:55:42 -07:00
Jeff Epler
2589515342
Merge pull request #4435 from jepler/metro-m7
...
Fixes for Metro M7
2021-03-18 17:56:12 -05:00
Jeff Epler
0b22a9397a
mimxrt: Quiet some warnings down in the sdk
...
Closes #2487
2021-03-18 16:54:11 -05:00
Jeff Epler
0ba0fae495
mimxrt: Enable USB Midi
...
Closes #2473
2021-03-18 16:54:11 -05:00
Jeff Epler
74243fd71a
metro_m7: Update board name, flash chip size
2021-03-18 16:54:11 -05:00
Scott Shawcroft
11e510a06a
Merge pull request #4419 from spe2/main
...
Add board definition for Sparkfun Pro Micro RP2040
2021-03-17 18:17:24 -07:00
Jeff Epler
719e8710f2
Merge pull request #4411 from mintakka/thingplus-rp2040
...
added board configuration for Sparkfun ThingPlus RP2040
2021-03-17 16:23:55 -05:00
Phil Howard
b8d4f9655f
RP2040: Only bitbang 0-byte writes
...
The I2C.c for RP2040 included a special case for writes <=2 bytes to match the MicroPython implementation,
however RP2040 does support 1 and 2 byte reads, with only 0 bytes being the exception.
Signed-off-by: Philip Howard <phil@pimoroni.com>
2021-03-17 16:25:54 +00:00
Jeff Epler
bfc8c89536
Merge pull request #4403 from jepler/bitmap-read-2
...
bitmaptools: Add readinto, arrayblit
2021-03-17 07:57:31 -05:00
mintakka
337727ba0c
renamed board folder to match board name in boards.yml
2021-03-16 21:10:10 -04:00
Jeff Epler
94fa8e8a60
disable bitmaptools on small board
2021-03-16 19:04:21 -05:00
Jeff Epler
75ba26ee7c
Merge pull request #4421 from kattni/led-pin
...
Adding LED for D13/L pin name.
2021-03-16 18:58:14 -05:00
Mark
1be5ca7881
Merge pull request #4130 from gamblor21/rp_dp_parallel
...
Add RP2040 displayio.ParallelBus Support
2021-03-16 13:49:55 -05:00
spe2
dcd9a8ab91
Update ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/mpconfigboard.mk
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-03-16 10:54:20 -07:00
spe2
5bc132a209
Update ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/mpconfigboard.h
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-03-16 10:54:15 -07:00
mintakka
b5333f2bdf
Update ports/raspberrypi/boards/sparkfun_thingplus_rp2040/mpconfigboard.h
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-03-16 13:47:33 -04:00
mintakka
3d15877639
Update ports/raspberrypi/boards/sparkfun_thingplus_rp2040/mpconfigboard.mk
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-03-16 13:47:21 -04:00
Jeff Epler
58679dc038
Merge remote-tracking branch 'origin/main' into bitmap-read-2
2021-03-16 12:21:50 -05:00
Kattni Rembor
2b910b7292
Adding LED for D13/L pin name.
2021-03-16 12:14:40 -04:00
Jeff Epler
bc690d4070
Merge pull request #4415 from jepler/pre-commit-no-run-if-empty
...
pre-commit: code formatter fixes
2021-03-16 09:54:12 -05:00
gamblor21
0890b54cd9
More formatting
2021-03-16 08:29:04 -05:00
gamblor21
fb437d8280
Formatting fixes
2021-03-16 08:22:02 -05:00
gamblor21
3b01a65743
Fixed formatting
2021-03-16 08:14:49 -05:00
spe2
9de40f56f3
Add board config files
2021-03-15 22:08:19 -06:00
spe2
c9427780b3
Create pins.c
2021-03-15 22:07:24 -06:00
mintakka
49baa94446
added sparkfun_thingplus_rp2040 to .github/workflows/boards.yml and renamed board folder to include chip
2021-03-15 23:00:24 -04:00
mintakka
288415f867
Update ports/raspberrypi/boards/sparkfun_thingplus/mpconfigboard.h
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-03-15 21:07:31 -04:00
mintakka
30a74b3d92
Update ports/raspberrypi/boards/sparkfun_thingplus/mpconfigboard.mk
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-03-15 21:07:24 -04:00
Mark
e326d7ca80
Merge branch 'main' into rp_dp_parallel
2021-03-15 20:00:13 -05:00
Scott Shawcroft
f7a988b9b3
Merge pull request #4405 from DavePutz/issue_4237
...
Issue 4237 - Changed initial setting in program_struct
2021-03-15 17:51:36 -07:00
Scott Shawcroft
9cb8ce67ed
Merge pull request #4412 from kamtom480/spi_and_i2c
...
spresense: minor changes for i2c, spi and uart
2021-03-15 17:35:06 -07:00
Jeff Epler
d3bf1fe15d
modifications by pre-commit
2021-03-15 18:11:00 -05:00
Kamil Tomaszewski
ed3f636be5
spresense: empty rx uart fifo after initialization
2021-03-15 16:14:16 +01:00
Kamil Tomaszewski
22ed0abf6c
spresens: configure pin mode for i2c and spi
2021-03-15 16:14:16 +01:00
mintakka
0567d06936
added board configuration for Sparkfun ThingPlus RP2040
2021-03-15 10:27:21 -04:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30