OpenCores
URL https://opencores.org/ocsvn/fwrisc/fwrisc/trunk

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [synth/] [microsemi/] [sw/] [led_flash/] [src/] [led_flash.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mballance
 
2
#include <stdint.h>
3
 
4
int main(void) {
5
  volatile uint32_t *led = (volatile uint32_t)0xC0000000;
6
  uint32_t count = 0;
7
 
8
 
9
  while (1) {
10
    *led = count;
11
    count++;
12
  }
13
 
14
  return 0;
15
}
16
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.