Temporary commit for X10 pulses

This commit is contained in:
Bertrand Songis
2019-08-13 14:59:19 +02:00
parent 05b827238c
commit fc0e7294a9
8 changed files with 308 additions and 137 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ void backlightInit()
// TIMER init
#if defined(PCBX12S)
if (IS_HORUS_PROD()) {
if (IS_X12S_PROD()) {
BACKLIGHT_TIMER->ARR = 100;
BACKLIGHT_TIMER->PSC = BACKLIGHT_TIMER_FREQ / 10000 - 1; // 1kHz
BACKLIGHT_TIMER->CCMR2 = TIM_CCMR2_OC4M_1 | TIM_CCMR2_OC4M_2; // PWM
@@ -68,7 +68,7 @@ void backlightInit()
void backlightEnable(uint8_t dutyCycle)
{
#if defined(PCBX12S)
if (IS_HORUS_PROD()) {
if (IS_X12S_PROD()) {
BACKLIGHT_TIMER->CCR4 = dutyCycle;
}
else {