update period value

This commit is contained in:
Sanyog Nevase Nevase 2024-09-22 20:35:30 +05:30
parent d3f45af26b
commit 17ebf685b0
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ void GPIO_PORT_F_init(void)
#define SYSTICK_RELOAD_VALUE(us) ((CLOCK_HZ / 1000000) * (us) - 1) // SysTick reload value in microseconds based on clock frequency
volatile int duty = 50; // Initial duty cycle
const volatile int PWM_PERIOD = 1000000; // Period for 100kHz in microseconds (10ms)
const volatile int PWM_PERIOD = 1000; // Period for 100kHz in microseconds (10ms)
volatile int ontime = 0; // Variable to track on time
//volatile bool ledState = false; // State of the LED