Created
October 20, 2015 01:37
-
-
Save corburn/89fa46b342f11c9ae7d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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