Skip to content

Remove unused xuartps.h include from Xilinx UltraScale and Zynq network interfaces#1343

Merged
aadityasg merged 2 commits into
FreeRTOS:mainfrom
ismailemrecntz:remove-unused-xuartps-include
Jun 1, 2026
Merged

Remove unused xuartps.h include from Xilinx UltraScale and Zynq network interfaces#1343
aadityasg merged 2 commits into
FreeRTOS:mainfrom
ismailemrecntz:remove-unused-xuartps-include

Conversation

@ismailemrecntz
Copy link
Copy Markdown
Contributor

Description

This PR removes the unused #include "xuartps.h" from the Xilinx Zynq and UltraScale network interface headers.

When the PS UART peripheral is not enabled in the hardware design, the Xilinx BSP does not generate xuartps.h. This causes FreeRTOS+TCP projects using these ports to fail compilation even though the Ethernet network interface does not appear to use any XUartPs symbols directly.

Removing this include avoids an unnecessary dependency on the PS UART driver for hardware designs where PS UART is disabled.

This was discussed on the FreeRTOS community forum:
https://forums.freertos.org/t/freertos-tcp-ultrascale-port-requires-xuartps-h/24996

Changes

  • Removed unused #include "xuartps.h" from the Zynq network interface.
  • Removed unused #include "xuartps.h" from the UltraScale network interface.

Testing

  • Verified that the project compiles after removing the unused includes.
  • Verified that no XUartPs symbols are used by these network interface headers.

@aadityasg aadityasg merged commit 788c9ae into FreeRTOS:main Jun 1, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants