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

Use traits for register and uart #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChocolateLoverRaj
Copy link

@ChocolateLoverRaj ChocolateLoverRaj commented Feb 25, 2025

Closes #38

Contain breaking changes

Advantages:

  • Reduces the amount of code
  • Lets people using this library use a uart with dyn Uart16550
  • It will be very easy to add another method in addition to port and mmio

Tested the port with qemu and tested the mmio on a real computer.

Contain breaking changes

Advantages:
- Reduces the amount of code
- Lets people using this library use a uart with `dyn Uart16550`
- It will be very easy to add another method in addition to port and mmio
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.

Put common code for the port and MMIO in a trait
1 participant