Dan Halbert
5b0009cbc4
Merge pull request #5151 from dhalbert/usb_hid-changes
...
Support multiple reports per device in usb_hid
2021-08-17 17:14:28 -04:00
Ryan A. Pavlik
a77e269121
cp_sapling_m0_revb: board.UART not board.uart
...
This is the only board that didn't match the all-uppercase convention for these UART (and more generally, these bus) entries.
2021-08-16 17:07:17 -05:00
Dan Halbert
f37e1d7bf5
squeeze a couple of boards
2021-08-14 17:36:05 -04:00
Scott Shawcroft
3ffab36cdc
Merge remote-tracking branch 'adafruit/main' into fix_samd_timer_leak
2021-08-13 15:20:25 -07:00
Scott Shawcroft
de796e2304
Move OneWire to onewireio
from busio
...
This will allow finer grained inclusion in 8.0.0
Fixes #5135
2021-08-12 10:47:14 -07:00
Scott Shawcroft
fb6b438580
Make getpass
and traceback
full build only
...
This leaves much more space on SAMD21 builds that aren't "full builds".
These are new APIs that we don't need to add to old boards.
Also, tweak two Arduino boards to save space on them.
2021-08-11 14:47:35 -07:00
Scott Shawcroft
0c1d6cef75
Merge remote-tracking branch 'adafruit/main' into fix_cp_irremote
2021-08-11 13:43:59 -07:00
Scott Shawcroft
0632a1e681
Merge pull request #5060 from cdwilson/cdwilson/circuitpython/sparkfun-stm32f405-micromod
...
stm/boards: Add support for SparkFun STM32 MicroMod Processor board.
2021-08-11 12:19:16 -07:00
Scott Shawcroft
7f016ae11e
Fix build with filter to do OR
2021-08-11 12:10:51 -07:00
Scott Shawcroft
083960ce90
Fix SAMD51 builds and Prox Trinkey
...
Adds CIRCUITPY_BUSIO_UART to disable UART by raising ValueError
that no pins work.
2021-08-11 11:53:26 -07:00
Scott Shawcroft
ebf0901558
Merge pull request #5079 from dhalbert/debug-audio
...
Fix various RP2040 and SAMD audio issues
2021-08-11 11:19:53 -07:00
Scott Shawcroft
b56455ffbb
Allow sleep while paused
2021-08-11 10:48:39 -07:00
Scott Shawcroft
67c6932ca2
Reset timers separate from pwmio
...
This prevents timer leakage on builds without pwmio.
Fixes #5057
2021-08-11 09:58:31 -07:00
Scott Shawcroft
f0859ac954
Switch SAMD21 ticks to PER event
...
The EVSYS is used to generate an interrupt from the event. This
simplifies timing used in pulseio that conflicted with the
auto-reload countdown.
Fixes #3890
2021-08-10 15:23:45 -07:00
Chris Wilson
e741330ca8
Consistent pin naming for SparkFun MicroMod processor boards.
2021-08-09 23:10:52 -07:00
microDev
93c9d59960
Merge branch 'main' into getpass
2021-08-10 01:00:10 +05:30
Dan Halbert
2451c788f4
valid channels in audio_dma_stop; cleaner supervisor_ticks mgmt in keypad
2021-08-09 09:47:13 -04:00
Dan Halbert
59b89fdc5c
Fix various audio DMA issues:
...
RP2040 and SAMD51:
- Detect when DMA has finished, and stop DMA audio explicitly.
- Do not accidentally reuse `first_buffer` supplied by WaveFile or RawSample. Always realloc `first_buffer` and `second_buffer`
RP2040:
- When audio playing is stopped, write a final zero to the output register. This prevents residual PWM tones.
- Handle buffer size for 8-bit samples properly for 16-bit output.
- Fail on some edge cases (which may not be possible at the moment).
2021-08-09 09:47:13 -04:00
Dan Halbert
fd71d924d2
partial buffer mgmt fix
2021-08-09 09:47:13 -04:00
microDev
51f8603783
add getpass module
2021-08-09 17:50:28 +05:30
Nathan Young
579194a543
Colocated board.LED and D13 together (GCM4)
2021-08-09 05:35:38 +02:00
Nathan Young
a15ac65fa0
Add board.LED for Grand Central M4 Express
...
Fixes #5111
2021-08-08 21:43:12 +02:00
microDev
063e3946d6
Merge pull request #5094 from jepler/quirc
...
Add qrio: Decode QR codes with quirc lib
2021-08-07 09:30:20 +05:30
Scott Shawcroft
be2342f32f
Merge pull request #5072 from microDev1/traceback
...
Add traceback module
2021-08-06 12:10:17 -07:00
Brian Dean
821f3d5532
board bdmicro_vina_d51: Add support for MX25L12833F flash chip. Add QSPI activity indicator LED. Add D15-D19 as aliases for the I2S peripheral pins.
2021-08-05 09:14:51 -04:00
Jeff Epler
ac4b10bcd9
It's "shared-module", not "shared-modules"
2021-08-03 10:37:47 -05:00
Scott Shawcroft
d5cdceb9b9
Use all 4 status pixels on neotrinkey too
2021-07-28 14:25:21 -07:00
Dan Halbert
e9369d50e1
Merge pull request #5067 from tannewt/pulseout_switch
...
Switch to pin, frequency and duty_cycle PulseOut
2021-07-28 14:58:06 -04:00
microDev
f371c0a609
add traceback module
2021-07-28 18:06:23 +05:30
Kattni
fc59a7ac02
Merge pull request #5068 from dhalbert/remove-gamepad
...
remove gamepad; deprecate gamepadshift
2021-07-27 11:35:06 -04:00
Dan Halbert
901a6c27c0
remove gamepad; deprecate gamepadshift
2021-07-26 22:15:09 -04:00
Scott Shawcroft
daf90aae83
Merge remote-tracking branch 'adafruit/main' into pulseout_switch
2021-07-26 18:48:59 -07:00
Scott Shawcroft
412eb87080
Switch to pin, frequency and duty_cycle PulseOut
...
Passing in a PWMOut still works but is deprecated. It will be
removed in CircuitPython 8.0.0
This also switches STM32 timer indices and channel indices to
0-based in our pin data rather than `- 1` everywhere. The latter is
more bug prone.
Most of the way for #3264
Tested on Metro M0, Metro M4, Feather S2, Feather nRF52840, Feather
STM32F4 and Arduino RP2040.
2021-07-26 18:35:49 -07:00
Dan Halbert
11ca505fdb
add board.LED wherever possible
2021-07-26 19:57:12 -04:00
lady ada
f3a286a7ea
can we add busdevice and have room?
2021-07-25 14:45:35 -04:00
Scott Shawcroft
70cbb4eddb
Support multiple status neopixels
...
Use the 10 neopixels on the playgrounds for status.
Fixes #5039
2021-07-23 15:17:09 -07: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
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
Scott Shawcroft
e042d54702
Fix three boards and xtensa cache key
2021-07-16 11:15:05 -07: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
BoB LeSuer
35030fbb30
added pin object to analogout
2021-07-12 20:33:42 -04:00
Scott Shawcroft
0e88b77b3e
Merge pull request #4977 from pewpew-game/samd21-filesystem-size
...
Allow changing size of the filesystem on samd21 per board
2021-07-09 11:00:13 -07:00
Kattni Rembor
825a706135
Turn off MIDI on one build, fix name.
2021-07-08 17:31:10 -04:00
Radomir Dopieralski
92fa1055ef
Allow changing size of the filesystem on samd21 per board
...
As the CircuitPython grows, it may at some point no longer be possible
to squeeze it on some of the flash-less SAMD21 boards, so it would be
good to have the option of shrinking the filesystem size on per-board
basis. This change allows to define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE
inside the board's mpconfigborard.h file.
2021-07-08 22:19:54 +02:00
Dan Halbert
d886e8041d
Turn off pwmio on meow meow for space reasons
2021-07-01 22:14:37 -04:00
Dan Halbert
33bbb8b1f4
RP2040 PWMAudioOut: Release DMA channels after play has finished.
2021-07-01 17:36:29 -04:00
Radomir Dopieralski
1a076d34c9
PewPew M4: use keypad instead of gamepad
...
Since the new keypad module is taking over gamepad functionality,
I'm switching to it. If this works well, I will make the change
for the remaining boards.
2021-06-29 10:36:52 +02:00
Scott Shawcroft
b81573d439
Merge pull request #4891 from dhalbert/keypad-scanning-events
...
keypad: support for vector and matrix key scanning
2021-06-24 10:25:21 -07:00
Tsutomu IKEGAMI
15fc4c21b6
Fix typo in pin names I2S_SDIN/SDOUT of Wio Terminal
2021-06-24 21:24:23 +09:00
Dan Halbert
ed41acd879
merge from upstream to fix translations
2021-06-21 08:26:44 -04:00
Limor "Ladyada" Fried
6dbeb75a4f
Merge pull request #4880 from jepler/esp32s2-imagecapture
...
Esp32s2: implement ParallelImageCapture
2021-06-19 16:17:56 -04:00
Dan Halbert
db297add67
fix other too-big builds
2021-06-18 13:20:31 -04:00
Dan Halbert
03adbbca7c
turn off keypad by default on all SAMD21, for now
2021-06-18 12:26:48 -04:00
Dan Halbert
04b69cde9b
turn off gamepad on most builds;turn off keypad where appropriate
2021-06-17 13:46:45 -04:00
Dan Halbert
4655a71793
Turn off keypad on some builds to avoid overflow
2021-06-15 14:11:04 -04:00
Tsutomu IKEGAMI
fd222dd066
Fix typo in Wio Terminal pin board.I2S_BLCK to I2S_BCLK (bit clock)
2021-06-15 20:51:55 +09:00
Kattni Rembor
12d0e65a2a
Space out pin groups.
2021-06-14 15:37:02 -04:00
Kattni Rembor
f96642de25
Add A0 as alias to pot pin.
2021-06-14 15:32:12 -04:00
Jeff Epler
268717e427
ParallelImageCapture: Switch to taking a list of pins
...
.. adopting validate_pins from RGBMatrix into shared-bindings
.. updating other platforms for API change
2021-06-10 11:15:18 -05:00
Jeff Epler
26a75f74ec
Merge pull request #4862 from DavePutz/issue_3383
...
Fix for issue #3383 - SAMD5x microcontroller.cpu.voltage
2021-06-09 14:42:27 -05:00
root
bc34403d71
Removed all references to MICROCONTROLLER_VOLTAGE_DISABLE
2021-06-09 10:46:14 -05:00
root
72db13fc2d
enable microcontroller.cpu.voltage on SAME54
2021-06-08 10:04:40 -05:00
root
b2dea8ae0d
Fix for issue #3383 - SAMD51 microcontroller.cpu.voltage
2021-06-05 16:17:14 -05: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
George White
6e36f30d9f
MicroMod SAMDt1 - correct board nane
2021-06-03 05:36:05 -04:00
George White
2b068414e1
Fix missing comma
...
Doh
2021-06-02 23:13:08 -04:00
George White
0437199706
Fix some pin mappings
...
Conflicts:
ports/atmel-samd/boards/sparkfun_samd51_micromod/pins.c
2021-06-02 22:22:04 -04:00
George White
4c493c86c8
Add Sparkfun MicroMod SAMD51
2021-06-02 22:05:58 -04:00
George White
db1830d62b
Add Sparkfun MicroMod SAMD51
2021-06-02 21:53:23 -04:00
Dan Halbert
3930440bc5
Fix usb_cdc.enable(console=False, data=True)
2021-06-02 11:29:56 -04:00
Scott Shawcroft
892dfa84ed
Merge pull request #4826 from jepler/actions-windows-build
...
Check that select firmwares build on Windows with MSYS2
2021-06-01 13:04:06 -07:00
Jeff Epler
6b476c19ba
fix formatting
2021-05-29 08:10:10 -05:00
Jeff Epler
b0dd0e344c
Merge pull request #4772 from EmergReanimator/atmel-samd
...
[resolves #4771 ] DEBUG UART supported on ATMSAME5x
2021-05-28 20:05:06 -06:00
Jeff Epler
49db85cb3d
Check that select firmwares build on Windows with MSYS2
...
This configuration is used by @ladyada and more often than it should
we've discovered late that a change introduced problems building
there.
By adding this to regular CI, hopefully we learn about and fix these
issues sooner rather than later.
2021-05-28 16:47:29 -05:00
Dan Halbert
5eb4cc6489
Remove non-product Adafruit boards
2021-05-26 16:01:17 -04:00
Scott Shawcroft
5643355e90
Merge remote-tracking branch 'adafruit/main' into simplify_status_led
2021-05-20 08:35:15 -07:00
EmergReanimator
7805392b9e
Update UART.c
...
Incorporating feedback: https://github.com/adafruit/circuitpython/pull/4772#discussion_r634112839
2021-05-19 20:19:16 +02:00
Scott Shawcroft
642fbcf87a
Handle status led power
...
This no longer turns on status LED power before running user code.
Therefore, use of the status LED on some boards will also have to
enable the power.
2021-05-19 10:57:14 -07:00
EmergReanimator
2b64b1d335
[ resolves #4771 ] DEBUG UART supported on ATMSAME5x
2021-05-17 21:22:24 +02:00
Limor "Ladyada" Fried
9752162508
Merge pull request #4765 from dhalbert/rotary-trinkey-rev-c-pins
...
Update various Trinkey pins and add _pixelbuf
2021-05-15 11:52:33 -04:00
Dan Halbert
ea0e18d2e0
fix logic for suppressing ja and ko clean builds when not necessary
2021-05-14 23:41:44 -04:00
Dan Halbert
1e2a945782
Make busio.SPI be NotImplementedError on proxlight to save space
2021-05-14 21:52:54 -04:00
Scott Shawcroft
5c33c9d597
Fix SAMD
...
RTC needed to wait for sync. NeoPixel on SAMD doesn't need disabled
caches. It just needed timing adjustment for 120mhz clock speed.
2021-05-14 16:14:24 -07:00
Dan Halbert
990e58902d
add CIRCUITPY_PIXELBUF to all trinkeys; add NeoPixel to prox
2021-05-14 17:09:15 -04:00
Dan Halbert
6a2ba83e30
Update Rotary Trinkey and Slide Trinkey pins
2021-05-14 15:40:29 -04:00
Dan Halbert
fa6c06fb38
count in/out endpoints; allow more usb modules on low-endpoint boards
2021-05-13 21:59:02 -04:00
Scott Shawcroft
1a0b4193b7
Simplify the status LED to save power
...
This also removes the need to pin share because we don't use the
status LED while user code is running.
The status flashes fallback to the HW_STATUS LED if no RGB LED is
present. Each status has a unique blink pattern as well.
One caveat is the REPL state. In order to not pin share, we set the
RGB color once. PWM and single color will be shutoff immediately but
DotStars and NeoPixels will hold the color until the user overrides
it.
Fixes #4133
2021-05-13 14:41:20 -07:00
Dan Halbert
0eb4b9b982
Merge pull request #4742 from kattni/led
...
Add LED pin to Adafruit boards.
2021-05-10 21:12:02 -04:00
Kattni Rembor
294ef59f27
Add LED pin to Adafruit boards.
2021-05-10 16:39:01 -04:00
Scott Shawcroft
4eb4f14840
Merge pull request #4734 from dhalbert/dynamic-usb-fixes
...
fix HID; fix interface name table creation
2021-05-10 12:55:29 -07:00
Ben Bleything
44f162bb64
free up PA00 and PA01 on BHB
2021-05-09 10:19:48 -07:00
Dan Halbert
becff6f93d
restore pulseio to pirkey
2021-05-09 11:33:35 -04:00
Jeff Epler
5e06c91244
Merge pull request #4716 from tyomitch/main
...
s/Circuit Python/CircuitPython/g
2021-05-08 08:47:29 -05:00
Scott Shawcroft
42f4065c8a
Merge remote-tracking branch 'adafruit/main' into merge_1.13
2021-05-06 11:17:53 -07:00
Artyom Skrobov
908d83d1f2
s/Circuit Python/CircuitPython/g
...
Some comments and messages used the non-standard spelling
2021-05-06 16:22:35 +03:00
Scott Shawcroft
3fda0c0a1b
Fix board builds and use MP_ERROR_TEXT in py and extmod
2021-05-05 17:51:52 -07:00
Dan Halbert
843598ec3a
fix more board builds
2021-05-05 18:44:27 -04:00
Dan Halbert
579cdf30f1
fix more build errors
2021-05-05 16:49:29 -04:00
Dan Halbert
c37f021791
regularize and shrink many builds
2021-05-05 12:35:41 -04:00
Dan Halbert
fc8e1c4c2e
address review comments
2021-05-05 12:35:12 -04:00
Scott Shawcroft
f0bb26d70f
Merge MicroPython 1.13 into CircuitPython
2021-05-04 18:06:33 -07:00
Dan Halbert
d2b558993e
merge from main, including MicroPython 1.12 merge
2021-05-03 20:56:04 -04:00
Scott Shawcroft
b35fa44c8a
Merge MicroPython 1.12 into CircuitPython
2021-05-03 14:01:18 -07:00
Scott Shawcroft
25ccd5d8f1
Merge pull request #4679 from t-ikegami/wio_add_pin_assign
...
Add DAC* and RTL_* pin assignments to Wio Terminal board.
2021-05-03 11:08:28 -07:00
Dan Halbert
94ed5e0048
Merge pull request #4696 from dhalbert/no-pulseio-on-small-boards
...
Include pulseio only on CIRCUITPY_FULL_BUILD
2021-05-03 09:35:29 -04:00
Dan Halbert
9ca0e689a5
Merge branch 'main' into wio_add_pin_assign
2021-05-03 09:33:18 -04:00
Dan Halbert
e475dc8899
Fix broken builds
2021-05-03 00:09:15 -04:00
Dan Halbert
07dab34294
re-enable for pirkey
2021-05-01 09:32:13 -04:00
Jeff Epler
dfa7c3d32d
codeformat: Fix handling of **
...
After discussing with danh, I noticed that `a/**/b` would not match `a/b`.
After correcting this and re-running "pre-commit run --all", additional
files were reindented, including the codeformat script itself.
2021-04-30 15:30:13 -05:00
Jeff Epler
e95e921ca1
codeformat: Fix filename matching
...
In #4683 , tannewt noticed that uncrustify was not running on some
file in common-hal.
I investigated and found that it was not being run on a bunch of paths.
Rather than make incremental changes, I rewrote list_files to work
bsaed on regular expressions; these regular expressions are created from
the same git-style glob patterns.
I spot-checked some specific filenames after this change, and all looks good:
```
$ python3 tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup extmod/virtpin.c ports/raspberrypi/background.h ports/raspberrypi/common-hal/pulseio/PulseIn.c
black --fast --line-length=99 -v tests/thread/thread_exit1.py
```
recursiveloop and int_small are excluded, while PulseIn, virtpin,
and background are included.
Testing running from a subdirectory (not _specifically_ supported though):
```
(cd ports && python3 ../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c)
../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup ../extmod/virtpin.c raspberrypi/common-hal/pulseio/PulseIn.
```
As a side-effect, a bunch more files are re-formatted now. :-P
2021-04-30 10:48:08 -05:00
Dan Halbert
353e55d710
Merge pull request #4688 from jepler/fix-pixelbuf-subscr
...
objtype: Restore our customized behavior of instance_subscr
2021-04-30 10:45:44 -04:00
Dan Halbert
be7b2b00a8
uncrustify with newer version of uncrustify
2021-04-30 10:40:12 -04:00
Tsutomu IKEGAMI
11a9372da3
Set Xtal, Aref, and NC pins to be IGNORE_ed in microcontroller.pin for Wio Terminal.
2021-04-30 13:06:09 +09:00
Tsutomu IKEGAMI
d79d6ba688
Add I2S_* pin assignments to Wio Terminal board.
2021-04-30 13:03:29 +09:00
Dan Halbert
b5efce12cd
delete hid .py; undo some debugging changes
2021-04-29 23:05:31 -04:00
Mark
5679eb4fd7
Merge pull request #4677 from skerr92/add-cp-sapling-rev-b
...
Add cp sapling rev b
2021-04-29 19:22:49 -05:00
Seth Kerr
8b611d4b6b
changing mpconfigboard makefile
2021-04-29 16:45:08 -06:00
Jeff Epler
90bdb25219
ignore some pins to reclaim flash space
2021-04-29 14:36:29 -05:00
Jeff Epler
6498684f5e
ignore some pins to reclaim flash space
2021-04-29 14:30:31 -05:00
Dan Halbert
f06d54524d
merge from adafruit
2021-04-28 23:48:26 -04:00
Seth Kerr
555ade7ff3
final change to ja flags i think
2021-04-28 20:42:13 -06:00
Seth Kerr
8090af07dd
fix ja build issue
2021-04-28 19:14:45 -06:00
Tsutomu IKEGAMI
0d25b95f0d
Add definitions of PB2[4-9] pins to microcontroller.pin for atmel-samd.
2021-04-29 02:19:34 +09:00
Tsutomu IKEGAMI
22c4abd28f
Add DAC* and RTL_* pin assignments to Wio Terminal board.
2021-04-28 18:57:21 +09:00
Dan Halbert
8500e846c6
partially working
2021-04-27 23:53:23 -04:00
Seth Kerr
e85091193b
adding CP Sapling Rev B
2021-04-27 16:30:44 -06:00
Scott Shawcroft
17fcd499b2
Merge pull request #4649 from tannewt/merge_1.11_2
...
Merge MicroPython v1.11 into CircuitPython
2021-04-27 11:02:02 -07:00
Kattni Rembor
4e1d2fa056
Adding clearer on-board DotStar pin names.
2021-04-27 12:52:24 -04:00
Scott Shawcroft
76033d5115
Merge MicroPython v1.11 into CircuitPython
2021-04-26 15:47:41 -07:00
Dan Halbert
c26e49c2e6
wip: starting to try to compile
2021-04-25 23:17:41 -04:00
ajs256
de3c5ff976
oh crud, i forgot a semicolon
2021-04-25 16:42:58 -07:00
ajs256
4bafbca0c3
Trinkeys: Clear neopixels on board reset
2021-04-25 12:58:52 -07:00
Dan Halbert
9d1fcc3b14
merge from main
2021-04-25 10:27:52 -04:00
Mark
ed374a89fb
Merge pull request #4655 from DavePutz/issue_4602
...
Issue 4602 - Correct timing of PulseOut on SAMD21
2021-04-24 10:45:10 -05:00
Scott Shawcroft
80e8b4ac14
Merge pull request #4635 from jepler/pcc
...
WIP: Implement 'ParallelImageCapture' for samd51
2021-04-23 13:31:53 -07:00
Jeff Epler
34c4cc1bd9
samd: Rename dma_{allocate,free} channel
...
These are now used in the (video) parallel capture device as well.
2021-04-23 09:46:33 -05:00
Dan Halbert
64e0958916
wip: descriptor building
2021-04-21 23:25:36 -04:00
root
0e2431048d
Fix PWMOut on SAMD21
2021-04-20 15:21:05 -05:00
Jeff Epler
46c9b1bc37
atmel-sam: Use DMA for ParallelImageCapture
...
This allows ctrl-c to interrupt the capture, and ensures we handle
interrupts & background tasks.
2021-04-20 13:52:44 -05:00
Jeff Epler
d50feebd2c
atmel-sam: Factor out find_sync_event_channel_raise
2021-04-20 13:33:11 -05:00
Jeff Epler
4dcbdac97e
Complete the 'horizontal_reference' rename
2021-04-20 11:33:32 -05:00
Jeff Epler
5c5736ee1e
atmel-sam: Allow PWM to go up to cpu_frequency/2
...
24MHz is the nominal external clock to use with OV7670. (My testing
was actually at 16MHz)
2021-04-20 10:22:21 -05:00
Jeff Epler
99799cded6
imagecapture: implement to review suggestions
2021-04-20 10:21:32 -05:00
anecdata
2198b1a4df
Update mpconfigboard.h
2021-04-17 20:15:04 -05:00
Jeff Epler
fc4538f845
WIP: Implement 'ParallelImageCapture' for samd51
2021-04-16 17:18:59 -05:00
Scott Shawcroft
b1f4a9a9fd
Merge pull request #4447 from tyomitch/patch-3
...
[synthio] add a simple MidiTrack implementation
2021-04-13 15:09:23 -07:00
Kattni
9a3f04a1b8
Merge pull request #4599 from dhalbert/neopixel-trinkey-storage
...
Turn storage back on for NeoPixel Trinkey
2021-04-13 12:42:46 -04:00
Limor "Ladyada" Fried
1163af5d48
Merge pull request #4591 from jepler/same51-modules
...
same51: enable specific modules based on chip family
2021-04-13 11:47:08 -04:00
Dan Halbert
cc36402a64
turn storage back on
2021-04-13 11:06:59 -04:00
Artyom Skrobov
c6ee471b52
Merge branch 'main' of https://github.com/adafruit/circuitpython into patch-3
2021-04-13 00:32:19 -04:00
lady ada
d136078768
try re-enabling storage
2021-04-12 22:17:20 -04:00
lady ada
8053d4a7a3
remove neopixels
2021-04-11 22:33:03 -04:00
Jeff Epler
4f36504aeb
same51: enable specific modules based on chip family
...
closes #4590
2021-04-11 20:07:59 -05:00
lady ada
42abb982fe
rename proxsense to proxlight
2021-04-11 18:39:14 -04:00
lady ada
9dc6d691b8
add prox trinkey and rename others to adafruit_
2021-04-11 17:45:37 -04:00
lady ada
56be8306cd
try adding a submodule?
2021-04-10 23:22:13 -04:00
lady ada
137745e911
neokey trinkey friend
2021-04-10 23:04:48 -04:00
Scott Shawcroft
ebfe36c9aa
Merge pull request #4576 from felixerdy/main
...
Add senseBox MCU
2021-04-09 10:27:37 -07:00
Dan Halbert
61e33a5619
fix nrf ISR; make direction consistent across ports; save code size
2021-04-09 11:07:47 -04:00
felixerdy
ca6dda4d2b
reorder alias
2021-04-09 08:35:13 +02:00
Jeff Epler
3aec1032f7
atmel-samd: switch to shared softencoder implementation
2021-04-08 16:32:36 -05:00
felixerdy
e5cffa94e8
add aliases for TX and RX
2021-04-08 21:19:27 +02:00
Brian Dean
8544249fc0
boards/bdmicro_vina_d51: Replace old rev with new rev and rename.
...
This update to the PR retains the earlier board rev (with a rename) so
that backward binary compatibility is not lost for the earlier board
revision. The primary name 'vina-d51' is retained for the latest
revision to make it easy for customers to select the proper UF2
download - because the name matches the commercial name.
Details:
Replace bdmicro_vina_d51 with bdmicro_vina_d51_pcb7 (revision 7 of
PCB) with boardfiles unmodified. Add _pcb7 to the workflow build.
Replace bdmicro_vina_d51 boardfile content with latest PCB updates
(revision 10 ov PCB). Add minimal comments in the board files to make
it clear which PCB revision is implemented. Update the USB PID to
reflect an updated board revision.
2021-04-07 09:11:30 -04:00
Brian Dean
3e558a89ac
boards/bdmicro_vina_d51: A few updates for flexibility and expansion.
...
ESP-01 header renamed to AUX, and expanded to 12 pins from 8
pins. Pins 1-8 still accommodate the ESP-01, with expansion to full
SERCOM 4-pad support to allow for SPI and I2C on that expansion port
with additional GPIO control.
Update pins.c with additional signals provided AUX_1-8, along with
UART, SPI, I2C name usage as aliases to appropriate AUX_1-8
signals. Additionally, add several alternate names specific to several
expansion modules - the ESP-01, and the ATW-01 using the WINC_1500
(SPI) w/interrupt and control needed for the WINC - with assignments
to module pin positions.
Re-work SERCOM assignments to accommodate the above from other parts
of the board, which required moving a SERCOM or two around in order to
accommodate the 4-pad sercom pin mapping on the AUX port.
Built and tested using latest from 'main':
Adafruit CircuitPython 6.2.0-rc.0-70-ga1562430f-dirty on 2021-04-05;
BDMICRO VINA-D51 with samd51n20
2021-04-05 10:44:52 -04:00
sabas1080
8b6ffba392
Update comment
2021-04-04 11:10:32 -05:00
sabas1080
53f3282e9c
change flash device
2021-04-02 14:42:38 -06:00
sabas1080
f8da94b8ba
removed o¡modules not availables
2021-04-02 14:40:27 -06:00
sabas1080
c1987b7311
init port hunter cat nfc!
2021-04-02 13:19:59 -06:00
Tsutomu IKEGAMI
be50732515
Fix SD_DET pin assignment of seeduino_wio_terminal.
2021-04-01 17:09:56 +09:00
Artyom Skrobov
8056af8648
[synthio] add a simple MidiTrack implementation
2021-03-26 16:38:10 -04:00
Scott Shawcroft
aec0ef3cbf
Switch devices.h to nvm.toml data
2021-03-25 09:57:18 -07:00
felixerdy
cde659651b
add brown out detect level
2021-03-23 19:17:45 +01: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
Jeff Epler
bfc8c89536
Merge pull request #4403 from jepler/bitmap-read-2
...
bitmaptools: Add readinto, arrayblit
2021-03-17 07:57:31 -05: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
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
gamblor21
0890b54cd9
More formatting
2021-03-16 08:29:04 -05:00
gamblor21
fb437d8280
Formatting fixes
2021-03-16 08:22:02 -05:00
Mark
e326d7ca80
Merge branch 'main' into rp_dp_parallel
2021-03-15 20:00:13 -05:00
Jeff Epler
d3bf1fe15d
modifications by pre-commit
2021-03-15 18:11:00 -05:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
felixerdy
6c32a1f67f
update pins of senseBox MCU
2021-03-15 10:27:50 +01:00
Jeff Epler
b33d77bfe8
disable bitmaptools on over-full board
2021-03-14 20:08:09 -05:00
felixerdy
de93df6444
add senseBox MCU
2021-03-12 17:57:55 +01:00
gamblor21
7321411962
Added frequency to parallel display
2021-03-11 19:32:43 -06:00
gamblor21
56a219911f
Add frequency support to parallel bus
2021-03-11 19:32:43 -06:00
Scott Shawcroft
2c3002b327
Merge pull request #4370 from jposada202020/i2cperipheral_ctrlc
...
I2CPeripheral samd51 corrections in the CTRLC bit
2021-03-09 12:58:59 -08:00
jposada202020
be90fa80e8
Initial Changes
2021-03-09 10:48:33 -05:00
Jeff Epler
f1ada8e880
Automatically count EXTERNAL_FLASH_DEVICES
2021-03-07 11:48:39 -06:00
Jeff Epler
4f040af481
vm: Make the speed-size trade-off compile time settable
...
.. and enable for all samd21 boards
2021-03-05 18:29:27 -06:00
Dan Halbert
4cf6579e22
remove general changes; not consistent across builds
2021-03-05 10:10:50 -05:00
Dan Halbert
c97721455a
Shrink the smallest builds with compile options
2021-03-04 23:07:06 -05:00
Jeff Epler
efc2667b5f
Merge pull request #4186 from jepler/update-protomatter-rp2
...
Enable protomatter on RP2040 builds
2021-03-02 19:01:37 -06:00
Dan Halbert
0a58d451ad
Merge pull request #4306 from Neradoc/fix-reset-to-safe
...
press reset to safe mode on ports where reset reason is not implemented
2021-03-02 15:44:52 -05:00
Scott Shawcroft
e4f0e47d9f
Merge pull request #4233 from pewpew-game/displayio-group-list
...
displayio: make Group use a python list internally
2021-03-02 09:59:58 -08:00
Dan Halbert
248acd07c8
shrink builds
2021-03-02 12:25:42 -05:00
Radomir Dopieralski
cb2cf81136
ugame10 - disable pulseio to make more room for the French
2021-03-02 11:11:55 +01:00
Dan Halbert
54d11a8e2d
Merge pull request #4299 from jamesbowman/main
...
Add EVE support for Feather M4 Express
2021-03-01 22:56:50 -05:00
Scott Shawcroft
d0eab5c561
Merge pull request #4256 from kmatch98/bt_cleanup
...
Add `bitmaptools` module
2021-03-01 18:24:12 -08:00
James Bowman
0dabd1ace2
Add EVE support for Feather M4 Express
2021-03-01 14:42:48 -08:00
Jeff Epler
238484ec26
Merge remote-tracking branch 'origin/main' into update-protomatter-rp2
2021-03-01 15:18:32 -06:00
Scott Shawcroft
7562b0cbb8
Turn off GC opt on catwan_usbstick
2021-02-26 12:00:01 -08:00
Jeff Epler
1d1ff5f308
Merge remote-tracking branch 'origin/main' into update-protomatter-rp2
2021-02-26 09:56:35 -06:00
Kevin Matocha
ec4cd68edc
More mpconfigboard.mk corrections for small builds
2021-02-25 17:48:50 -06:00
Kevin Matocha
a7a4f93ff8
Updated build configs to turn off BITMAPTOOLS for smaller builds
2021-02-25 15:44:32 -06:00
Kamil Tomaszewski
fb32e0a7fd
qtpy_m0_haxpress: Change config to make it fit.
2021-02-25 09:44:33 +01:00
Dan Halbert
a30d4ad25d
set SUPEROPT_VM = 0 on most non-Express SAMD21 boards
2021-02-22 23:03:11 -05:00
Dan Halbert
8470f0fdb7
SAMD21: one endpoint pair for MSC now instead of two
2021-02-21 12:37:59 -05:00
Dan Halbert
e344c6d684
fix some builds
2021-02-18 14:24:58 -05:00
Dan Halbert
0b8f1b9a90
wip: usb_cdc.serials
2021-02-15 20:06:18 -05:00
Seth Kerr
9e626fdd5c
new cp sapling board
2021-02-14 20:00:32 -05:00
Dan Halbert
d54b5861a3
wip
2021-02-12 19:01:14 -05:00
Jeff Epler
ff1942cff6
Enable protomatter on RP2040 builds
...
Also found a race condition between timer_disable and redraw, which
would happen if I debugger-paused inside common_hal_rgbmatrix_timer_disable
or put a delay or print inside it. That's what pausing inside reconstruct
fixes.
So that the "right timer" can be chosen, `timer_allocate` now gets the `self`
pointer. It's guaranteed at this point that the pin information is accurate,
so you can e.g., find a PWM unit related to the pins themselves.
This required touching each port to add the parameter even though it's
unused everywhere but raspberrypi.
2021-02-12 08:25:15 -06:00
Dan Halbert
f0564b4986
merge from upstream; complicated webusb merge
2021-02-11 18:50:02 -05:00
Scott Shawcroft
f6603aa566
Merge pull request #4168 from BHDynamics/main
...
Add DynaLoRa-USB Dongle
2021-02-10 11:03:16 -08:00
Enrique Casado
983c75fb24
Add more pin names
2021-02-10 12:19:50 +01:00
Dan Halbert
3a68ac8abb
Merge pull request #3536 from pewpew-game/pew-get-ticks
...
Fix #3504 : Don't use time module in pew.tick()
2021-02-08 17:50:44 -05:00
Dan Halbert
5bb722b927
Merge pull request #4122 from hathach/fix-3986
...
Fix 3986 background reset remove existing usb callback
2021-02-05 09:13:28 -05:00
Enrique Casado
70e15d61b2
ports/atmel-samd/boards/dynalora_usb/board.c
2021-02-05 13:24:59 +01:00
Dan Halbert
25d456a5b8
shrink a couple of builds
2021-02-04 22:15:32 -05:00
Dan Halbert
0802b22ed6
usb descriptors all set; rework of enabling for USB devices
2021-02-04 19:23:40 -05:00
BiffoBear
4eb396806c
Updated trinket_m0 make file to squeeze all translations as per Dan Halbert.
2021-02-03 11:47:56 +07:00
BiffoBear
2656c84b01
Initial commit. Edited error messages in .c files
2021-02-03 05:49:40 +07:00
Patrick Van Oosterwijck
0dbd3293a9
Add board Silicognition LLC M4-Shim
2021-01-30 18:35:35 -07:00
Dan Halbert
13812a788f
Merge pull request #4060 from dhalbert/regularize-extmod-modules
...
CIRCUITPY_* switches for JSON, RE, etc. Doc cleanup
2021-01-26 12:54:21 -05:00
Scott Shawcroft
a2ac2da7cc
Merge pull request #3936 from gamblor21/busdevice_fixes
...
Changing adafruit_bus_device to duck typing
2021-01-25 14:41:53 -08:00
Dan Halbert
69c71bd522
fix some build errors
2021-01-25 11:54:10 -05:00
Dan Halbert
69869e1439
CIRCUITPY_* switches for JSON, RE, etc. Doc cleanup
2021-01-24 23:10:20 -05:00
David Glaude
abd9f7894d
Permit Gameduino 3X Dazzler support on that board.
...
Totally untested, change request based on change made in #2581 .
It might be my first PR in CircuitPython core...
Maybe this should be confirmed by @jamesbowman
Those are the two boards that seems supported:
* Metro M4 Express
* Metro nRF52840 Express
The only Metro that this PR concern:
* Metro M4 AirLift Lite
Other Metro I found and are maybe not supported:
* Metro ESP32-S2
* Metro M0 Express
* Metro M7 1011
2021-01-24 12:53:06 +01:00
Dan Halbert
dc421a6ca8
squeeze some builds
2021-01-23 06:18:15 -05:00
Dan Halbert
8c49c8df0a
shrink arduino_mkr1300
2021-01-22 11:26:33 -05:00
Dan Halbert
e3275be8b1
Merge pull request #3911 from hugodahl/add-translation-for-builtin-object-help
...
Update built-in help output for localization (Issue #3907 )
2021-01-22 03:49:19 -05:00
Dan Halbert
63b5e56c72
shrink feather_m0_adalogger and gemma_m0
2021-01-21 23:49:49 -05:00
Dan Halbert
ea9fe24971
shrink arduino_mkrzero build
2021-01-21 18:02:35 -05:00
Dan Halbert
9b8246f889
shrink sparkfun_samd21_dev de_DE build
2021-01-21 15:56:30 -05:00
mrangen
dea2bcd8f0
Fixed comment in mpconfigboard.h
2021-01-17 21:20:27 -07:00
gamblor21
41b9196167
Disabling in more small boards
2021-01-17 00:00:06 -06:00
gamblor21
49e059cdaf
Removing frozen libraries
2021-01-16 16:37:42 -06:00
Jeff Epler
c44c99398d
Merge pull request #3983 from dhalbert/6.1.0-shrink-builds
...
shrink some de_DE builds
2021-01-12 20:19:43 -06:00
Jeff Epler
8d24e72981
Merge pull request #3978 from ladyada/neotrinkey
...
samd21 board with only 4 neopixels + two touchpads
2021-01-12 20:19:01 -06:00
Dan Halbert
4b30412871
shrink some de_DE builds
2021-01-12 18:23:37 -05:00
Dan Halbert
4be5e914ac
Merge pull request #3966 from dhalbert/samd-dac-channels
...
fix atmel-samd DAC channel selection logic
2021-01-12 13:01:50 -05:00
lady ada
748d44892d
fix some precommit complaints
2021-01-12 12:55:02 -05:00
lady ada
f7f97ae1b7
samd21 board with only 4 neopixels + two touchpads
2021-01-12 12:50:08 -05:00
Dan Halbert
452d66dd0e
Update ports/atmel-samd/common-hal/analogio/AnalogOut.c
...
whoops, yes!
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-01-11 19:12:52 -05:00
Scott Shawcroft
10093d37c5
Merge pull request #3960 from dhalbert/pwmout-tcc-resolution
...
Look up TCC resolution as necessary
2021-01-11 15:33:59 -08:00
Scott Shawcroft
91245297e8
Merge pull request #3659 from iot49/msgpack
...
module msgpack
2021-01-11 15:22:39 -08:00
Dan Halbert
316bd0c72d
fix atmel-samd DAC channel selection logic
2021-01-10 19:22:15 -05:00
Dan Halbert
908e02439d
Look up TCC resolution as necessary
2021-01-09 15:04:23 -05:00
foamyguy
13efbf24e5
disable msgpack on boards without room
2021-01-09 10:33:56 -06:00
Dan Halbert
39c166ba6a
update tinyusb; _ticks_enabled only for SAMD21
2021-01-08 13:30:11 -05:00
Dan Halbert
9a1d864331
overflowed tick counter needs 64 bits everywhere
2021-01-06 11:09:06 -05:00
iot49
1a82555803
Merge branch 'main' into msgpack
2021-01-05 11:19:11 -08:00
Kattni Rembor
bbd4de33d1
Add adafruit_bus_device to CPX builds.
2021-01-04 15:53:39 -05:00
Benjamin Shockley
9286f26831
Added CP Dotstart Lib to Build
...
Added the CircuitPython dotstar library to the Mini SAM M4 build so users do not have to include the library to utilize the built-in APA102 LED.
2021-01-03 10:42:58 -06:00
Jeff Epler
83c6774a44
Revert "Removing frozen libs"
...
This reverts commit 23ed3ef971
.
2020-12-30 10:55:28 -06:00
microDev
dc332baa87
update common_hal_reset_pin()
2020-12-28 20:04:00 +05:30
Uwe Gartmann
2729666d82
SAMD51: change of DAC power setting
...
Fixes wrong DAC output levels at high data rate
closes adafruit#3796
2020-12-25 17:53:43 +01:00
Scott Shawcroft
eb65765d52
Merge pull request #3867 from dhalbert/frequencyin-fix-6.0.x
...
FrequencyIn: do not raise in interrupt handler
2020-12-23 12:14:16 -08:00
Dan Halbert
89079039ad
FrequencyIn: do not raise in interrupt handler
2020-12-22 18:54:42 -05:00
Dan Halbert
f202eb734a
Merge pull request #3842 from StackRduino/main
...
add stackrduino_m0_pro
2020-12-18 12:33:34 -05:00
Dan Halbert
8f9cd7075e
Merge pull request #3752 from jepler/gcc10
...
build: Update to gcc10
2020-12-17 11:03:40 -05:00
Hany Elkomy
7afa1a1d76
Update mpconfigboard.mk
...
reduced to CFLAGS_INLINE_LIMIT = 35 for tranaslations
2020-12-17 22:47:01 +08:00
Hany Elkomy
06022a5e91
Update mpconfigboard.mk
...
changed CFLAGS_INLINE_LIMIT = 55
2020-12-17 21:58:24 +08:00
Hany Elkomy
81ff95a8eb
Add files via upload
2020-12-17 20:29:54 +08:00
Hany Elkomy
bc95c7f219
Delete board.c
2020-12-17 17:08:52 +08:00
Hany Elkomy
f3fb014166
Delete mpconfigboard.h
2020-12-17 17:08:50 +08:00
Hany Elkomy
1284418fa7
Delete mpconfigboard.mk
2020-12-17 17:08:48 +08:00
Hany Elkomy
736c0d4c3d
Delete pins.c
2020-12-17 17:08:46 +08:00
Hany Elkomy
0a7c74230c
Update mpconfigboard.mk
...
updated for 6.1
2020-12-17 16:26:54 +08:00
Hany Elkomy
109e147b46
Update board.c
...
updated path to board.h
2020-12-17 16:22:47 +08:00
Hany Elkomy
23ad9c7402
Update mpconfigboard.h
...
removed whitespace
2020-12-17 15:17:04 +08:00
Hany Elkomy
3d9e4958c5
Add files via upload
2020-12-17 14:24:24 +08:00
Hany Elkomy
f3b7cd6a5d
Delete pins.c
2020-12-17 14:24:07 +08:00
Hany Elkomy
70739ff639
Update pins.c
2020-12-17 13:11:53 +08:00
Hany Elkomy
fac0bf1db8
Add files via upload
2020-12-17 12:37:32 +08:00
Dan Halbert
4521dfb732
squeeze some smaller boards
2020-12-15 13:23:49 -05:00
Dan Halbert
fb33c4e1c0
-ftree-vrp better diagnostics on -Os builds; -fno-inline-functions for -O2; fix struct init in HCI bleio
2020-12-15 12:23:56 -05:00
Dan Halbert
97947b4fe9
shrink bast_pro_mini_m0; use proper flex-array syntax
2020-12-14 22:07:54 -05:00
Dan Halbert
6abe3cd0ef
-Os for SAMD51; fix CSUPEROPT typo
2020-12-14 18:57:31 -05:00
Thea Flowers
fe32dd08b8
Update Big Honking Button configuration to support its newest board revision.
...
v5 of the BHB board has:
* GD25Q64C instead of the GD25Q16C.
* Pin PB10 tied to ground for board revision detection.
2020-12-12 19:16:35 -05:00
Scott Shawcroft
344d3c59cb
Merge branch 'main' into msgpack
2020-12-11 11:10:30 -08:00
Scott Shawcroft
0b4bcd9599
Fix build and more comments
2020-12-08 13:05:21 -08:00
Scott Shawcroft
40118bcf57
Add board_deinit
for use with sleep
...
This changes lots of files to unify `board.h` across ports. It adds
`board_deinit` when CIRCUITPY_ALARM is set. `main.c` uses it to
deinit the board before deep sleeping (even when pretending.)
Deep sleep is now a two step process for the port. First, the
port should prepare to deep sleep based on the given alarms. It
should set alarms for both deep and pretend sleep. In particular,
the pretend versions should be set immediately so that we don't
miss an alarm as we shutdown. These alarms should also wake from
`port_idle_until_interrupt` which is used when pretending to deep
sleep.
Second, when real deep sleeping, `alarm_enter_deep_sleep` is called.
The port should set any alarms it didn't during prepare based on
data it saved internally during prepare.
ESP32-S2 sleep is a bit reorganized to locate more logic with
TimeAlarm. This will help it scale to more alarm types.
Fixes #3786
2020-12-08 10:52:25 -08:00
Scott Shawcroft
1130b80e2a
Merge pull request #3612 from gamblor21/bus_device
...
Moving Adafruit_CircuitPython_BusDevice to core
2020-12-02 13:23:02 -08:00
Scott Shawcroft
608c98501b
Merge remote-tracking branch 'adafruit/main' into msgpack
2020-12-02 13:10:39 -08:00
Scott Shawcroft
d7ba641ff6
Merge pull request #3767 from dhalbert/sleep
...
Initial alarm and sleep PR: time alarms with light and deep sleep; PinAlarms not yet implemented
2020-12-02 12:51:43 -08:00
gamblor21
cb863e4c5c
Added to partial builds where frozen removed
2020-12-01 22:19:48 -06:00
Bernhard Boser
59c3e25168
disable on boards tight on memory. add stddef.h to imports (not actually needed).
2020-12-01 18:39:24 -08:00
Dan Halbert
8b7c23c1ee
address review comments
2020-12-01 20:01:14 -05:00
Mark
237385798c
Merge branch 'main' into bus_device
2020-12-01 15:47:16 -06:00
Scott Shawcroft
a975ef4971
Merge pull request #3695 from cwalther/movable
...
Add movable supervisor allocations
2020-11-30 16:00:55 -08:00
Scott Shawcroft
98cf7f67d4
Merge pull request #3773 from dhalbert/no-samd21-complex-arithmetic
...
Disable complex arithmetic on SAMD21 builds to make space
2020-11-30 13:47:56 -08:00
Dan Halbert
dbfabddf58
rename ESP TX and RX pins; remove support
2020-11-30 11:11:04 -05:00
Dan Halbert
9768951a2a
Disable complex arithmetic on SAMD21 builds to make space
2020-11-29 15:34:38 -05:00
Dan Halbert
848eb28132
esp-uart-pins
2020-11-28 14:52:56 -05:00
Christian Walther
c7404a3ff8
Add movable allocation system.
...
This allows calls to `allocate_memory()` while the VM is running, it will then allocate from the GC heap (unless there is a suitable hole among the supervisor allocations), and when the VM exits and the GC heap is freed, the allocation will be moved to the bottom of the former GC heap and transformed into a proper supervisor allocation. Existing movable allocations will also be moved to defragment the supervisor heap and ensure that the next VM run gets as much memory as possible for the GC heap.
By itself this breaks terminalio because it violates the assumption that supervisor_display_move_memory() still has access to an undisturbed heap to copy the tilegrid from. It will work in many cases, but if you're unlucky you will get garbled terminal contents after exiting from the vm run that created the display. This will be fixed in the following commit, which is separate to simplify review.
2020-11-28 17:50:23 +01:00
Dan Halbert
28d9e9186e
Disable complex arithmetic on SAMD21 builds to make space
2020-11-28 10:12:46 -05:00
Dan Halbert
104a089677
deep sleep working; deep sleep delay when connected
2020-11-26 22:06:37 -05:00
Dan Halbert
ef0830bfe2
merge from upstream + wip
2020-11-25 17:52:06 -05:00
Jeff Epler
e778fc1f87
Merge pull request #3741 from hathach/fix-cdc-connection-race
...
update tinyusb to fix cdc connection race
2020-11-24 19:11:41 -06:00
Scott Shawcroft
8364734ba3
Merge pull request #3749 from skerr92/add-cpsapling-spiflash
...
Add cpsapling spiflash
2020-11-24 15:22:21 -08:00
Jeff Epler
c451b22255
Disable 3-arg pow() function on m0 boards
...
`pow(a, b, c)` can compute `(a ** b) % c` efficiently (in time and memory).
This can be useful for extremely specific applications, like implementing
the RSA cryptosystem. For typical uses of CircuitPython, this is not an
important feature. A survey of the bundle and learn system didn't find
any uses.
Disable it on M0 builds so that we can fit in needed upgrades to the USB
stack.
2020-11-24 16:54:33 -06:00
Seth Kerr
686edcef3f
fixing PID issues with CI Test (whoops)
2020-11-24 07:41:32 -05:00
Seth Kerr
e5cee98977
removing icy tree files/directory
2020-11-23 19:31:06 -05:00
Seth Kerr
2635132ce5
adding 'haxpress' kind of build for CP Sapling for use with SPI Flash
2020-11-23 19:21:12 -05:00
Scott Shawcroft
491e314799
Merge pull request #3718 from jepler/epd-rotation
...
EPaperDisplay: add rotation property
2020-11-23 15:04:26 -08:00
Dan Halbert
a0f1ec3c4a
wip
2020-11-22 19:10:09 -05:00
Dan Halbert
75559f35cc
wip: ResetReason to microcontroller.cpu
2020-11-21 23:29:52 -05:00
Seth Kerr
1c92b1bf61
forgot to run pre-commit local
2020-11-20 15:35:52 -05:00
Seth Kerr
c4f4cdd8c1
readding cp_sapling directory
2020-11-20 15:31:49 -05:00
Seth Kerr
29e91424d4
removing cp sapling temporarily to read
2020-11-20 15:29:35 -05:00
Seth Kerr
b69bbfa3d6
fixed issues with trailing whitespace check
2020-11-20 15:17:44 -05:00
Seth Kerr
0a06530d52
adding CP-Sapling
2020-11-20 15:06:57 -05:00
Jeff Epler
aaca3eccf1
samd: PDMIn: Reduce code unrolling on samd21 only
...
Instead of unrolling the code 16 times, unroll it 4 times and loop
over it 4 times. This gives the same 16 iterations, but at an expense
of less flash space.
2020-11-19 16:19:37 -06:00
Jeff Epler
0556f9f851
Revert "samd21: Enable terse error reporting on resource constrained chip family"
...
This reverts commit 9a642fc049
.
2020-11-19 15:12:56 -06:00
Jeff Epler
9a642fc049
samd21: Enable terse error reporting on resource constrained chip family
...
This reclaims over 1kB of flash space by simplifying certain exception
messages. e.g., it will no longer display the requested/actual length
when a fixed list/tuple of N items is needed:
if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE) {
mp_raise_ValueError(translate("tuple/list has wrong length"));
} else {
mp_raise_ValueError_varg(translate("requested length %d but object has length %d"),
(int)len, (int)seq_len);
Other chip families including samd51 keep their current error reporting
capabilities.
2020-11-18 20:37:36 -06:00
Dan Halbert
ffff02c053
Merge remote-tracking branch 'adafruit/main' into sleep
2020-11-16 12:06:11 -05:00
Dan Halbert
bb77f1d130
wip: initial code changes, starting from @tannewt's sleepio branch
2020-11-16 11:56:20 -05:00
Scott Shawcroft
bda3267432
Save flash space
...
* No weak link for modules. It only impacts _os and _time and is
already disabled for non-full builds.
* Turn off PA00 and PA01 because they are the crystal on the Metro
M0 Express.
* Change ejected default to false to move it to BSS. It is set on
USB connection anyway.
* Set sinc_filter to const. Doesn't help flash but keeps it out of
RAM.
2020-11-13 18:57:52 -08:00
Scott Shawcroft
68eb809fbf
Update parallel bus signatures
2020-11-13 18:57:52 -08:00
Scott Shawcroft
c9952798fb
Merge pull request #3683 from BHDynamics/dynossat_edu
...
Rename pins on dynossat_edu_eps to make them the same as the Arduino core
2020-11-12 12:33:16 -08:00
Enrique Casado
aa68b17223
Freed some more space
2020-11-12 13:26:26 +01:00
Enrique Casado
9774736a50
Rename pins to make them the same as the Arduino core
2020-11-12 12:30:34 +01:00
gamblor21
23ed3ef971
Removing frozen libs
2020-11-11 11:36:04 -06:00
gamblor21
f61c4e62c1
Removing from smaller builds
2020-11-11 10:24:33 -06:00
Dan Halbert
36a8828fa3
Merge pull request #3632 from dhalbert/add-binascii
...
add binascii to most builds
2020-11-05 16:16:41 -05:00
Scott Shawcroft
e02539bdf5
Merge pull request #3633 from ITACAInnovation/patch-2
...
Update pins.c
2020-11-04 10:30:09 -08:00
ITACA Innovation S.R.L
ca935c0daf
Update pins.c
...
Changed builtin to standard
2020-11-03 21:22:19 +01:00
Scott Shawcroft
441c2c41fb
Merge pull request #3641 from adafruit/6.0.x
...
Merge 6.0.x bugfixes to main
2020-11-03 09:46:44 -08:00
Dan Halbert
1f7a3f0dfa
Rev C Feather M4 CAN pin changes
2020-11-02 15:28:30 -05:00
Brian Dean
041c2a9f61
.../boards/bdmicro_vina_d51: PAD updates for better resource flexibility.
2020-11-02 08:35:25 -05:00
ITACA Innovation S.R.L
4e52757f26
Update pins.c
...
Added LED, BOOST_EN and VEXT_SELECT pins.
2020-11-01 22:22:55 +01:00
Dan Halbert
72b829dff0
add binascii to most builds
2020-11-01 14:52:03 -05:00
Jerry Needell
1762a36438
restore analogio to feather_m0_rfm9x/rfm69 builds
2020-11-01 05:46:13 -05:00
Dan Halbert
144eb131ae
Merge pull request #3627 from adafruit/6.0.x
...
Merge 6.0.x bugfixes to main
2020-10-31 12:28:20 -04:00
ITACA Innovation S.R.L
9a8484b853
Update mpconfigboard.h
...
Removed ignore PA30 PA31 in order to allow using them as pinout
2020-10-31 11:06:56 +01:00
ITACA Innovation S.R.L
a7616808e9
Updated pinout
2020-10-31 10:12:49 +01:00
Dan Halbert
59b9ca409c
matrixportal ESP TX and RX pins were swapped
2020-10-28 20:33:10 -04:00
microDev
930cf14dce
Add check for invalid io, function to disable all alarms
2020-10-27 16:17:26 -07:00
microDev
e35938971a
Add description of alarm modules
2020-10-27 16:16:55 -07:00
Scott Shawcroft
54c0e98a37
Fix openbook build
2020-10-27 13:58:23 -07:00
Jeff Epler
fa4c4c2c10
Merge pull request #3587 from adafruit/6.0.x
...
Merge in two fixes from 6.0.x
2020-10-21 20:12:20 -05:00
Scott Shawcroft
1a677406bf
Merge pull request #3529 from jensechu/color-converter-transparency
...
displayio: Pass transparent_color to ColorConverter
2020-10-20 10:41:57 -07:00
Scott Shawcroft
8beb36c240
Use one lto partition
...
This leads to smaller code size at the expense of slower linking.
We can turn partitioning back on with GCC10 because it produces smaller code.
2020-10-20 09:24:03 -07:00
Christian Walther
1eab0692b5
Fix missing nproc
on macOS.
...
396979a
breaks building on macOS: `nproc` is a Linux thing, use a cross-platform alternative.
2020-10-20 16:39:32 +02:00
Scott Shawcroft
eb139c9bab
Correct pins to not reset.
...
They must have the PORT_ prefix otherwise they mask the wrong pins.
Fixes #3552
2020-10-19 17:41:16 -07:00
Jeff Epler
cc411f47eb
samd: Update peripherals submodule
...
(https://github.com/adafruit/samd-peripherals/pull/37 )
2020-10-17 20:08:32 -05:00
Jeff Epler
fb768dfc14
samd: AnalogOut: Better handle boards which IGNOREd analog pins
2020-10-17 20:08:32 -05:00
Jeff Epler
194d99f588
sparkfun_lumidrive: Can't IGNORE pins that are default bus pins
...
The SDA, SCL, and MISO pins were ignored. This error was not diagnosed
before now.
2020-10-17 20:08:32 -05:00
Jeff Epler
eb0b023dee
samd: extend IGNORE_PIN_foo to all sam e5x/e5x pins
2020-10-17 20:08:32 -05:00
Jeff Epler
4b9fc5de53
samd: update peripherals submodule
...
this is possible now that the undefined reference to pin_PA30 has been
resolved.
2020-10-17 20:08:32 -05:00
Jeff Epler
aa3c890ead
samd: pin: Fix 'undefined reference to pin_PA30'
...
.. when PA30 is IGNOREd
2020-10-17 20:08:32 -05:00
Jeff Epler
396979a67e
atmel-samd: parallelize lto linking
...
This decreases the link time, especially on desktop machines with many CPU
cores. However, it does come at a slight cost in binary size, making the flash
section about 200 bytes bigger for circuitplayground_express.
Before, linking build-circuitplayground_express/firmware.elf takes
8.8s elapsed time, leaving 3128 bytes free in flash.
After, linking build-circuitplayground_express/firmware.elf takes 2.8s elapsed
time, leaving 2924 bytes free in flash. (-6 seconds, -204 bytes free)
If necessary, we can make this per-board or even per-translation to squeeze full
builds.
2020-10-17 20:08:32 -05:00
Scott Shawcroft
878f2322e7
Merge pull request #3564 from BHDynamics/dynossat_edu
...
Add DynOSSAT-EDU boards
2020-10-16 11:30:42 -07:00
Enrique Casado
6631c8d393
Add USB VID&PID
2020-10-16 13:52:46 +02:00
Dan Halbert
12ed3fc72f
disable on winterbloom_sol and thunderpack
2020-10-15 18:48:28 -04:00
Dan Halbert
f51e75c1d2
cxd56 needed more precise include for __packed; needed SRC_C += on some ports
2020-10-15 15:24:24 -04:00
Dan Halbert
82b49afe43
enable CIRCUITPY_BLEIO_HCI on non-nRF boards where it will fit
2020-10-15 11:27:21 -04:00
Enrique Casado
97fae54659
Add DynOSSAT-EDU boards
2020-10-15 12:39:14 +02:00
Dan Halbert
f1e8f2b404
Merge pull request #3554 from gamblor21/move_ordereddict
...
Moved ORDEREDDICT define to central location
2020-10-14 22:39:04 -04:00
gamblor21
0a9bcc538b
Removed ordered dict for all SAMD21
2020-10-14 20:15:21 -05:00
Brian Dean
852a91e1b7
boards/bdmicro_vina_d51/pins.c: Fix illegal QSTR name (hyphen).
2020-10-14 08:29:28 -04:00
Limor "Ladyada" Fried
e9c04bc1f0
Merge pull request #3550 from bd34n/bdmicro_vina_d51
...
Add new board to atmel-samd port: bdmicro_vina_d51
2020-10-13 23:15:25 -04:00
gamblor21
4270061db4
Moved ORDEREDDICT define to central location
2020-10-13 18:52:27 -05:00
Brian Dean
2b33968a1e
Add new board to atmel-samd port: bdmicro_vina_d51
2020-10-13 16:46:25 -04:00
Scott Shawcroft
2bc40bcadf
Remove readreq when changing continuous
2020-10-13 10:15:34 -07:00
Scott Shawcroft
379e73af2e
Finer grained, per port tick locking
...
Fixes #3504 hopefully.
2020-10-12 18:43:21 -07:00
Scott Shawcroft
bb046f9983
Merge pull request #3540 from WarriorOfWire/async_syntax
...
__await__ magic method and async/await
2020-10-12 15:31:43 -07:00
Kenny
10badd93c3
leftover newlines
2020-10-11 22:52:27 -07:00
Kenny
94beeabc51
remove unnecessary board configuration and address feedback
2020-10-11 22:42:59 -07:00
Kenny
3c46e3a6aa
Turn off async for circuitplayground express
...
Firmware too large
2020-10-11 08:16:36 -07:00
warriorofwire
f5f1e29dc0
disable async/await on a several small ucontrollers
2020-10-10 15:43:12 -07:00
Radomir Dopieralski
3f6ca7bd32
Make end-of-line-fixer happy
2020-10-10 23:59:44 +02:00
Radomir Dopieralski
b227b79dec
Fix #3504 : Don't use time module in pew.tick()
...
The time.sleep() and time.monotonic() functions break the timer
interrupt on which PewPew10 display relies, so we can't use them
anymore. Instead I'm adding a time-keeping function to the display
code itself, which then can be used in pew.tick() internally.
2020-10-10 20:26:33 +02:00
lady ada
70a94c8d2d
fix for https://github.com/adafruit/circuitpython/issues/3534
2020-10-10 12:27:35 -04:00
Scott Shawcroft
3ccf644dd0
Fix autoreload on SAMD21
...
The issue was that a time.sleep() would set the RTC wake up
further into the future even if we wanted to tick every ms. Ticking
every ms is used to time the autoreload delay and without it,
autoreload doesn't work.
Fixes #3528
2020-10-09 12:53:00 -07:00
gamblor21
085d2a2274
Update submodule to merge commit
2020-10-07 14:09:26 -05:00
Jeff Epler
16ed875f4e
canio: remove unused fields
...
these relate to properties that were removed as well
2020-10-06 20:14:50 -05:00
Scott Shawcroft
d62ac24493
Merge pull request #3469 from jepler/noreturn
...
Add some NORETURN attributes
2020-10-01 11:18:36 -07:00
Scott Shawcroft
5ac3c36d64
Merge pull request #3450 from mdroberts1243/New_quirk_for_SH1107
...
New quirk for sh1107
2020-09-30 12:03:10 -07:00
Jeff Epler
c129c8f296
Merge remote-tracking branch 'origin/main' into canbus-api-changes
2020-09-29 20:15:11 -05:00
Jeff Epler
2bb44f6c4d
Merge pull request #3486 from microDev1/fixTranslate
...
Update make translate script
2020-09-29 14:32:49 -05:00
Jeff Epler
611f81ac1a
canio: actually drop the _error_count properties
...
thanks @tannewt
2020-09-29 14:25:53 -05:00
microDev
4c7d9e3aaf
Update make translate script
2020-09-29 11:14:30 +05:30
Jeff Epler
726dcdb60a
Add some NORETURN attributes
...
I have a function where it should be impossible to reach the end, so I put in a safe-mode reset at the bottom:
```
int find_unused_slot(void) {
// precondition: you already verified that a slot was available
for (int i=0; i<NUM_SLOTS; i++) {
if( slot_free(i)) {
return i;
}
}
safe_mode_reset(MICROPY_FATAL_ERROR);
}
```
However, the compiler still gave a diagnostic, because safe_mode_reset was not declared NORETURN.
So I started by teaching the compiler that reset_into_safe_mode never returned. This leads at least one level deeper due to reset_cpu needing to be a NORETURN function. Each port is a little different in this area. I also marked reset_to_bootloader as NORETURN.
Additional notes:
* stm32's reset_to_bootloader was not implemented, but now does a bare reset. Most stm32s are not fitted with uf2 bootloaders anyway.
* ditto cxd56
* esp32s2 did not implement reset_cpu at all. I used esp_restart(). (not tested)
* litex did not implement reset_cpu at all. I used reboot_ctrl_write. But notably this is what reset_to_bootloader already did, so one or the other must be incorrect (not tested). reboot_ctrl_write cannot be declared NORETURN, as it returns unless the special value 0xac is written), so a new unreachable forever-loop is added.
* cxd56's reset is via a boardctl() call which can't generically be declared NORETURN, so a new unreacahble "for(;;)" forever-loop is added.
* In several places, NVIC_SystemReset is redeclared with NORETURN applied. This is accepted just fine by gcc. I chose this as preferable to editing the multiple copies of CMSIS headers where it is normally declared.
* the stub safe_mode reset simply aborts. This is used in mpy-cross.
2020-09-28 18:55:56 -05:00
mdroberts1243
b1e1237887
Merge branch 'main' into New_quirk_for_SH1107
2020-09-28 19:40:47 -04:00
Jeff Epler
f4e36fc7f6
CAN: Use mp_obj_t insteaed of canio_message_obj_t, get rid of rtr field
2020-09-28 17:22:00 -05:00
Jeff Epler
3e97e9c4be
canio: Listener: shuffle function declarations around
2020-09-28 17:22:00 -05:00
Jeff Epler
48bda589b8
Listerner: read -> receive, drop readinto
...
This prepares for creating a separate RemoteTransmissionRequest class
2020-09-28 17:22:00 -05:00
Jeff Epler
79ca430ddf
Match: address -> id
2020-09-28 17:22:00 -05:00
Anson He
96323ac3ac
Default power on Wio Terminal's 40 Pin
2020-09-27 10:21:25 +08:00
Jeff Epler
791d20f16c
give qtpy haxpress its own USB PID
2020-09-26 11:45:53 -05:00
Jeff Epler
9944935fde
qtpy haxpress: enable RTC
2020-09-26 11:33:10 -05:00
Mark Roberts
22a7696fac
Changes take 2: missed ugame10 board
2020-09-25 22:17:59 -04:00