RISCV_picorv32_fpga/sw/firmware/leds.c

18 lines
435 B
C
Raw Normal View History

// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
#include "firmware.h"
#define LED_PORT 0xffff0060
volatile int n;
void ledsOut(char ch)
{
*((volatile uint32_t*)LED_PORT) = ch;
}