controller_bb_8_driver/src/lld_control.c
static void lldConfigureLineMode( void )
{
    // Motor 1
    palSetLineMode( MOTOR1_PWM_LINE_HIN1, PAL_MODE_ALTERNATE(1) );
    palSetLineMode( MOTOR1_PWM_LINE_LIN1, PAL_MODE_ALTERNATE(1) );
    palSetLineMode( MOTOR1_PWM_LINE_HIN2, PAL_MODE_ALTERNATE(1) );
    palSetLineMode( MOTOR1_PWM_LINE_LIN2, PAL_MODE_ALTERNATE(1) );

    // Motor 2
    palSetLineMode( MOTOR2_PWM_LINE_HIN1, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR2_PWM_LINE_LIN1, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR2_PWM_LINE_HIN2, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR2_PWM_LINE_LIN2, PAL_MODE_ALTERNATE(3) );

    // Motor 3
    palSetLineMode( MOTOR3_PWM_LINE_HIN1, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR3_PWM_LINE_LIN1, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR3_PWM_LINE_HIN2, PAL_MODE_ALTERNATE(1) );
    palSetLineMode( MOTOR3_PWM_LINE_LIN2, PAL_MODE_ALTERNATE(1) );
}
/**
 * @brief   Configure all lines to be used for PWM 
 */
@brief   Configure all lines to be used for PWM
@brief Configure all lines to be used for PWM
static void lldConfigureLineMode( void )
{
    palSetLineMode( MOTOR1_PWM_LINE_HIN1, PAL_MODE_ALTERNATE(1) );
    palSetLineMode( MOTOR1_PWM_LINE_LIN1, PAL_MODE_ALTERNATE(1) );
    palSetLineMode( MOTOR1_PWM_LINE_HIN2, PAL_MODE_ALTERNATE(1) );
    palSetLineMode( MOTOR1_PWM_LINE_LIN2, PAL_MODE_ALTERNATE(1) );
    palSetLineMode( MOTOR2_PWM_LINE_HIN1, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR2_PWM_LINE_LIN1, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR2_PWM_LINE_HIN2, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR2_PWM_LINE_LIN2, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR3_PWM_LINE_HIN1, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR3_PWM_LINE_LIN1, PAL_MODE_ALTERNATE(3) );
    palSetLineMode( MOTOR3_PWM_LINE_HIN2, PAL_MODE_ALTERNATE(1) );
    palSetLineMode( MOTOR3_PWM_LINE_LIN2, PAL_MODE_ALTERNATE(1) );
}
static void lldConfigureLineMode ( void ) { palSetLineMode ( MOTOR1_PWM_LINE_HIN1 , PAL_MODE_ALTERNATE ( 1 ) ) ; palSetLineMode ( MOTOR1_PWM_LINE_LIN1 , PAL_MODE_ALTERNATE ( 1 ) ) ; palSetLineMode ( MOTOR1_PWM_LINE_HIN2 , PAL_MODE_ALTERNATE ( 1 ) ) ; palSetLineMode ( MOTOR1_PWM_LINE_LIN2 , PAL_MODE_ALTERNATE ( 1 ) ) ; palSetLineMode ( MOTOR2_PWM_LINE_HIN1 , PAL_MODE_ALTERNATE ( 3 ) ) ; palSetLineMode ( MOTOR2_PWM_LINE_LIN1 , PAL_MODE_ALTERNATE ( 3 ) ) ; palSetLineMode ( MOTOR2_PWM_LINE_HIN2 , PAL_MODE_ALTERNATE ( 3 ) ) ; palSetLineMode ( MOTOR2_PWM_LINE_LIN2 , PAL_MODE_ALTERNATE ( 3 ) ) ; palSetLineMode ( MOTOR3_PWM_LINE_HIN1 , PAL_MODE_ALTERNATE ( 3 ) ) ; palSetLineMode ( MOTOR3_PWM_LINE_LIN1 , PAL_MODE_ALTERNATE ( 3 ) ) ; palSetLineMode ( MOTOR3_PWM_LINE_HIN2 , PAL_MODE_ALTERNATE ( 1 ) ) ; palSetLineMode ( MOTOR3_PWM_LINE_LIN2 , PAL_MODE_ALTERNATE ( 1 ) ) ; }
@brief   Configure all lines to be used for PWM
@brief Configure all lines to be used for PWM
// Motor 1 // Motor 2 // Motor 3