arduino / arduino/Arduino

Use GCC binary constants format

Open
#3,561 4 comments 1 reaction 1 assignee Claimed by @cmaglie View on GitHub
Component: Core Component: Documentation feature request Library: Other
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

https://gcc.gnu.org/onlinedocs/gcc/Binary-constants.html

This would allow a simpler solution to binary number constants and the file binary.h https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/binary.h becomes unnecessary.

Motivation: Standard, less complex, portability, reduce error risk (unsigned/signed/number size), reduce source code size.

Drawbacks: Large ripple effect on code that uses the Arduino "binary" format.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.