Skip to content

binary literals #8

@csrichter

Description

@csrichter

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 ";"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions