Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

TeodoraMiu
Copy link
Contributor

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

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

Copy link
Contributor

@alexandruradovici alexandruradovici left a comment

Choose a reason for hiding this comment

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

Please add a comment explaining how the syscall driver works and how applications can you it, describing the exact rules that apply.

@github-actions github-actions bot removed the component label Jan 5, 2023
Copy link
Contributor

@phil-levis phil-levis left a comment

Choose a reason for hiding this comment

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

Ah, nice. It looks like the machinery was there (pending_command) but it wasn't being used.

Can you explain your refactoring of enqueue_command?

@TeodoraMiu
Copy link
Contributor Author

Can you explain your refactoring of enqueue_command?

The enqueue_command function has been slightly changed: if the current process is none, there is no need to enter the grant. Therefore, I only enter the grant when there is an active process and the new command must be set as pending.

@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 <[email protected]>
Co-authored-by: TeodoraMiu <[email protected]>
Co-authored-by: Teodora Miu <[email protected]>
Co-authored-by: Ioan-Cristian CÎRSTEA <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jan 25, 2023

Build failed (retrying...):

@bors
Copy link
Contributor

bors bot commented Jan 26, 2023

@bors bors bot merged commit 1be6f52 into tock:master Jan 26, 2023
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.

5 participants