drivers: sam: UART async API change timeout to signed value.

Change timeout to signed value.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
This commit is contained in:
Mieszko Mierunski 2020-01-29 09:42:08 +01:00 committed by Carles Cufí
commit 971c27af0d

View file

@ -686,7 +686,7 @@ static int uart_sam0_callback_set(struct device *dev, uart_callback_t callback,
}
static int uart_sam0_tx(struct device *dev, const u8_t *buf, size_t len,
u32_t timeout)
s32_t timeout)
{
struct uart_sam0_dev_data *const dev_data = DEV_DATA(dev);
const struct uart_sam0_dev_cfg *const cfg = DEV_CFG(dev);
@ -744,7 +744,7 @@ static int uart_sam0_tx_abort(struct device *dev)
}
static int uart_sam0_rx_enable(struct device *dev, u8_t *buf, size_t len,
u32_t timeout)
s32_t timeout)
{
struct uart_sam0_dev_data *const dev_data = DEV_DATA(dev);
const struct uart_sam0_dev_cfg *const cfg = DEV_CFG(dev);