summaryrefslogtreecommitdiff
path: root/drivers/chibios
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-02-15 06:55:43 +1100
committerGitHub <noreply@github.com>2021-02-15 06:55:43 +1100
commitc27a778281824423a324d04276d291f06b49b1ae (patch)
treecd5a76f152596d05e45f2aa24f7dd4c661ced3ec /drivers/chibios
parent4ddb5abea51251c6f76c272724984f77f0596f90 (diff)
Format code according to conventions (#11905)
Co-authored-by: QMK Bot <hello@qmk.fm>
Diffstat (limited to 'drivers/chibios')
-rw-r--r--drivers/chibios/uart.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/chibios/uart.c b/drivers/chibios/uart.c
index 6e94899b9d..030335b342 100644
--- a/drivers/chibios/uart.c
+++ b/drivers/chibios/uart.c
@@ -18,12 +18,7 @@
#include "quantum.h"
-static SerialConfig serialConfig = {
- SERIAL_DEFAULT_BITRATE,
- SD1_CR1,
- SD1_CR2,
- SD1_CR3
-};
+static SerialConfig serialConfig = {SERIAL_DEFAULT_BITRATE, SD1_CR1, SD1_CR2, SD1_CR3};
void uart_init(uint32_t baud) {
static bool is_initialised = false;
@@ -44,9 +39,7 @@ void uart_init(uint32_t baud) {
}
}
-void uart_putchar(uint8_t c) {
- sdPut(&SERIAL_DRIVER, c);
-}
+void uart_putchar(uint8_t c) { sdPut(&SERIAL_DRIVER, c); }
uint8_t uart_getchar(void) {
msg_t res = sdGet(&SERIAL_DRIVER);
@@ -54,6 +47,4 @@ uint8_t uart_getchar(void) {
return (uint8_t)res;
}
-bool uart_available(void) {
- return !sdGetWouldBlock(&SERIAL_DRIVER);
-}
+bool uart_available(void) { return !sdGetWouldBlock(&SERIAL_DRIVER); }