Skip to content

Add missing macro portInputRegister #210

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

Closed
ianfixes opened this issue Nov 14, 2020 · 0 comments · Fixed by #211
Closed

Add missing macro portInputRegister #210

ianfixes opened this issue Nov 14, 2020 · 0 comments · Fixed by #211
Labels
arduino mocks Compilation mocks for the Arduino library bug Something isn't working

Comments

@ianfixes
Copy link
Collaborator

ianfixes commented Nov 14, 2020

Issue Summary

portOutputRegister isn't defined, will need to define it in a similar style to portOutputRegister(port) in Godmode.h.

#define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_input_PGM + (P))) )

It may be AVR-only:
https://garretlab.web.fc2.com/en/arduino/inside/hardware/arduino/avr/cores/arduino/Arduino.h/portInputRegister.html

Found in https://github.com/Open-Acidification/TankControllerLib/pull/11/checks?check_run_id=1398445342#step:6:31 as part of Open-Acidification/TankControllerLib#11

@ianfixes ianfixes added bug Something isn't working arduino mocks Compilation mocks for the Arduino library labels Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arduino mocks Compilation mocks for the Arduino library bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant