Skip to content

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

Open
ismailemrecntz wants to merge 2 commits into
FreeRTOS:mainfrom
ismailemrecntz:remove-unused-xuartps-include
Open

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

Conversation

@ismailemrecntz
Copy link
Copy Markdown

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.

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.

2 participants