Skip to content

Commit

Permalink
fix clocking
Browse files Browse the repository at this point in the history
fix clock setup to use internal oscillator
  • Loading branch information
pwittich committed May 7, 2019
1 parent b87d74d commit 1fb88e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions projects/project1/project0.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,9 @@ void SystemInit()
//
// Run from the PLL at 120 MHz.
//
g_ui32SysClock = SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
SYSCTL_OSC_MAIN |
SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);
g_ui32SysClock = SysCtlClockFreqSet((SYSCTL_OSC_INT |
SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);
UartInit(g_ui32SysClock);
return;
}
Expand Down
7 changes: 3 additions & 4 deletions projects/project2/project2.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,9 @@ void SystemInit()
//
// Run from the PLL at 120 MHz.
//
g_ui32SysClock = SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
SYSCTL_OSC_MAIN |
SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);
g_ui32SysClock = SysCtlClockFreqSet((SYSCTL_OSC_INT |
SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);
UartInit(g_ui32SysClock);

// SYSTICK timer
Expand Down
7 changes: 3 additions & 4 deletions projects/uart_echo/uart_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,9 @@ main(void)
//
// Set the clocking to run directly from the crystal at 120MHz.
//
g_ui32SysClock = MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
SYSCTL_OSC_MAIN |
SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);
g_ui32SysClock = SysCtlClockFreqSet((SYSCTL_OSC_INT |
SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);
//
// Enable the GPIO port that is used for the on-board LED.
//
Expand Down

0 comments on commit 1fb88e8

Please sign in to comment.