1
0
Fork 0

Format code according to conventions (#11905)

Co-authored-by: QMK Bot <hello@qmk.fm>
This commit is contained in:
github-actions[bot] 2021-02-15 06:55:43 +11:00 committed by GitHub
parent 4ddb5abea5
commit c27a778281
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 27 deletions

View file

@ -18,12 +18,7 @@
#include "quantum.h" #include "quantum.h"
static SerialConfig serialConfig = { static SerialConfig serialConfig = {SERIAL_DEFAULT_BITRATE, SD1_CR1, SD1_CR2, SD1_CR3};
SERIAL_DEFAULT_BITRATE,
SD1_CR1,
SD1_CR2,
SD1_CR3
};
void uart_init(uint32_t baud) { void uart_init(uint32_t baud) {
static bool is_initialised = false; static bool is_initialised = false;
@ -44,9 +39,7 @@ void uart_init(uint32_t baud) {
} }
} }
void uart_putchar(uint8_t c) { void uart_putchar(uint8_t c) { sdPut(&SERIAL_DRIVER, c); }
sdPut(&SERIAL_DRIVER, c);
}
uint8_t uart_getchar(void) { uint8_t uart_getchar(void) {
msg_t res = sdGet(&SERIAL_DRIVER); msg_t res = sdGet(&SERIAL_DRIVER);
@ -54,6 +47,4 @@ uint8_t uart_getchar(void) {
return (uint8_t)res; return (uint8_t)res;
} }
bool uart_available(void) { bool uart_available(void) { return !sdGetWouldBlock(&SERIAL_DRIVER); }
return !sdGetWouldBlock(&SERIAL_DRIVER);
}

View file

@ -305,7 +305,6 @@ int main(void) {
// dprintf("5v=%u 5vu=%u dlow=%u dhi=%u gca=%u gcd=%u\r\n", v_5v, v_5v_avg, v_5v_avg - V5_LOW, v_5v_avg - V5_HIGH, gcr_actual, gcr_desired); // dprintf("5v=%u 5vu=%u dlow=%u dhi=%u gca=%u gcd=%u\r\n", v_5v, v_5v_avg, v_5v_avg - V5_LOW, v_5v_avg - V5_HIGH, gcr_actual, gcr_desired);
} }
#endif // CONSOLE_ENABLE #endif // CONSOLE_ENABLE
} }
return 1; return 1;