Fix for PWM tone in transmission

This commit is contained in:
Silviu Stroe
2024-05-24 12:31:52 +03:00
committed by GitHub
parent 4e90008c17
commit eca1abf391

View File

@@ -34,7 +34,7 @@ bool backlightOn;
void BACKLIGHT_InitHardware()
{
// 48MHz / 94 / 1024 ~ 500Hz
const uint32_t PWM_FREQUENCY_HZ = 1000;
const uint32_t PWM_FREQUENCY_HZ = 4000;
PWM_PLUS0_CLKSRC |= ((48000000 / 1024 / PWM_FREQUENCY_HZ) << 16);
PWM_PLUS0_PERIOD = 1023;
@@ -154,4 +154,4 @@ void BACKLIGHT_SetBrightness(uint8_t brigtness)
uint8_t BACKLIGHT_GetBrightness(void)
{
return currentBrightness;
}
}