Skip to content

Commit

Permalink
Revise print statements; Resolve DDR base address
Browse files Browse the repository at this point in the history
  • Loading branch information
artvvb committed Sep 19, 2019
1 parent c7336fe commit 9387512
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk/appsrc/audio/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ XStatus fnAudioPllConfig() {

XIic_Recv(XPAR_IIC_0_BASEADDR, IIC_SLAVE_ADDR, u8RxData, 6, XIIC_STOP);
if(Demo.u8Verbose) {
xil_printf("\nAudio PLL R1 = 0x%x%x%x%x%x%x", u8RxData[0], u8RxData[1],
xil_printf("\r\nAudio PLL R1 = 0x%x%x%x%x%x%x", u8RxData[0], u8RxData[1],
u8RxData[2], u8RxData[3], u8RxData[4], u8RxData[5]);
}
}
Expand Down
8 changes: 7 additions & 1 deletion sdk/appsrc/demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,13 @@ int main(void)



xil_printf("DONE\r\n");
xil_printf("\r\nInitialization done");
xil_printf("\r\n");
xil_printf("\r\nControls:");
xil_printf("\r\n BTNL: Play recording on LINE OUT");
xil_printf("\r\n BTNU: Record from MIC IN");
xil_printf("\r\n BTND: Play recording on HPH OUT");
xil_printf("\r\n BTNR: Record from LINE IN");

//main loop

Expand Down
6 changes: 4 additions & 2 deletions sdk/appsrc/demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
#define DDR_BASE_ADDR XPAR_AXI_7SDDR_0_S_AXI_BASEADDR
#elif XPAR_MIG7SERIES_0_BASEADDR
#define DDR_BASE_ADDR XPAR_MIG7SERIES_0_BASEADDR
#else
#ifdef PLATFORM_ZYNQ
#define DDR_BASE_ADDR XPAR_PS7_DDR_0_S_AXI_BASEADDR
#endif
#endif



#ifndef DDR_BASE_ADDR
#warning CHECK FOR THE VALID DDR ADDRESS IN XPARAMETERS.H, DEFAULT SET TO 0x010000000
Expand Down

0 comments on commit 9387512

Please sign in to comment.