diff options
Diffstat (limited to 'os/hal/templates')
-rw-r--r-- | os/hal/templates/uart_lld.c | 10 | ||||
-rw-r--r-- | os/hal/templates/uart_lld.h | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/os/hal/templates/uart_lld.c b/os/hal/templates/uart_lld.c index 46c04fe8c..b48620a71 100644 --- a/os/hal/templates/uart_lld.c +++ b/os/hal/templates/uart_lld.c @@ -97,8 +97,11 @@ void uart_lld_start_send(UARTDriver *uartp, size_t n, const void *txbuf) { * @note Stopping a transmission also suppresses the transmission callbacks.
*
* @param[in] uartp pointer to the @p UARTDriver object
+ *
+ * @return The number of data frames not transmitted by the
+ * stopped transmit operation.
*/
-void uart_lld_stop_send(UARTDriver *uartp) {
+size_t uart_lld_stop_send(UARTDriver *uartp) {
}
@@ -120,8 +123,11 @@ void uart_lld_start_receive(UARTDriver *uartp, size_t n, void *rxbuf) { * @note Stopping a receive operation also suppresses the receive callbacks.
*
* @param[in] uartp pointer to the @p UARTDriver object
+ *
+ * @return The number of data frames not received by the
+ * stopped receive operation.
*/
-void uart_lld_stop_receive(UARTDriver *uartp) {
+size_t uart_lld_stop_receive(UARTDriver *uartp) {
}
diff --git a/os/hal/templates/uart_lld.h b/os/hal/templates/uart_lld.h index 2d5c576b3..7a0c37373 100644 --- a/os/hal/templates/uart_lld.h +++ b/os/hal/templates/uart_lld.h @@ -107,9 +107,9 @@ extern "C" { void uart_lld_start(UARTDriver *uartp);
void uart_lld_stop(UARTDriver *uartp);
void uart_lld_start_send(UARTDriver *uartp, size_t n, const void *txbuf);
- void uart_lld_stop_send(UARTDriver *uartp);
+ size_t uart_lld_stop_send(UARTDriver *uartp);
void uart_lld_start_receive(UARTDriver *uartp, size_t n, void *rxbuf);
- void uart_lld_stop_receive(UARTDriver *uartp);
+ size_t uart_lld_stop_receive(UARTDriver *uartp);
#ifdef __cplusplus
}
#endif
|