Updates NetX Duo to the upstream implementation

Uses the upstream ULONG APIs and passes RV64 callback pointers through ThreadX extension fields.
This commit is contained in:
alex committed 2026-11-26 18:56:36 +01:00
1 parent d404e17e5a
commit 608c4e0b0d
5 files changed
+63 -59

No files matched your search

+5 -5
View File
@@ -137,11 +137,11 @@ void thread_0_entry(ULONG thread_input)
UINT status;
NX_PACKET* my_packet;
UINT32 length;
ULONG length;
NXD_ADDRESS server_ipv4_address;
NXD_ADDRESS peer_address;
UINT32 peer_port;
ULONG peer_port;
NX_PARAMETER_NOT_USED(thread_input);
@@ -259,7 +259,7 @@ void thread_1_entry(ULONG thread_input)
UINT status;
NX_PACKET* packet_ptr;
UINT32 actual_status;
ULONG actual_status;
NX_PARAMETER_NOT_USED(thread_input);
@@ -331,10 +331,10 @@ void thread_1_entry(ULONG thread_input)
else
{
char buffer[64];
UINT32 size;
ULONG size;
nx_packet_data_extract_offset(packet_ptr, 0, buffer, 64, &size);
buffer[size] = 0;
printf("Received packet %lu with %s\n", thread_1_counter, buffer);
printf("Received packet %lu with %s\n", (unsigned long)thread_1_counter, buffer);
/* Release the packet. */
nx_packet_release(packet_ptr);
}