lcd_st7920: Only calibrate wait ticks on mcus with strict timing
The calibration isn't valid on the linux mcu, so make it dependent on CONFIG_HAVE_STRICT_TIMING. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
98192d710f
commit
0cbb8fdc9a
|
@ -106,6 +106,12 @@ command_config_st7920(uint32_t *args)
|
|||
s->sid = gpio_out_setup(args[3], 0);
|
||||
gpio_out_setup(args[1], 1);
|
||||
|
||||
if (!CONFIG_HAVE_STRICT_TIMING) {
|
||||
s->sync_wait_ticks = args[4];
|
||||
s->cmd_wait_ticks = args[5];
|
||||
return;
|
||||
}
|
||||
|
||||
// Calibrate cmd_wait_ticks
|
||||
st7920_xmit_byte(s, SYNC_CMD);
|
||||
st7920_xmit_byte(s, 0x20);
|
||||
|
|
Loading…
Reference in New Issue