12345678910111213141516171819202122232425262728293031323334 |
- #include <stdio.h>
- #include "altera_avalon_pio_regs.h"
- #include <system.h>
- int main()
- {
- printf("Hello from Nios II!\n");
- int count = 0;
- while(1) {
-
- IOWR_ALTERA_AVALON_PIO_DATA(PIO_LED_BASE, count++);
-
-
- }
- return 0;
- }
|