/* Copyright 2019 SiFive, Inc */ /* SPDX-License-Identifier: Apache-2.0 */ #include #include "super_blink.h" int main() { setup_GPIO(); setup_timer_irq(); // set a delay so the first interrupt handler can fire delay(DELAY); while (1) { // the idea being that delay sets the timer // for the first interrupt. In the interrupt // routine, we set the next delay so all we need // to do here is to loop endlessly wait_for_irq(); } }