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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of PWM functionality for RP2040. #3372

Closed
wants to merge 3 commits into from
Closed

Implementation of PWM functionality for RP2040. #3372

wants to merge 3 commits into from

Conversation

Ioan-Cristian
Copy link
Contributor

Pull Request Overview

This pull request adds PWM functionality to RP2040.

Testing Strategy

This pull request was tested using both unit test and integration tests on Raspberry Pi Pico W. The unit tests can be found inside chips/rp2040/src/pwm.rs and the integration tests in chips/rp2040/src/test/pwm.rs

TODO or Help Wanted

Running tests on other RP2040-based MCUs.

Documentation Updated

  • Added relevant documentation files.

Formatting

  • Ran make prepush.

Copy link
Contributor

@hudson-ayers hudson-ayers left a comment

Choose a reason for hiding this comment

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

Overall looks really good, love all the unit tests. A few comments

chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
chips/rp2040/src/pwm.rs Outdated Show resolved Hide resolved
@hudson-ayers hudson-ayers added the last-call Final review period for a pull request. label Jan 24, 2023
@hudson-ayers
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Jan 25, 2023
3366: Add core WG notes for 2022-12-16. r=hudson-ayers a=jrvanwhy

[Rendered](https://github.com/jrvanwhy/tock/blob/core-notes-2022-12-16/doc/wg/core/notes/core-notes-2022-12-16.md)

3368: ADC pending command functionality r=hudson-ayers a=TeodoraMiu

### Pull Request Overview

This pull request changes the way the ADC capsule receives commands from apps. Before this PR, the ADC capsule could only handle one command at a time. This PR would allow the ADC capsule to set an incoming command as pending if the requested ADC channel is already in use, and run the pending command after the currently active command finishes.


### Testing Strategy

This pull request was tested on a Microbit, using a fake ADC driver to simulate the case in which two commands can overlap.


### TODO or Help Wanted

Feedback is greatly appreciated.


### Documentation Updated

- [x] Updated the relevant files in `/docs`, or no updates are required.

### Formatting

- [x] Ran `make prepush`.


3372: Implementation of PWM functionality for RP2040. r=hudson-ayers a=Ioan-Cristian

### Pull Request Overview

This pull request adds PWM functionality to RP2040.


### Testing Strategy

This pull request was tested using both unit test and integration tests on Raspberry Pi Pico W. The unit tests can be found inside chips/rp2040/src/pwm.rs and the integration tests in chips/rp2040/src/test/pwm.rs


### TODO or Help Wanted

Running tests on other RP2040-based MCUs.


### Documentation Updated

- [x] Added relevant documentation files.

### Formatting

- [x] Ran `make prepush`.


Co-authored-by: Johnathan Van Why <jrvanwhy@google.com>
Co-authored-by: TeodoraMiu <teodora.miu01@gmail.com>
Co-authored-by: Teodora Miu <96741919+TeodoraMiu@users.noreply.github.com>
Co-authored-by: Ioan-Cristian CÎRSTEA <ioan-cristian.cirstea@tutanota.com>
@bors
Copy link
Contributor

bors bot commented Jan 25, 2023

Build failed (retrying...):

bors bot added a commit that referenced this pull request Jan 26, 2023
3368: ADC pending command functionality r=hudson-ayers a=TeodoraMiu

### Pull Request Overview

This pull request changes the way the ADC capsule receives commands from apps. Before this PR, the ADC capsule could only handle one command at a time. This PR would allow the ADC capsule to set an incoming command as pending if the requested ADC channel is already in use, and run the pending command after the currently active command finishes.


### Testing Strategy

This pull request was tested on a Microbit, using a fake ADC driver to simulate the case in which two commands can overlap.


### TODO or Help Wanted

Feedback is greatly appreciated.


### Documentation Updated

- [x] Updated the relevant files in `/docs`, or no updates are required.

### Formatting

- [x] Ran `make prepush`.


3372: Implementation of PWM functionality for RP2040. r=hudson-ayers a=Ioan-Cristian

### Pull Request Overview

This pull request adds PWM functionality to RP2040.


### Testing Strategy

This pull request was tested using both unit test and integration tests on Raspberry Pi Pico W. The unit tests can be found inside chips/rp2040/src/pwm.rs and the integration tests in chips/rp2040/src/test/pwm.rs


### TODO or Help Wanted

Running tests on other RP2040-based MCUs.


### Documentation Updated

- [x] Added relevant documentation files.

### Formatting

- [x] Ran `make prepush`.


Co-authored-by: TeodoraMiu <teodora.miu01@gmail.com>
Co-authored-by: Teodora Miu <96741919+TeodoraMiu@users.noreply.github.com>
Co-authored-by: Ioan-Cristian CÎRSTEA <ioan-cristian.cirstea@tutanota.com>
@bors
Copy link
Contributor

bors bot commented Jan 26, 2023

@alexandruradovici
Copy link
Contributor

@Ioan-Cristian can you please fix the conflicts.

@github-actions github-actions bot added documentation and removed HIL This affects a Tock HIL interface. labels Jan 26, 2023
@Ioan-Cristian
Copy link
Contributor Author

@Ioan-Cristian can you please fix the conflicts.

I think I fixed them. Sorry for the delay!

@alexandruradovici
Copy link
Contributor

This seems to be merged, but not closed. @hudson-ayers this might be a bors issue.

@hudson-ayers
Copy link
Contributor

Yeah, confirmed this did in fact get merged into master, but failed to close as merged..just going to close this then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation last-call Final review period for a pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants