/* init the GPIO port of the SLCD and SLCD peripheral  */
void slcd_seg_config(void)
/* init the GPIO port of the SLCD and SLCD peripheral  */
void slcd_seg_config(void)
{
    uint16_t i;
    slcd_gpio_config();
    rcu_periph_clock_enable(RCU_SLCD);
    for(i = 0;i < 500;i++);
    slcd_clock_config(SLCD_PRESCALER_4,SLCD_DIVIDER_19);
    slcd_bias_voltage_select(SLCD_BIAS_1_3);
    slcd_duty_select(SLCD_DUTY_1_4);
    slcd_voltage_source_select(SLCD_VOLTAGE_EXTERNAL);
    slcd_pulse_on_duration_config(SLCD_PULSEON_DURATION_7);
    slcd_dead_time_config(SLCD_DEADTIME_PERIOD_7);
    slcd_high_drive_config(ENABLE);
    while (!slcd_flag_get(SLCD_FLAG_SYNF));
    slcd_enable();
    while (!slcd_flag_get(SLCD_FLAG_ONF));
    while (!slcd_flag_get(SLCD_FLAG_VRDYF));
}