drivers: serial: serial_test: Support irq_update call
This driver doesn't need to do anything in its irq_update implementation, but add a dummy one so that calls to uart_irq_update don't fail with -ENOSYS. Signed-off-by: Robert Hancock <robert.hancock@calian.com>
This commit is contained in:
parent
c3f9e6d1ba
commit
35b843b52e
1 changed files with 6 additions and 0 deletions
|
@ -155,6 +155,11 @@ static void irq_callback_set(const struct device *dev, uart_irq_callback_user_da
|
|||
LOG_DBG("callback set");
|
||||
}
|
||||
|
||||
static int irq_update(const struct device *dev)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int fifo_fill(const struct device *dev, const uint8_t *tx_data, int size)
|
||||
{
|
||||
struct serial_vnd_data *data = dev->data;
|
||||
|
@ -433,6 +438,7 @@ static DEVICE_API(uart, serial_vnd_api) = {
|
|||
#endif /* CONFIG_UART_USE_RUNTIME_CONFIGURE */
|
||||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
.irq_callback_set = irq_callback_set,
|
||||
.irq_update = irq_update,
|
||||
.irq_rx_enable = irq_rx_enable,
|
||||
.irq_rx_disable = irq_rx_disable,
|
||||
.irq_rx_ready = irq_rx_ready,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue