Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
netduinoplus2: Set the system_clock_scale variable
Set the system_clock_scale variable to 19 based on a
SysTick clock of 18.75MHz.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
  • Loading branch information
alistair23 committed May 14, 2015
1 parent abb232e commit c30ed1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/arm/netduinoplus2.c
Expand Up @@ -147,6 +147,8 @@ static void netduinoplus2_init(MachineState *machine)
pic[i] = qdev_get_gpio_in(nvic, i);
}

system_clock_scale = 19;

/* Attach UART (uses USART registers) and USART controllers */
for (i = 0; i < 7; i++) {
sysbus_create_simple("stm32f405-usart", usart_addr[i],
Expand Down

0 comments on commit c30ed1b

Please sign in to comment.