initial
[fpgammix.git] / workloads / xmodem / main.c
blob55746ac354beaa2ab01b1314cb25552bcbe536b5
1 #include "host.h"
2 #include "xmodem.h"
4 unsigned char buf[9999];
6 static outs(char *s)
8 while (*s) _outbyte(*s++);
11 int main()
13 for (;;) {
14 outs("Start!\r\n");
15 set_s7_0(0x5);
16 set_s7_1(0x5);
18 int res = xmodemReceive(buf, sizeof buf);
20 if (res < 0)
21 outs("Failed!\r\n");
22 else
23 outs("Success!\r\n");