summaryrefslogtreecommitdiff
path: root/software/coreplexip-welcome
diff options
context:
space:
mode:
authorDavid Connelly <david.connelly@sifive.com>2019-03-04 11:04:34 -0500
committerDavid Connelly <david.connelly@sifive.com>2019-03-04 11:04:34 -0500
commit590f34d5399dcd497d6bc1fa4f3722fe1741a5fb (patch)
tree157449f9f5bd0c4e747e11aa71b185851f819231 /software/coreplexip-welcome
parentd916cf5f6326c798e400a9fe0db6ad776f9a861f (diff)
fix spacing, remove tabs
Diffstat (limited to 'software/coreplexip-welcome')
-rw-r--r--software/coreplexip-welcome/coreplexip-welcome.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/software/coreplexip-welcome/coreplexip-welcome.c b/software/coreplexip-welcome/coreplexip-welcome.c
index a975b1c..de6f92d 100644
--- a/software/coreplexip-welcome/coreplexip-welcome.c
+++ b/software/coreplexip-welcome/coreplexip-welcome.c
@@ -48,7 +48,7 @@ void display_banner (void) {
void timer_isr (int id, void *data) {
- // Disable Timer interrupt
+ // Disable Timer interrupt
metal_interrupt_disable(tmr_intr, tmr_id);
// Flag showing we hit timer isr
@@ -57,22 +57,22 @@ void timer_isr (int id, void *data) {
void wait_for_timer(struct metal_led *which_led) {
- // clear global timer isr flag
+ // clear global timer isr flag
timer_isr_flag = 0;
- // Turn on desired LED
- metal_led_on(which_led);
+ // Turn on desired LED
+ metal_led_on(which_led);
// Set timer
metal_cpu_set_mtimecmp(cpu0, metal_cpu_get_mtime(cpu0) + RTC_FREQ);
- // Enable Timer interrupt
- metal_interrupt_enable(tmr_intr, tmr_id);
+ // Enable Timer interrupt
+ metal_interrupt_enable(tmr_intr, tmr_id);
- // wait till timer triggers and isr is hit
- while (timer_isr_flag == 0){};
+ // wait till timer triggers and isr is hit
+ while (timer_isr_flag == 0){};
- timer_isr_flag = 0;
+ timer_isr_flag = 0;
// All Off
metal_led_off(which_led);