Subversion Repositories HomeAutomation

Rev

Rev 1430 | Rev 1497 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1430 Rev 1496
Line 192... Line 192...
192
    #elif act_hwPWM_CH4_COM>0
192
    #elif act_hwPWM_CH4_COM>0
193
    TCCR0B|=(act_hwPWM_CH4_CS<<CS00);
193
    TCCR0B|=(act_hwPWM_CH4_CS<<CS00);
194
    #endif
194
    #endif
195
    //printf("1A %x, 1B %x, 0A %x, 0B %x\n", TCCR1A, TCCR1B, TCCR0A, TCCR0B);
195
    //printf("1A %x, 1B %x, 0A %x, 0B %x\n", TCCR1A, TCCR1B, TCCR0A, TCCR0B);
196
   
196
   
-
 
197
#if act_hwPWM_ENABLE_FADE == 1
197
    Timer_SetTimeout(act_hwPWM_FADE_TIMER, 10, TimerTypeFreeRunning, &act_hwPWM_timer_callback);
198
    Timer_SetTimeout(act_hwPWM_FADE_TIMER, 10, TimerTypeFreeRunning, &act_hwPWM_timer_callback);
-
 
199
#endif
198
   
200
   
199
    /* Setup timeout for sending the status packet */
201
    /* Setup timeout for sending the status packet */
200
    Timer_SetTimeout(act_hwPWM_SEND_STATUS_TIMEOUT, act_hwPWM_SEND_STATUS_INTERVAL_S*1000, TimerTypeFreeRunning, 0);
202
    Timer_SetTimeout(act_hwPWM_SEND_STATUS_TIMEOUT, act_hwPWM_SEND_STATUS_INTERVAL_S*1000, TimerTypeFreeRunning, 0);
201
    printf("Hello world!\n");
203
    printf("Hello world!\n");
202
}
204
}