xiaoxiang781216 commented on code in PR #16925:
URL: https://github.com/apache/nuttx/pull/16925#discussion_r2305934848


##########
include/nuttx/timers/capture.h:
##########
@@ -45,14 +45,23 @@
 
 #define CAPIOC_DUTYCYCLE _CAPIOC(1)
 
-/* Command:     CAPIOC_FREQUENCE
+/* Command:     CAPIOC_FREQUENCY
  * Description: Get the pulse frequency from the capture.
  * Arguments:   int32_t pointer to the location to return the frequency.
  * Return:      Zero (OK) on success.  Minus one will be returned on failure
  *              with the errno value set appropriately.
  */
 
-#define CAPIOC_FREQUENCE _CAPIOC(2)
+#define CAPIOC_FREQUENCY _CAPIOC(2)
+
+/* Deprecated alias: keep object-like so existing code compiles unchanged */
+#define CAPIOC_FREQUENCE CAPIOC_FREQUENCY
+
+#if defined(__clang__)

Review Comment:
   not good to check compiler in the common code



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

Reply via email to