drivers: serial: uart_stm32 converted to use the new kwork API.
The structure is now k_work_delayable. The init function is now k_work_init_delayable. The submit function is now the k_work_reschedule. The cancel function is now the k_work_cancel_delayable. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
cc21ff5a8c
commit
962d6b1082
2 changed files with 10 additions and 10 deletions
|
@ -42,7 +42,7 @@ struct uart_dma_stream {
|
|||
size_t offset;
|
||||
volatile size_t counter;
|
||||
int32_t timeout;
|
||||
struct k_delayed_work timeout_work;
|
||||
struct k_work_delayable timeout_work;
|
||||
bool enabled;
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue