1/* 2 * Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef SERIAL_H 6#define SERIAL_H 7 8 9#include <SupportDefs.h> 10 11 12#ifdef __cplusplus 13extern "C" { 14#endif 15 16extern void serial_init(const void *fdt); 17extern void serial_cleanup(void); 18 19extern void serial_puts(const char *string, size_t size); 20extern int serial_getc(bool wait); 21 22extern void serial_disable(void); 23extern void serial_enable(void); 24 25#ifdef __cplusplus 26} 27#endif 28 29#endif /* SERIAL_H */ 30