controller_bb_8_driver/src/lld_control.c
void lldControlInit( void )
{
    if( isInitialized )
        return; 
    
    motor_b = LLD_DUTY_MIN; 
    motor_k = ( PWM_PERIOD - motor_b ) / 100;

    /*** PWM pins configuration ***/
    lldConfigureLineMode();

    pwmStart( pwm1Driver, &pwm1conf );
    pwmStart( pwm8Driver, &pwm8conf );
    
    // to avoid noise in contacts
    lldDisableAllChannels();

    isInitialized = true; 
}
/**
 * @brief   Initialize periphery connected to driver control
 * @note    Stable for repeated calls
 */
@brief   Initialize periphery connected to driver control
@note    Stable for repeated calls
@brief Initialize periphery connected to driver control @note Stable for repeated calls
void lldControlInit( void )
{
    if( isInitialized )
        return; 
    motor_b = LLD_DUTY_MIN; 
    motor_k = ( PWM_PERIOD - motor_b ) / 100;
    lldConfigureLineMode();
    pwmStart( pwm1Driver, &pwm1conf );
    pwmStart( pwm8Driver, &pwm8conf );
    lldDisableAllChannels();
    isInitialized = true; 
}
void lldControlInit ( void ) { if ( isInitialized ) return ; motor_b = LLD_DUTY_MIN ; motor_k = ( PWM_PERIOD - motor_b ) / 100 ; lldConfigureLineMode ( ) ; pwmStart ( pwm1Driver , & pwm1conf ) ; pwmStart ( pwm8Driver , & pwm8conf ) ; lldDisableAllChannels ( ) ; isInitialized = true ; }
@brief   Initialize periphery connected to driver control
 @note    Stable for repeated calls
@brief Initialize periphery connected to driver control @note Stable for repeated calls
/*** PWM pins configuration ***/ // to avoid noise in contacts