-
Notifications
You must be signed in to change notification settings - Fork 206
Update Zynq portable for Xilinx SDT drivers #1227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
a10973d
023316e
13cbe39
5a057ee
f83757b
3f238b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1593,6 +1593,7 @@ XPBL | |
| Xplorer | ||
| XPROT | ||
| xpsr | ||
| XSCUGIC | ||
| xtopology | ||
| xtopologyp | ||
| xzvf | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,8 +38,19 @@ | |
| extern "C" { | ||
| #endif | ||
|
|
||
| #define XPAR_PS7_ETHERNET_1_DEVICE_ID 1 | ||
| #define XPAR_PS7_ETHERNET_1_BASEADDR 0xE000C000 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any particular reason these macros are removed now?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the comment. This must be the cause of the other errors so I will comment here. I should have mentioned that my dev board only has 1 ethernet, so I wasn't able to check this case. I could look at your
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, both macros are missing; I just defined For backward compatibility for anyone already using the library with
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have put the defines back in with |
||
| #ifdef SDT | ||
| #define ZYNQ_SCUGIC_0_BASEADDR XPAR_XSCUGIC_0_BASEADDR | ||
| #define ZYNQ_ETHERNET_0_BASEADDR XPAR_XEMACPS_0_BASEADDR | ||
| #if ( XPAR_XEMACPS_NUM_INSTANCES > 1 ) | ||
| #define ZYNQ_ETHERNET_1_BASEADDR XPAR_XEMACPS_1_BASEADDR | ||
| #endif | ||
| #else | ||
| #define ZYNQ_SCUGIC_0_BASEADDR XPAR_PS7_SCUGIC_0_BASEADDR | ||
| #define ZYNQ_ETHERNET_0_BASEADDR XPAR_PS7_ETHERNET_0_BASEADDR | ||
| #if ( XPAR_XEMACPS_NUM_INSTANCES > 1 ) | ||
| #define ZYNQ_ETHERNET_1_BASEADDR XPAR_PS7_ETHERNET_1_BASEADDR | ||
|
||
| #endif | ||
| #endif /* ifdef SDT */ | ||
|
|
||
| extern XEmacPs_Config mac_configs[ XPAR_XEMACPS_NUM_INSTANCES ]; | ||
|
|
||
|
|
@@ -145,6 +156,8 @@ | |
| void clean_dma_txdescs( xemacpsif_s * xemacpsif ); | ||
| void resetrx_on_no_rxdata( xemacpsif_s * xemacpsif ); | ||
|
|
||
| BaseType_t get_xEMACIndex( const XEmacPs * xemacpsp ); | ||
|
|
||
| /** | ||
| * @brief Initialise the interface number 'xIndex'. Do not call directly. | ||
| */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I'm building on an environment that doesn't have SDT defined and XPAR_XEMACPS_NUM_INSTANCES > 1, there is a build failure:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be resolved after adding the defines back in.