Commit Graph

263 Commits

Author SHA1 Message Date
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
Björn Quentin
82c3ca29be
Merge pull request #198 from rustbox/opt-level-z-check-prototype
Check for opt-level="z" in `build.rs`, provide feedback about dangers
2022-10-11 16:56:21 +02:00
Andreas Hartmann
2b98932028 common/spi: Implement hardware CS
Removes a lot of generic arguments and hard-codes the `SpiBusController`
and `SpiBusDevice` to work with the `Spi<T>` defined in the HAL instead.
This allows us to access the `cs_signal()` trait function from `T:
Instance`, which we need to connect/disconnect the CS I/O as
appropriate.
2022-10-11 16:06:45 +02:00
Björn Quentin
ed9a074a46
Merge pull request #209 from luojia65/patch-1
crate: update riscv dependency crate to v0.9.0
2022-10-10 08:06:29 +02:00
Luo Jia / Zhouqi Jiang
efced81d94
crate: update riscv dependency crate to v0.9.0
The `riscv` crate has introduced several fixes which newer users would take advantage of (https://github.com/rust-embedded/riscv/pull/112)
2022-10-08 20:18:49 +08:00
Jesse Braham
4cc7ed5c0a Mention esp-template in the README 2022-10-06 19:02:17 +02:00
Björn Quentin
af745ac7b0
Fix ESP32-C3 interrupt/exception handling (#207)
* Fix ESP32-C3 interrupt/exception handling

* Use riscv-atomic-emulation-trap 0.2.0
2022-10-05 14:15:17 +01:00
sethp
3832008565
Merge branch 'main' into opt-level-z-check-prototype 2022-09-30 07:52:41 -07:00
sethp
11e988b8f0
Fix message spelling
supress -> suppress

Co-authored-by: Gustavo Henrique Nihei <38959758+gustavonihei@users.noreply.github.com>
2022-09-30 07:51:25 -07:00
Jesse Braham
5054681ba3 Update to newest embedded-hal alpha and add embedded-hal-nb 2022-09-29 16:07:49 +02:00
Björn Quentin
b91d57af88
Merge pull request #202 from jessebraham/fixes/println
Use `esp_println` in favour of the Serial peripheral wherever possible
2022-09-29 08:40:59 +02:00
Jesse Braham
d885054fd2 Use esp_println in favour of the Serial peripheral wherever possible 2022-09-28 13:09:06 -07:00
Jesse Braham
288ab12787 Add a section to the README listing some other useful crates 2022-09-28 17:59:56 +02:00
Seth Pellegrino
3f704eba0d Reword message to make it clear user code will also fail 2022-09-27 08:35:32 -07:00
Seth Pellegrino
c6ac87f4dc Add check for opt-level="z" for esp32c3 2022-09-26 11:01:25 -07:00
Jesse Braham
7889a992d7 Add cfg symbols for SYSTIMER and USB_SERIAL_JTAG peripherals 2022-09-20 16:41:39 +02:00
Björn Quentin
f0350d4ffb
Merge pull request #194 from JurajSadel/refactor/rmt
RMT: Shouldn't be possible to assign pins multiple times into channel
2022-09-20 13:03:15 +02:00
Juraj Sadel
0f9fdb7c15 RMT: Shouldn't be possible to assign pins multiple times into channel 2022-09-20 12:33:17 +02:00
Björn Quentin
b1d5e37f36
Merge pull request #193 from bjoernQ/prepare_esp32s2_wifi
ESP32-S2: add WiFi sections and fix linker script
2022-09-20 09:26:50 +02:00
bjoernQ
2afa38b240 ESP32-S2: add wifi sections and fix linker script 2022-09-19 09:14:22 +02:00