add comment

This commit is contained in:
kifir 2024-06-25 16:57:42 +03:00 committed by rusefillc
parent 6d69649080
commit 142cf19b21
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,14 @@ static void printUid() {
}
#endif
/*
* I was a little bit surprised that we declare __attribute__((weak)) before returning type in a function definition.
* In the most sources this declaration is placed either before function name or after function parentheses, see:
* - https://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Function-Attributes.html#Function-Attributes
* - https://en.wikipedia.org/wiki/Weak_symbol
* But it looks like our manner of __attribute__((weak)) declaration works at well, and I hope it will not cause
* problems in the future.
*/
BOARD_WEAK void boardSayHello() {
}