move pwm init after clock detection
This commit is contained in:
parent
b73ed71bc2
commit
fa95b4a93a
1 changed files with 2 additions and 4 deletions
6
main.c
6
main.c
|
@ -52,16 +52,14 @@ void start_signal() {
|
|||
int main(void) {
|
||||
IntMasterDisable();
|
||||
|
||||
start_signal();
|
||||
|
||||
start_sampler();
|
||||
|
||||
// Enable the Floating Point Unit, and permit ISRs to use it
|
||||
FPUEnable();
|
||||
FPULazyStackingEnable();
|
||||
|
||||
// Initialize the system clock to 120 MHz
|
||||
gSystemClock = SysCtlClockFreqSet(SYSCTL_XTAL_25MHZ | SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480, 120000000);
|
||||
start_signal();
|
||||
start_sampler();
|
||||
|
||||
Crystalfontz128x128_Init(); // Initialize the LCD display driver
|
||||
Crystalfontz128x128_SetOrientation(LCD_ORIENTATION_UP); // set screen orientation
|
||||
|
|
Loading…
Reference in a new issue