ETLCPP / etl

Embedded Template Library
https://www.etlcpp.com
MIT License
2.17k stars 387 forks source link

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

Closed JoeBenczarski closed 1 month ago

JoeBenczarski commented 2 months ago

It would be a nice feature to be able to use |= and &= on etl::ioport* 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 ctrl; ctrl = ctrl | 1;

jwellbelove commented 2 months ago

I am in the process of adding several operators.

|=
&=
^=
~

Also see this on Slack IO port class change proposal

jwellbelove commented 1 month ago

Fixed 20.39.3