BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
02dd390
Branches
Tags
master
mips_sys
fw
main.c
slower LED animation for execution on FPGA
Stefan Schuermans
commited
02dd390
at 2012-02-11 00:31:59
main.c
Blame
History
Raw
#include "leds.h" volatile int data[100]; void delay() { unsigned int i, j; for (j = 0; j < 1000; ++j) for (i = 0; i < sizeof(data) / sizeof(data[0]); ++i) data[i] = i; } int main() { unsigned int i; while (1) { for (i = 0x1; i < 0x80; i <<= 1) { leds_set_state(i); delay(); } for (i = 0x80; i > 0x1; i >>= 1) { leds_set_state(i); delay(); } } return 0; }