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


##########
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__)
+  #pragma clang deprecated("CAPIOC_FREQUENCE", "Use CAPIOC_FREQUENCY; 
CAPIOC_FREQUENCE will be removed on 2026-01-01")

Review Comment:
   Are you the one that is going to remember and remove this on new year's day?



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