Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module documentation #1763

Merged
merged 33 commits into from
Jul 9, 2024

Conversation

SergioGasquez
Copy link
Member

@SergioGasquez SergioGasquez commented Jul 5, 2024

Thank you for your contribution!

We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:

Submission Checklist 馃摑

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
  • My changes were added to the CHANGELOG.md in the proper section.
  • My changes are in accordance to the esp-rs API guidelines

Extra:

Pull Request Details 馃摉

Description

First PR for unifying the format of module documentation. Used this format:

//! # Peripheral Name (Peripheral Acronym)
//!
//! ## Overview
//! Small description of the peripheral, see ESP-IDF docs or TRM 
//! 
//! ## Configuration
//! Explain how can the peripheral be configured, and which parameters can be configured
//! 
//! ## Usage
//! Explain if we implement any external traits
//! 
//! ## Examples
//! ### Name of the Example
//! Small description of the example if needed
//! ```rust, no_run
//! ...
//! ```
//! ## Implementation State
//! Missing features...

Still a lot of modules to be updated, but this is already a big PR (sorry)

Should close #1660

Testing

Built the documentation and ran the doc-tests.

@SergioGasquez SergioGasquez added the skip-changelog No changelog modification needed label Jul 5, 2024
@jessebraham
Copy link
Member

Thanks for this. Will probably take me a couple days to review with that many files changes, can't see myself sitting down and just powering through all that, just FYI.

Copy link
Contributor

@JurajSadel JurajSadel left a comment

Choose a reason for hiding this comment

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

Thank you for working on this! LGTM, I left a few comments.

esp-hal/src/aes/mod.rs Outdated Show resolved Hide resolved
//! capable of measuring analog signals from specific analog I/O pins. One or
//! more ADC units are available, depending on the device being used.
//! ## Overview
//! The ADC is integrated on the chip, and is capable of measuring analog
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can leave the Analog to Digital Converter here?

//! precise control over voltage levels using one of the onboard
//! digital-to-analog converters (DAC).
//! ## Overview
//! Espressif devices usually have multiple DAC channels. Each DAC channel can
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above?

esp-hal/src/interrupt/mod.rs Outdated Show resolved Hide resolved
esp-hal/src/pcnt/mod.rs Outdated Show resolved Hide resolved
esp-hal/src/spi/mod.rs Show resolved Hide resolved
esp-hal/src/spi/slave.rs Show resolved Hide resolved
esp-hal/src/timer/timg.rs Outdated Show resolved Hide resolved
esp-hal/src/twai/mod.rs Outdated Show resolved Hide resolved
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.

Couple quick comments, I'm a little over half done reviewing and looks quite good so far. Will try to wrap this up later today or tomorrow morning.

esp-hal/src/interrupt/xtensa.rs Outdated Show resolved Hide resolved
esp-hal/src/dma/mod.rs Outdated Show resolved Hide resolved
@SergioGasquez SergioGasquez linked an issue Jul 9, 2024 that may be closed by this pull request
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.

Just a few more little things (sorry!) and then I think this is probably good to go.

esp-hal/src/rtc_cntl/sleep/mod.rs Outdated Show resolved Hide resolved
esp-hal/src/interrupt/mod.rs Outdated Show resolved Hide resolved
esp-hal/src/soc/esp32s2/gpio.rs Outdated Show resolved Hide resolved
esp-hal/src/soc/esp32s3/gpio.rs Outdated Show resolved Hide resolved
SergioGasquez and others added 11 commits July 9, 2024 17:21
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
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.

Thanks, LGTM!

Copy link
Contributor

@JurajSadel JurajSadel left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@jessebraham jessebraham added this pull request to the merge queue Jul 9, 2024
Merged via the queue into esp-rs:main with commit 8e0a201 Jul 9, 2024
30 checks passed
@SergioGasquez SergioGasquez deleted the feature/documentation branch July 9, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve module level documentation for GPIO
3 participants