aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src/serial.c')
-rw-r--r--os/hal/src/serial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/src/serial.c b/os/hal/src/serial.c
index 8b0d7c8cf..2bf7f396b 100644
--- a/os/hal/src/serial.c
+++ b/os/hal/src/serial.c
@@ -52,13 +52,13 @@
* queue-level function or macro.
*/
-static size_t writes(void *ip, const uint8_t *bp, size_t n) {
+static size_t write(void *ip, const uint8_t *bp, size_t n) {
return chOQWriteTimeout(&((SerialDriver *)ip)->oqueue, bp,
n, TIME_INFINITE);
}
-static size_t reads(void *ip, uint8_t *bp, size_t n) {
+static size_t read(void *ip, uint8_t *bp, size_t n) {
return chIQReadTimeout(&((SerialDriver *)ip)->iqueue, bp,
n, TIME_INFINITE);
@@ -99,7 +99,7 @@ static chnflags_t getflags(void *ip) {
}
static const struct SerialDriverVMT vmt = {
- writes, reads, put, get,
+ write, read, put, get,
putt, gett, writet, readt,
getflags
};