We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've already modified it in my personal branch (uart_sio.c/uart_serial.c in chibios), what should I do if I need to merge?
static bool is_initialised = false; void uart_init(uint32_t baud) { if (is_initialised) { return; } is_initialised = true; #if defined(MCU_KINETIS) serialConfig.sc_speed = baud; #else serialConfig.speed = baud; #endif #if defined(USE_GPIOV1) palSetLineMode(UART_TX_PIN, UART_TX_PAL_MODE); palSetLineMode(UART_RX_PIN, UART_RX_PAL_MODE); #else palSetLineMode(UART_TX_PIN, PAL_MODE_ALTERNATE(UART_TX_PAL_MODE) | PAL_OUTPUT_TYPE_PUSHPULL | PAL_OUTPUT_SPEED_HIGHEST); palSetLineMode(UART_RX_PIN, PAL_MODE_ALTERNATE(UART_RX_PAL_MODE) | PAL_OUTPUT_TYPE_PUSHPULL | PAL_OUTPUT_SPEED_HIGHEST); #endif sdStart(&UART_DRIVER, &serialConfig); } void uart_stop(void) { sdStop(&UART_DRIVER); is_initialised = false; } void uart_start(void) { #if defined(MCU_KINETIS) uint32_t baud = serialConfig.sc_speed; #else uint32_t baud = serialConfig.speed ; #endif uart_init(baud); }
The text was updated successfully, but these errors were encountered:
what should I do if I need to merge?
Make a PR.
Sorry, something went wrong.
No branches or pull requests
Feature Request Type
Description
I've already modified it in my personal branch (uart_sio.c/uart_serial.c in chibios), what should I do if I need to merge?
The text was updated successfully, but these errors were encountered: