Skip to content
New issue

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

[sw/lib] add nerov32-flavored vprintf funtion #711

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

stnolting
Copy link
Owner

Suggested by @jpf91 in #710

@stnolting stnolting added enhancement New feature or request SW software-related labels Oct 23, 2023
@stnolting stnolting self-assigned this Oct 23, 2023
@stnolting stnolting linked an issue Oct 23, 2023 that may be closed by this pull request
@jpf91
Copy link
Contributor

jpf91 commented Oct 23, 2023

Great, thanks! Now it's really easy to write a task-safe wrapper, e.g. for FreeRTOS:

void uart_printf_locked(neorv32_uart_t *UARTx, const char *format, ...) {

  va_list args;
  va_start(args, format);
  xSemaphoreTake(...)
  neorv32_uart_vprintf(UARTx, format, args);
  xSemaphoreGive(...)
  va_end(args);
}

@stnolting stnolting marked this pull request as ready for review October 23, 2023 20:35
@stnolting stnolting merged commit 8b286f3 into main Oct 24, 2023
8 checks passed
@stnolting stnolting deleted the neorv32_vprintf branch October 24, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SW software-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a neorv32_uart_vprintf function
2 participants