Skip to content

Restore IO_REG_TYPE definition for AVR#110

Open
per1234 wants to merge 1 commit intoPaulStoffregen:masterfrom
per1234:fix-avr
Open

Restore IO_REG_TYPE definition for AVR#110
per1234 wants to merge 1 commit intoPaulStoffregen:masterfrom
per1234:fix-avr

Conversation

@per1234
Copy link

@per1234 per1234 commented Oct 19, 2025

The definition of the IO_REG_TYPE macro when compiling for an AVR target was accidentally removed by #102:

063b390#diff-334c08ee1cc76e8313e155ce41d8d06f284a691a9d492996f98c5e5731ac0f60L6

This resulted in the library failing to compile for those targets:

Encoder.h:66:11: error: 'IO_REG_TYPE' does not name a type
  volatile IO_REG_TYPE * pin1_register;
           ^~~~~~~~~~~

The macro definition is hereby restored.

The definition of the `IO_REG_TYPE` macro when compiling for an AVR target was accidentally removed by the previous
commit. This resulted in the library failing to compile for those targets:

```
Encoder.h:66:11: error: 'IO_REG_TYPE' does not name a type
  volatile IO_REG_TYPE * pin1_register;
           ^~~~~~~~~~~
```

The macro definition is hereby restored.
@mjs513
Copy link

mjs513 commented Dec 7, 2025

@PaulStoffregen
Looking at supporting the Q and wondering if you can get this incorporated again?

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.

2 participants