summaryrefslogtreecommitdiff
path: root/src/arch/lm4f120h5qr-stellaris/driver/stdout.cc
blob: 18b6da4396040ff3afbf75ac50c70a362fc58f8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright 2021 Daniel Friesel
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */
#include "driver/stdout.h"

extern "C" {
#include "lm4f_cpp_wrapper.h"
};


void StandardOutput::setup()
{
	mp_uart_setup();
}

void StandardOutput::put(char c)
{
	mp_uart_send_blocking(c);
	if (c == '\n') {
		put('\r');
	}
}

StandardOutput kout;