38.3.2.2 usart_os_deinit
Deinitialize USART interface.
int32_t usart_os_deinit(
struct usart_os_descriptor *const descr
)
This function deinitializes the given I/O descriptor. It checks if the given hardware is initialized and if the given hardware is permitted to be deinitialized.
Parameters
- descr
-
Type: struct usart_os_descriptor Struct *const
A USART descriptor which is used to communicate via USART
Returns
Type: int32_t
De-initialization status.
- -1
-
Passed parameters were invalid or the interface is already deinitialized
- 0
-
The de-initialization is completed successfully