NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
Simple machine timer (MTIME) usage example. More...
#include <neorv32.h>
Macros | |
#define | BAUD_RATE 19200 |
Functions | |
void | mtime_irq_handler (void) |
int | main () |
Variables | |
const char | weekdays [7][4] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"} |
Simple machine timer (MTIME) usage example.
int main | ( | void | ) |
This program toggles an LED at GPIO.output(0) at 1Hz and also prints and updates the Unix time in human-readable format using the machine timer interrupt.
void mtime_irq_handler | ( | void | ) |
MTIME IRQ handler.