makes timer more consistent accros tx and nx

Also adds nx_port for user defines
This commit is contained in:
2026-01-28 16:56:02 +01:00
parent 1d1fbeb2dc
commit d5ac028817
3 changed files with 330 additions and 7 deletions

View File

@@ -65,12 +65,11 @@
/* Define various constants for the port. */
#ifndef NX_IP_PERIODIC_RATE
#define NX_IP_PERIODIC_RATE \
10 /* Default IP periodic rate of 1 second for \
ports with 1ms timer interrupts. This \
value may be defined instead at the \
command line and this value will not be \
used. */
#ifdef TX_TIMER_TICKS_PER_SECOND
#define NX_IP_PERIODIC_RATE TX_TIMER_TICKS_PER_SECOND
#else
#define NX_IP_PERIODIC_RATE 10
#endif
#endif
/* Define macros that swap the endian for little endian ports. */