Replace display_port_busy_t with bool
This commit is contained in:
parent
3c5a4061d9
commit
d627884887
2 changed files with 7 additions and 13 deletions
|
@ -40,16 +40,16 @@ void display_port_gpio_rst(lv_disp_drv_t *drv, uint8_t state)
|
|||
#endif
|
||||
}
|
||||
|
||||
display_port_busy_t display_port_gpio_is_busy(lv_disp_drv_t *drv)
|
||||
bool display_port_gpio_is_busy(lv_disp_drv_t *drv)
|
||||
{
|
||||
(void) drv;
|
||||
|
||||
display_port_busy_t device_busy = DISPLAY_PORT_DEVICE_NOT_BUSY;
|
||||
bool device_busy = false;
|
||||
|
||||
#ifdef CONFIG_LV_DISP_PIN_BUSY
|
||||
/* FIXME Assuming the busy signal in logic 1 means the device is busy */
|
||||
if (gpio_get_level(CONFIG_LV_DISP_PIN_BUSY) == 1) {
|
||||
device_busy = DISPLAY_PORT_DEVICE_IS_BUSY;
|
||||
device_busy = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue