Skip to content

Instantly share code, notes, and snippets.

@corburn
Created October 20, 2015 01:37
Show Gist options
  • Save corburn/89fa46b342f11c9ae7d6 to your computer and use it in GitHub Desktop.
Save corburn/89fa46b342f11c9ae7d6 to your computer and use it in GitHub Desktop.
// Enable prtinf/scanf/etc over uart
#include <stdio.h>
static FILE uart_stream = FDEV_SETUP_STREAM(uart_tx, uart_rx, _FDEV_SETUP_RW);
stdout = stdin = &uart_stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment