ETLCPP / etl

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

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

Closed JoeBenczarski closed 3 months ago

JoeBenczarski commented 4 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 4 months ago

I am in the process of adding several operators.

|=
&=
^=
~

Also see this on Slack IO port class change proposal

jwellbelove commented 3 months ago

Fixed 20.39.3