STM32-W25Q-QSPI icon indicating copy to clipboard operation
STM32-W25Q-QSPI copied to clipboard

binary literals

Open csrichter opened this issue 1 year ago • 0 comments

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

csrichter avatar Mar 06 '23 12:03 csrichter