Skip to content
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

binary literals #8

Open
csrichter opened this issue Mar 6, 2023 · 0 comments
Open

binary literals #8

csrichter opened this issue Mar 6, 2023 · 0 comments

Comments

@csrichter
Copy link

w25q_mem.c often includes the line "buf_reg |= 0b10;"

according to this post https://stackoverflow.com/questions/2611764/can-i-use-a-binary-literal-in-c-or-c#2611883 that is only possible in C++ since C++14

i suggest replacing the binary literals with hex literals to support C and older C++ compilers

the IAR compiler (in C mode) gave the following unhelpful error message:
Error[Pe065]: expected a ";"

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