From fa95b4a93a11eafb12700c3beb9d8eab99b998e7 Mon Sep 17 00:00:00 2001 From: Andy Killorin <37423245+Speedy6451@users.noreply.github.com> Date: Thu, 27 Mar 2025 11:32:49 -0400 Subject: [PATCH] move pwm init after clock detection --- main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 339db86..4ef62d5 100644 --- a/main.c +++ b/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