Commit Graph

1582 Commits

Author SHA1 Message Date
bjoernQ
ec60c4b5fe ESP32-C2 APB clock is 40MHz, not 80MHz 2022-11-02 13:11:00 +01:00
Björn Quentin
5d8d276577
Merge pull request #243 from icedrocket/main
Fix typo
2022-11-02 11:22:23 +01:00
icedrocket
e28a7d1ba0 Fix typo 2022-11-01 20:32:55 +09:00
Jesse Braham
e040b55fd9 Check each supported chip with the direct-boot feature enabled as well 2022-10-31 10:18:22 -07:00
bjoernQ
ad1970c6b7 Offer DMA channel 3 and 4 on ESP32-S3 2022-10-31 07:09:15 -07:00
Björn Quentin
9152792d5f
Merge pull request #239 from dimpolo/start_app_core_improvements
cpu_control::start_app_core improvements
2022-10-31 15:00:08 +01:00
dimi
2f3b6c843c remove lifetime annotations from cpu_control::start_app_core 2022-10-31 14:46:31 +01:00
dimi
5cf6079054 cpu_control::start_app_core improvements
* add `Send` bound
* move `#[must_use]` to `AppCoreGuard`
* remove redundant `-> ()`
* document guard behaviour
2022-10-31 13:28:56 +01:00
Björn Quentin
5aedd3e58c
Merge pull request #238 from bjoernQ/bugfix/fix-esp32s3-direct-boot
Add high level CPU interrupts for ESP32-S3 direct-boot
2022-10-31 12:28:18 +01:00
bjoernQ
c17ae772f6 Add high level CPU interrupts for ESP32-S3 direct-boot 2022-10-31 08:21:33 +01:00
Björn Quentin
8ec46df825
Merge pull request #234 from jessebraham/feature/dma
Add DMA support for ESP32-C2 and ESP32-S3
2022-10-28 16:15:28 +02:00
Jesse Braham
4f18e2c846 Update the priority enum and add missing channels for ESP32-S3 2022-10-28 06:51:10 -07:00
Björn Quentin
79e1465062
Merge pull request #235 from jeancf/change_spi_bus_freq
Add method to change SPI bus frequency
2022-10-28 14:07:56 +02:00
JCF
a7d561ec26 Added method to change bus frequency to Spi struct 2022-10-28 11:15:39 +02:00
Jesse Braham
c642c79297 Add DMA support for ESP32-S3 2022-10-27 12:08:23 -07:00
Jesse Braham
e2df98da52 Add DMA support for ESP32-C2 2022-10-27 11:22:30 -07:00
bjoernQ
3e4710b822 Add DMA support for ESP32-S2 2022-10-25 07:38:45 -07:00
Björn Quentin
6d769ab274
Merge pull request #227 from bjoernQ/fix/multicore-example
Fix multicore example
2022-10-25 11:57:59 +02:00
bjoernQ
53ad16e9b7 Fix multicore example 2022-10-25 10:01:58 +02:00
Jesse Braham
a8e879b681
Merge pull request #49 from gustavonihei/feature/c3_mcuboot
ESP32-C3: Add support for booting from MCUboot bootloader
2022-10-24 13:25:31 -07:00
Gustavo Henrique Nihei
1ced513d96 Add documentation about supported boot methods
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-10-24 11:01:50 -03:00
Gustavo Henrique Nihei
3ff5da5aa7 esp-hal-common: Remove unnecessary unsafe block
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-10-24 09:52:46 -03:00
Gustavo Henrique Nihei
5cca83ca51 esp32c3: Set entry point address on MCUboot image header
Previously it assumed that the entry point was allocated at the
beginning of the ".rwtext" output section, which is not always true.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-10-24 09:52:46 -03:00
Gustavo Henrique Nihei
5b6c52c02c esp32c3: Add support for booting from MCUboot bootloader
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-10-24 09:37:52 -03:00
Björn Quentin
ca4f295f91
Merge pull request #223 from playfulFence/main
Fix lifetime error
2022-10-24 13:58:24 +02:00
playfulFence
4fb77df6ce Fix lifetime error 2022-10-24 13:09:06 +02:00
Björn Quentin
9744d12484
SPI-DMA for ESP32 (#216)
* SPI-DMA for ESP32

* MSRV Fix
2022-10-20 09:12:31 -07:00
Björn Quentin
d78cb10218
Merge pull request #217 from JurajSadel/esp32s3/adc
ESP32S3: Add ADC support
2022-10-20 17:58:43 +02:00
Juraj Sadel
d850b76246 ESP32S3: Add ADC support 2022-10-20 17:44:08 +02:00
Jesse Braham
00cba4485c Update esp-hal-common to use the newest PACs 2022-10-19 07:00:20 -07:00
Björn Quentin
d6f26428a1
Merge pull request #214 from jessebraham/fixes/c2-af
Add the Alternate Functions in the GPIO definitions for ESP32-C2
2022-10-14 07:47:24 +02:00
Jesse Braham
fcbeda0c5f Add the Alternate Functions in the GPIO definitions for ESP32-C2 2022-10-13 11:02:52 -07:00
bjoernQ
9cb24bb79f Basic DMA for ESP32-C3 2022-10-13 10:14:51 -07:00
Jesse Braham
f13c47f28f
Merge pull request #211 from jessebraham/feature/esp32c2
Add support for the ESP32-C2/ESP8684
2022-10-13 08:52:44 -07:00
Jesse Braham
908fb48e6c Remove some unused constants 2022-10-13 07:34:02 -07:00
Björn Quentin
6e9f629221
Merge pull request #210 from har7an/feature/spi-hardware-cs
SPI: Add hardware CS
2022-10-13 09:39:51 +02:00
Jesse Braham
e2b2d55bf8 Fix a bunch of cfg gates, use published version of PAC 2022-10-12 12:25:15 -07:00
Jesse Braham
5ddfacb1c6 Re-enable RTC in remaining examples, fix linker scripts, fix CI 2022-10-12 10:01:13 -07:00
Jesse Braham
2880ca4ca0 More corrections to clocks 2022-10-12 09:28:34 -07:00
Jesse Braham
d3f92db2ec Get the ADC example building, clean up some cfg gates
Note that this example still doesn't seem to be working correctly
2022-10-12 09:28:34 -07:00
Jesse Braham
312c41cee2 All examples building, many still have issues at runtime 2022-10-12 09:28:34 -07:00
Andreas Hartmann
159fe3b29b common/spi: Use constructor in add_device
to create a new `SpiBusDevice` instead of directly instantiating the
struct. `SpiBusDevice::new` takes care of setting up the CS line to be a
default-high output, too, which the raw struct doesn't.
2022-10-12 08:52:02 +02:00
Jesse Braham
76f803ae63 Make some corrections to clock/RTC_CNTL (still not working) 2022-10-11 10:12:42 -07:00
Jesse Braham
e402bf2564 Add a bunch of (untested) examples
Only a few left still to add
2022-10-11 10:12:42 -07:00
Jesse Braham
c55ef277d8 Add the ESP32-C2 to the CI workflow, update README 2022-10-11 10:12:42 -07:00
Jesse Braham
05fd5a64de Update dependencies, fix some errors after rebase, add RTC_CNTL 2022-10-11 10:12:42 -07:00
Jesse Braham
140333ff86 Begin adding some working examples 2022-10-11 10:11:36 -07:00
Jesse Braham
3019b78d6a Fix clock and GPIO drivers, add analog GPIO pins 2022-10-11 10:11:36 -07:00
Jesse Braham
f5f475923f Add startup code and build/linker scripts, add ADC, eFuse, GPIO, and TIMG 2022-10-11 10:11:36 -07:00
Jesse Braham
455965d471 Create the esp32c2-hal package and add it to the workspace
Add a feature for the ESP32-C2 to`esp-hal-common` and update some `cfg`s


Organize the `esp-hal-common` imports and exports and update to include the ESP32-C2
2022-10-11 08:03:43 -07:00