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

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [synth/] [microsemi/] [sw/] [led_flash/] [src/] [led_flash.c] - Rev 2

Compare with Previous | Blame | View Log

 
#include <stdint.h>
 
int main(void) {
  volatile uint32_t *led = (volatile uint32_t)0xC0000000;
  uint32_t count = 0;
 
 
  while (1) {
    *led = count;
    count++;
  }
 
  return 0;
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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