acassis commented on code in PR #17011: URL: https://github.com/apache/nuttx/pull/17011#discussion_r2345123030
########## include/nuttx/arch.h: ########## @@ -99,6 +99,18 @@ #define DEBUGPOINT_BREAKPOINT 0x04 #define DEBUGPOINT_STEPPOINT 0x05 +/* Ensure that LOOPSPERMSEC is not the default, invalid value. If it is, let + * the user know that they need to change it and then calibrate it. + */ + +static_assert( + CONFIG_BOARD_LOOPSPERMSEC >= 0, + "Please set a non-negative value for CONFIG_BOARD_LOOPSPERMSEC to pass " + "compilation. It is recommended that after your initial build, you use " + "the example 'calib_udelay' to get a precise value for this option. " + "Please search the NuttX documentation for CONFIG_BOARD_LOOPSPERMSEC" Review Comment: You missed space at end of this line, it is glued with the "for" word from next line. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org