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

Request for additional operator support for etl::io_port_* #918

Closed
JoeBenczarski opened this issue Jul 10, 2024 · 2 comments
Closed

Request for additional operator support for etl::io_port_* #918

JoeBenczarski opened this issue Jul 10, 2024 · 2 comments
Assignees

Comments

@JoeBenczarski
Copy link

It would be a nice feature to be able to use |= and &= on etl::io_port_* types when relevant.

Right now, I have been using the long-form syntax to set a bit of a register, e.g.
etl::io_port_rw<uint32_t> ctrl;
ctrl = ctrl | 1;

@jwellbelove
Copy link
Contributor

I am in the process of adding several operators.

|=
&=
^=
~

Also see this on Slack
IO port class change proposal

@jwellbelove
Copy link
Contributor

Fixed 20.39.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants