This supports the new-ish tinyAVR 0/1/2-series (supported on Arduino by my megaTinyCore), megaAVR 0-series (official Uno Wifi Rev. 2, Nano Every, and the whole product line supported for Arduino by MCUdude's MegaCoreX) and the latest and greatest, the AVR Dx-line (supported on Arduino by my DxCore).
It looks like my editor also auto-trimmed some trailing whitespace that was present on a few scattered lines (I have that set because my cores have formatting CI that complains if I have trailing whitespace on any line.)
It was tested on tinyAVR 1-series parts, and the port handling and sbi/cbi timing is the same on the rest of them.
This supports the new-ish tinyAVR 0/1/2-series (supported on Arduino by my megaTinyCore), megaAVR 0-series (official Uno Wifi Rev. 2, Nano Every, and the whole product line supported for Arduino by MCUdude's MegaCoreX) and the latest and greatest, the AVR Dx-line (supported on Arduino by my DxCore).
It looks like my editor also auto-trimmed some trailing whitespace that was present on a few scattered lines (I have that set because my cores have formatting CI that complains if I have trailing whitespace on any line.)
It was tested on tinyAVR 1-series parts, and the port handling and sbi/cbi timing is the same on the rest of them.