In the Hello-world example project (with Zedboard) it is very easy to send a string with print("helloworld") via the serial interface (Cypress USBUART). How can I read in via the same interface? scan()?
In the Hello-world example project (with Zedboard) it is very easy to send a string with print("helloworld") via the serial interface (Cypress USBUART). How can I read in via the same interface? scan()?
Ok, this was not so difficult:
The corresponding API I found in the BoardSupportPackage (xuartps_hw.h)
Reading is possible with: XUartPs_ReadReg(XPAR_XUARTPS_0_BASEADDR,XUARTPS_FIFO_OFFSET)
Ok, this was not so difficult:
The corresponding API I found in the BoardSupportPackage (xuartps_hw.h)
Reading is possible with: XUartPs_ReadReg(XPAR_XUARTPS_0_BASEADDR,XUARTPS_FIFO_OFFSET)