100 LCD_CR &= ~LCD_CR_MUX_SEG;
105 uint32_t duty, lcd_clock;
143 uint32_t ps_mul_div = lcd_clock / (duty * frequency);
146 while (ps_mul_div > 32) {
150 div = ps_mul_div - 16;
void lcd_disable_segment_multiplexing(void)
void lcd_set_prescaler(uint8_t ps)
void lcd_set_divider(uint8_t div)
#define LCD_FCR_DIV_SHIFT
void lcd_enable_segment_multiplexing(void)
int lcd_is_step_up_ready(void)
#define LCD_CR_BIAS_SHIFT
void lcd_set_duty(uint8_t duty)
void lcd_set_refresh_frequency(uint32_t frequency)
#define LCD_CR_DUTY_SHIFT
#define LCD_CR_DUTY_STATIC
void lcd_wait_for_lcd_enabled(void)
void lcd_set_bias(uint8_t bias)
int lcd_is_for_update_ready(void)
void lcd_wait_for_step_up_ready(void)
void lcd_wait_for_update_ready(void)
void lcd_set_contrast(uint8_t contrast)
#define LCD_SR
Status register.
#define LCD_CR
Control register.
#define LCD_FCR
Frame control register.
#define RCC_CSR_RTCSEL_SHIFT
#define RCC_CSR_RTCSEL_LSI
#define RCC_CSR_RTCSEL_HSE
#define RCC_CSR_RTCSEL_MASK
#define RCC_CSR_RTCSEL_LSE