1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-01-11 00:40:14 +02:00
nn-usb-fpga/lm32/logic/sakc/firmware/gdb-test/main.c

21 lines
227 B
C
Raw Normal View History

2010-05-26 05:49:58 +03:00
#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);
}
}
}