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

apollo3: uart: Fix the UART callback #1896

Merged
merged 1 commit into from Jun 5, 2020

Conversation

alistair23
Copy link
Contributor

Pull Request Overview

Fixes the UART callback for short strings.

Testing Strategy

Running on the RedBoard Artemis Nano.

TODO or Help Wanted

Documentation Updated

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

Formatting

  • Ran make format.
  • Fixed errors surfaced by make clippy.

hudson-ayers
hudson-ayers previously approved these changes Jun 1, 2020
@bradjc
Copy link
Contributor

bradjc commented Jun 2, 2020

Why not call the callback instead of calling tx_progress()? I think this implementation is fine, but it gets a little close to the issue where a callback is triggered not from an interrupt callback. I'm worried about future changes or copy/paste problems for new boards.

@alistair23
Copy link
Contributor Author

I think this might be wrong. We weren't clearing the interrupt. I have pushed an update that should fix it as well.

bradjc
bradjc previously approved these changes Jun 2, 2020
@alistair23 alistair23 force-pushed the alistair/apollo3-uart branch 2 times, most recently from fa2cff8 to f63e425 Compare June 3, 2020 01:21
Signed-off-by: Alistair Francis <alistair@alistair23.me>
@alistair23
Copy link
Contributor Author

I pushed an update that fixes some other issues as well.

@bradjc bradjc merged commit 7cecb7c into tock:master Jun 5, 2020
bors bot added a commit that referenced this pull request Jun 12, 2020
1897: Apollo3: Add support for the I2C device r=bradjc a=alistair23

### Pull Request Overview

This PR adds I2C support to the RedBoard Artemis Nano and the Apollo3 chip.

This PR applies on top of ~~#1896 and #1889 #1899

### Testing Strategy

Monitoring the I2C traffic on the boards Qwiic connector.

### TODO or Help Wanted

### Documentation Updated

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

### Formatting

- [X] Ran `make format`.
- [X] Fixed errors surfaced by `make clippy`.


Co-authored-by: Alistair Francis <alistair@alistair23.me>
@alistair23 alistair23 deleted the alistair/apollo3-uart branch June 22, 2020 15:53
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.

None yet

3 participants