Skip to content

Commit

Permalink
Merge pull request #160 from VisorFolks/dev_akash_timer_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akashkollipara authored Aug 19, 2022
2 parents 25443d3 + ccdc771 commit ce90f1b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion projects/demo_avr/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ STDLOG_MEMBUF := 0
BOOTMSGS := 0
EARLYCON_SERIAL := 1
CONSOLE_SERIAL := 1
TERRAKERN := 0
OBRDLED_ENABLE := 1
1 change: 1 addition & 0 deletions src/platform/mega_avr/common/hal/timer/timer16.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ static void timer16_config_op_mode(const timer_port_t *port, bool en, bool inv)
reg &= ~(3 << ((3 - id) << 1));

MMIO8(port->baddr + TCCRA_16B_OFFSET) = reg;
MMIO16(port->baddr + TCNTL_16B_OFFSET) = 0;
}

static void timer16_set(const timer_port_t *port, uint16_t value)
Expand Down
1 change: 1 addition & 0 deletions src/platform/mega_avr/common/hal/timer/timer8.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static void timer8_config_ps(const timer_port_t *port, unsigned int ps)
}

MMIO8(port->baddr + TCCRB_8B_OFFSET) = reg;
MMIO8(port->baddr + TCNT_8B_OFFSET) = 0;
}

static void timer8_config_op_mode(const timer_port_t *port, bool en, bool inv)
Expand Down
1 change: 1 addition & 0 deletions src/platform/sifive/common_fe310/hal/clint/clint.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ static status_t clint_setup()
port->baddr = dp->baddr;
port->stride = dp->stride;
port->port_id = clint;
MMIO64(port->baddr + MTIME_OFFSET) = 0;
return success;
}

Expand Down

0 comments on commit ce90f1b

Please sign in to comment.