The error is correct. Check the coding standard. "Public Functions" is permitted only in C files, not header files. Header files may have "Public Function Prototypes" but not public functions.
References: https://cwiki.apache.org/confluence/display/NUTTX/Coding+Standard#fileorganization https://cwiki.apache.org/confluence/display/NUTTX/Coding+Standard#hfilestructure