From afedfc650ec603092300939c4b34bfc88630d8ae Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Tue, 3 Feb 2026 22:53:56 +0100 Subject: [PATCH] corrects location of NX_IP_PERIODIC_RATE macro --- port/threadx/inc/nx_port.h | 10 ---------- port/threadx/inc/nx_user.h | 9 +-------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/port/threadx/inc/nx_port.h b/port/threadx/inc/nx_port.h index 3461cfc..6801ef9 100644 --- a/port/threadx/inc/nx_port.h +++ b/port/threadx/inc/nx_port.h @@ -62,16 +62,6 @@ #define NX_LITTLE_ENDIAN -/* Define various constants for the port. */ - -#ifndef NX_IP_PERIODIC_RATE -#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. */ #ifdef NX_LITTLE_ENDIAN #define NX_CHANGE_ULONG_ENDIAN(arg) \ diff --git a/port/threadx/inc/nx_user.h b/port/threadx/inc/nx_user.h index 3ed98c8..dc54625 100644 --- a/port/threadx/inc/nx_user.h +++ b/port/threadx/inc/nx_user.h @@ -61,11 +61,8 @@ /* Define the base exponent of 2 for huge number. * Only 16 and 32 are supported. */ -#if __riscv_xlen == 64 -#define NX_CRYPTO_HUGE_NUMBER_BITS 16 -#else #define NX_CRYPTO_HUGE_NUMBER_BITS 32 -#endif +#define NX_DIRECT_ISR_CALL 1 /* Define various build options for the NetX Duo port. The application should either make changes here by commenting or un-commenting the conditional compilation defined OR supply the defines though the compiler's equivalent of the -D option. */ @@ -79,10 +76,8 @@ present to NetX Duo IP layer. Physical interface does not include loopback interface. By default there is at least one physical interface in the system. */ - #define NX_MAX_PHYSICAL_INTERFACES 2 - /* Defined, this option disables NetX Duo support on the 127.0.0.1 loopback interface. 127.0.0.1 loopback interface is enabled by default. Uncomment out the follow code to disable the loopback interface. */ @@ -99,13 +94,11 @@ /* This defines specifies the number of ThreadX timer ticks in one second. The default value is based on ThreadX timer interrupt. */ -/* #ifdef TX_TIMER_TICKS_PER_SECOND #define NX_IP_PERIODIC_RATE TX_TIMER_TICKS_PER_SECOND #else #define NX_IP_PERIODIC_RATE 100 #endif -*/ /* Defined, NX_ENABLE_IP_RAW_PACKET_FILTER allows an application to install a filter for incoming raw packets. This feature is disabled by default. */