Skip to content

Initial support for RMT in ESP32-H2 #556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 23, 2023

Conversation

SergioGasquez
Copy link
Member

@SergioGasquez SergioGasquez commented May 23, 2023

  • Adds initial support for RMT and the pulse_control example.
  • Enable esp-hal-smartled for ESP32-H2
  • Updated documentation for all pulse_control examples
  • Adds the ram example

For testing purposes I am using my forked PAC, this needs to be updated once that esp-rs/esp-pacs#121 is merged and before merging this PR, hence the Draft PR. Updated!

Here is the LA capture of the pulse_control example:
Screenshot from 2023-05-23 10-55-34

Here is the output of the ram example:

I (212) boot: Disabling RNG early entropy source...
W (217) bootloader_random: bootloader_random_disable() has not been implemented yet
RAM function located at 0x40804008
0x40804008 - ram::function_in_ram
    at /home/sergio/Documents/Espressif/forks/esp-hal/esp32h2-hal/examples/ram.rs:100
SOME_INITED_DATA [aa, bb]
SOME_UNINITED_DATA [7b, 3a]
SOME_ZEROED_DATA [0, 0, 0, 0, 0, 0, 0, 0]
SOME_INITED_DATA [ff, bb]
SOME_UNINITED_DATA [7b, 3a]
SOME_ZEROED_DATA [ff, 0, 0, 0, 0, 0, 0, 0]
Counter 0
RTC_FAST function located at 0x50000000
0x50000000 - ram::function_in_rtc_ram
    at /home/sergio/Documents/Espressif/forks/esp-hal/esp32h2-hal/examples/ram.rs:105
Result 42
Hello world!
Hello world!
Hello world!

@SergioGasquez SergioGasquez marked this pull request as draft May 23, 2023 09:01
@SergioGasquez SergioGasquez requested a review from jessebraham May 23, 2023 09:01
@SergioGasquez SergioGasquez marked this pull request as ready for review May 23, 2023 14:08
@SergioGasquez SergioGasquez requested a review from bjoernQ May 23, 2023 14:15
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jessebraham jessebraham merged commit 14ac8c3 into esp-rs:main May 23, 2023
@SergioGasquez SergioGasquez deleted the feature/esp32h2-rmt branch May 23, 2023 20:01
SergioGasquez added a commit to SergioGasquez/esp-hal that referenced this pull request Jun 9, 2023
* feat: ✨ Enable RMT peripheral

* feat: ✨ Rename RMT GPIOs

* feat: ✨ Add clock source, ram size and ram start

* feat: ✨ Rename GPIOs

* feat: ✨ Add pulse_control example

* fix: 🐛 Fix example clock

* feat: ✨ Initial support for H2

* fix: 📝 Fix typo

* ci: ✨ Enable check on H2

* build: 📌 Update esp-pac revision, use fork

* docs: 📝 Update example documentation

* docs: 📝 Add todo

* docs: 📝 Update changelog

* feat: ✨ Add ram example

* build: 📌 Update H2 PAC

* docs: 📝 Remove todo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants