Skip to content

typedef unsigned int word #91

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
hcs-svn opened this issue Dec 11, 2016 · 0 comments
Closed

typedef unsigned int word #91

hcs-svn opened this issue Dec 11, 2016 · 0 comments

Comments

@hcs-svn
Copy link

hcs-svn commented Dec 11, 2016

6dc3407

removing "typedef unsigned int word;" breaks a lot of my code.
The avr core Arduino.h has both:

Line 121:
typedef unsigned int word;

and

Line 238:
uint16_t makeWord(uint16_t w);
uint16_t makeWord(byte h, byte l);
#define word(...) makeWord(VA_ARGS)

if you have both you can do:
word w = word(1, 2);

blue-2357 pushed a commit to blue-2357/arduino-esp32 that referenced this issue Jul 17, 2024
brentru pushed a commit to adafruit/arduino-esp32 that referenced this issue Oct 22, 2024
Format documentation commit in GitHub actions
dash0820 added a commit to dash0820/arduino-esp32-stripped that referenced this issue Mar 10, 2025
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

No branches or pull requests

1 participant