Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [I]#include <stdio.h> #include "platform.h" #include "xil_printf.h" #include "xil_io.h" #include "xparameters.h" #define DDR_BASEADDR 0x01000000 int main() { init_platform(); int i; float img[5] = {11.2345 ,17.2135 ,11.65 ,18.543 ,7.6789}; for (i = 0; i <5; i++) { Xil_Out32(DDR_BASEADDR+(i*4),img[i]); } cleanup_platform(); return 0; } [/I]
void Xil_Out32(u32 Addr, u32 Value)
u32 Xil_In32(u32 Addr)
Xil_Out32(DDR_BASEADDR+(I*4), *((u32*)&img[I]));
val = *((float*)&Xil_In32(DDR_BASEADDR+(I*4)));