1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-01-09 22:50:14 +02:00
nn-usb-fpga/lm32/logic/sakc/firmware/gdb-test/main.c
2010-05-25 21:49:58 -05:00

21 lines
227 B
C

#include "soc-hw.h"
void main()
{
gpio0->oe = 0x000000ff;
for(;;) {
int i;
for(i=0; i<8; i++) {
uint32_t out1, out2;
out1 = 0x01 << i;
out2 = 0x80 >> i;
gpio0->out = out1 | out2;
msleep(100);
}
}
}