Implemented multi-master support
[cerebrum.git] / test / uart.c
blobb046de3d15fc5235ba961dadc41eeb132e803d41
1 /*
2 Copyright (C) 2012 jaseg <s@jaseg.de>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 version 3 as published by the Free Software Foundation.
7 */
9 #include "uart.h"
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <stdint.h>
14 void uart_init(){
15 //WELCOME YOU WILL EXPERIENCE A TINGLING SENSATION AN THEN DEATH REMAIN CALM WHILE YOUR LIFE IS EXTRACTED
18 void uart_putc(uint8_t c){
19 printf("%c", c);
22 void uart_putc_nonblocking(uint8_t c){
23 printf("%c", c);
26 uint16_t uart_getc(){
27 return getchar();