1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/accelerator/sw/test.c
Andreas Olofsson ac51816b61 Adding simple accelerator test
-not debugged yet
2016-01-21 07:50:14 -05:00

18 lines
329 B
C

#include <stdio.h>
//Hello World Test
int main(int argc, char *argv[])
{
unsigned int data,rdata;
//Write data to accelerator
data=2;
e_write(0x810f0000,data);
data=3;
e_write(0x810f0004,data);
//read back result
e_read(0x810f0008, &rdata);
printf ("RESULT=%dn", rdata);
}