Scott Shawcroft
76033d5115
Merge MicroPython v1.11 into CircuitPython
2021-04-26 15:47:41 -07:00
Dan Halbert
9d1fcc3b14
merge from main
2021-04-25 10:27:52 -04:00
Artyom Skrobov
4e3c1d4a4c
[build] Allow USB to be set to 0
...
Unify USB-related makefile var and C def as CIRCUITPY_USB.
Always define it as 0 or 1, same as all other settings.
USB_AVAILABLE was conditionally defined in supervisor.mk,
but never actually used to #ifdef USB-related code.
Loosely related to #4546
2021-04-23 11:13:34 -04:00
Dan Halbert
64e0958916
wip: descriptor building
2021-04-21 23:25:36 -04:00
Lucian Copeland
8ce89860e6
Pass pre-commit formatting
2021-04-21 17:34:13 -04:00
Lucian Copeland
e0024c70de
Merge remote-tracking branch 'upstream/main' into stm-alarm
2021-04-15 16:32:30 -04:00
Artyom Skrobov
92d7f31046
[synthio] disable in stm32f411ce_blackpill_with_flash
...
region `FLASH_FIRMWARE' overflowed by 228 bytes
2021-04-13 03:01:55 -04:00
Kevin Lutzer
4fb3139273
switch orders the flash memory is listed
2021-04-08 21:56:25 -06:00
Kevin Lutzer
c672b33770
add W25Q64JVxQ as a supported flash for stm32f411 black pill
2021-04-08 21:53:38 -06:00
Artyom Skrobov
4ee781227f
[meowbit] change board.BUZZ type to PWMAudioOut,
...
as advised in #4257
2021-04-03 13:35:19 -04:00
Lucian Copeland
8a2143f161
Clean up comments and debugging pins
2021-04-02 17:40:40 -04:00
Lucian Copeland
9240146b22
Make light sleep store true alarm object to global map
2021-04-02 16:58:42 -04:00
Lucian Copeland
66a1583183
Implement fake and true deep sleep alarm differentiation
2021-04-02 15:13:10 -04:00
Lucian Copeland
17585e1e07
Clean up API
2021-04-02 14:08:48 -04:00
Lucian Copeland
91e530d36c
Resolve wake alarm crash
2021-04-02 13:42:22 -04:00
Lucian Copeland
4f52554eb3
Fix to RTC reset
2021-04-01 20:53:25 -04:00
Lucian Copeland
d35a307ffa
Merge branch 'sleep-api-update' into stm-alarm
2021-03-29 12:27:25 -04:00
Lucian Copeland
529fb52309
Style changes and wakeup detection
2021-03-27 13:16:12 -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
Scott Shawcroft
aec0ef3cbf
Switch devices.h to nvm.toml data
2021-03-25 09:57:18 -07:00
Lucian Copeland
d8a2d69e10
Working deep sleep via RTC reset, with debug pins
2021-03-21 13:15:44 -04:00
Dan Halbert
d7a2ae9df7
fix stm compiler error
2021-03-19 11:04:46 -04:00
Dan Halbert
b2d913412f
merge from upstream
2021-03-18 23:14:43 -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
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
gamblor21
56a219911f
Add frequency support to parallel bus
2021-03-11 19:32:43 -06:00
Lucian Copeland
6b2c9985ff
Extract RTC, implement fake RTC deepsleep
2021-03-11 17:50:05 -05:00
Scott Shawcroft
0e451a1681
Merge pull request #4383 from hierophect/stm32-uart-dereserve
...
STM32: Fix UART deinit
2021-03-11 10:48:01 -08:00
Lucian Copeland
0b73c7a212
Update F407 to match F405
2021-03-11 11:27:17 -05:00
Lucian Copeland
1ebbd14d0f
Fix UART deinit
2021-03-11 11:02:13 -05:00
Dan Halbert
08c5dbb003
use return values in STM PWMOut constructor, not exceptions
2021-03-11 08:52:47 -05:00
Jeff Epler
cdb0fda72a
Merge remote-tracking branch 'origin/main' into count-flash-devices
2021-03-07 20:26:04 -06:00
Jeff Epler
f1ada8e880
Automatically count EXTERNAL_FLASH_DEVICES
2021-03-07 11:48:39 -06:00
jerryneedell
a23129bc49
add GD25Q16C flash to BlackPill
2021-03-07 17:23:39 +00:00
Artyom Skrobov
4720dc179a
[stm] curr_pulseout
can be STATIC
...
Not used outside of PulseOut.c
2021-03-05 12:52:13 +02: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
Lucian Copeland
f1792c8474
Extract EXTI, create base sleep framework
2021-03-02 11:41:53 -05:00
Jeff Epler
1d1ff5f308
Merge remote-tracking branch 'origin/main' into update-protomatter-rp2
2021-02-26 09:56:35 -06:00
Kevin Matocha
a7a4f93ff8
Updated build configs to turn off BITMAPTOOLS for smaller builds
2021-02-25 15:44:32 -06:00
Dan Halbert
67406488d1
merge from upstream; re-alphabetize
2021-02-19 14:22:50 -05:00
Dan Halbert
e344c6d684
fix some builds
2021-02-18 14:24:58 -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
Lucian Copeland
edb7f2d807
Free up space for JA build
2021-02-11 16:30:27 -05:00
Lucian Copeland
d00bee2149
Fix I2C Repeated start error by converting to IT mode
2021-02-10 14:59:19 -05:00
Dan Halbert
0802b22ed6
usb descriptors all set; rework of enabling for USB devices
2021-02-04 19:23:40 -05: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
69869e1439
CIRCUITPY_* switches for JSON, RE, etc. Doc cleanup
2021-01-24 23:10:20 -05:00
Jonathan Giles
55c6d3e92f
1. Rename 'stm32f411ce_blackpill_haxpress' to 'stm32f411ce_blackpill_with_flash'
...
2. Add 'W25Q64JV_IQ' to flash chip list (as per commercial version)
2021-01-19 11:48:15 -05:00
djix123
b4bdf55eda
Update ports/stm/boards/stm32f411ce_blackpill_haxpress/mpconfigboard.mk
...
Update PID for _with_flash version to resolve duplicate PID issue
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2021-01-19 11:35:52 -05:00
djix123
4804032f09
Update ports/stm/boards/stm32f411ce_blackpill_haxpress/mpconfigboard.mk
...
Change name from _haxpress to _with_flash
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2021-01-19 11:35:03 -05:00
djix123
c8046af6e7
Update ports/stm/boards/stm32f411ce_blackpill_haxpress/mpconfigboard.h
...
Change name from _haxpress to _with_flash
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2021-01-19 11:34:47 -05:00
Jonathan Giles
ebb4df846f
Add support for a 'haxpress' external SPI flash build for the stm32f411ce blackpill board
2021-01-19 07:46:59 -05:00
gamblor21
41b9196167
Disabling in more small boards
2021-01-17 00:00:06 -06:00
microDev
dc332baa87
update common_hal_reset_pin()
2020-12-28 20:04:00 +05:30
Jonathan Giles
aaa3c61819
Add default I2C pins for STM32F411CE
2020-12-22 09:11:05 -05:00
Dan Halbert
39ca406a31
Add Adafruit to MICROPY_HW_BOARD_NAME for various boards
2020-12-21 23:32:11 -05:00
Dan Halbert
8f9cd7075e
Merge pull request #3752 from jepler/gcc10
...
build: Update to gcc10
2020-12-17 11:03:40 -05: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
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
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
Dan Halbert
8b7c23c1ee
address review comments
2020-12-01 20:01:14 -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
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
jgillick
f8499a468e
Remove filesystem from linker script.
2020-11-23 22:56:38 -08:00
jgillick
570353b946
Merge remote-tracking branch 'circuitpython/main' into thunderpack1.2
2020-11-23 22:40:47 -08:00
Jeff Epler
70e978f48b
stm: disable ulab on two resource-constrained boards
2020-11-23 10:23:53 -06:00
jgillick
4c5e7520f5
Fix NVM by clearing FLASH_FLAG_PGPERR
2020-11-23 00:25:41 -08:00
jgillick
661c20dd18
Create a new linker script with more space for the firmware.
2020-11-22 18:25:37 -08:00
Dan Halbert
a0f1ec3c4a
wip
2020-11-22 19:10:09 -05:00
jgillick
fe6e50b770
Update USB_PID
2020-11-22 01:49:23 -08:00
jgillick
56634eb00e
Rename thunderpack to v11
2020-11-22 01:31:41 -08:00
jgillick
381889f6bc
Cleanup
2020-11-22 01:19:28 -08:00
jgillick
0b858440b0
Fix formatting.
2020-11-22 01:15:05 -08:00
jgillick
63b0bf9075
Merge remote-tracking branch 'origin/main' into thunderpack1.2
2020-11-22 01:07:03 -08:00
Dan Halbert
75559f35cc
wip: ResetReason to microcontroller.cpu
2020-11-21 23:29:52 -05:00
jgillick
5f0a372a22
Merge tag '6.0.0' into thunderpack1.2
2020-11-17 00:02:24 -08:00
jgillick
119e9d3820
Add Thunderpack 1.2
2020-11-16 23:50:00 -08:00
Dan Halbert
ffff02c053
Merge remote-tracking branch 'adafruit/main' into sleep
2020-11-16 12:06:11 -05:00
Scott Shawcroft
68eb809fbf
Update parallel bus signatures
2020-11-13 18:57:52 -08: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
Dan Halbert
12ed3fc72f
disable on winterbloom_sol and thunderpack
2020-10-15 18:48:28 -04: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
4270061db4
Moved ORDEREDDICT define to central location
2020-10-13 18:52:27 -05:00
Scott Shawcroft
56427d9abe
Fix stm sleep too long
2020-10-13 14:02:29 -07:00
Scott Shawcroft
a0e5e961c5
Fix STM RTC read so it's atomic.
...
Fixes #3376
2020-10-12 17:43:25 -07: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
Jeff Epler
81d7ef0256
stm: canio: remove stray optimization flag for debugging
2020-10-06 20:13:23 -05:00
Jeff Epler
eed3387f4e
stm32: canio: Fix message cancellation
...
.. it's necessary to wait for a cancellation request to actually free
the respective Tx mailbox
2020-10-06 20:12:10 -05:00
Jeff Epler
abe0405d6e
stm32: canio: Fix canio.CAN.restart()
2020-10-06 20:12:06 -05:00
Jeff Epler
e5a0af9216
stm32: canio: When Tx mailboxes are full, cancel an old message
...
.. also add the 8ms wait for transmission that the atmel sam port
has
2020-10-06 20:11:58 -05:00
Jeff Epler
a7dccb39a4
stm32: canio: remove unused functions
2020-10-06 20:11:51 -05:00
Jeff Epler
23bd2496de
stm32: canio: remove some unneeded declarations
2020-10-06 20:11:43 -05:00
Jeff Epler
7df01d3fbd
stm32: canio: enable on all stm32f405 boards
2020-10-06 20:11:39 -05:00