[Bugfix rtems-lwip 1/4] Fix definition of portTICK_RATE_MS
Bernd Moessner
berndmoessner80 at gmail.com
Sun Mar 31 22:49:21 UTC 2024
The FreeRTOS define portTICK_RATE_MS must represent the time in ms
between two system ticks.
---
rtemslwip/xilinx/xlwipopts.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rtemslwip/xilinx/xlwipopts.h b/rtemslwip/xilinx/xlwipopts.h
index d915c3c..23b942f 100644
--- a/rtemslwip/xilinx/xlwipopts.h
+++ b/rtemslwip/xilinx/xlwipopts.h
@@ -29,7 +29,7 @@
/* These macros allow RTEMS to pretend to be FreeRTOS for Xilinx drivers */
#define tskIDLE_PRIORITY RTEMS_MAXIMUM_PRIORITY
-#define portTICK_RATE_MS (rtems_clock_get_ticks_per_second() * 1000)
+#define portTICK_RATE_MS (1000 / rtems_clock_get_ticks_per_second())
#define vTaskDelay(x) sys_arch_delay(x)
#endif /* __XLWIPOPTS_H__ */
--
2.34.1
More information about the devel
mailing list