move pwm init after clock detection

This commit is contained in:
Andy Killorin 2025-03-27 11:32:49 -04:00
parent b73ed71bc2
commit fa95b4a93a
Signed by: ank
GPG key ID: 23F9463ECB67FE8C

6
main.c
View file

@ -52,16 +52,14 @@ void start_signal() {
int main(void) { int main(void) {
IntMasterDisable(); IntMasterDisable();
start_signal();
start_sampler();
// Enable the Floating Point Unit, and permit ISRs to use it // Enable the Floating Point Unit, and permit ISRs to use it
FPUEnable(); FPUEnable();
FPULazyStackingEnable(); FPULazyStackingEnable();
// Initialize the system clock to 120 MHz // Initialize the system clock to 120 MHz
gSystemClock = SysCtlClockFreqSet(SYSCTL_XTAL_25MHZ | SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480, 120000000); 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_Init(); // Initialize the LCD display driver
Crystalfontz128x128_SetOrientation(LCD_ORIENTATION_UP); // set screen orientation Crystalfontz128x128_SetOrientation(LCD_ORIENTATION_UP); // set screen orientation