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 class DebugUART; 13 extern DebugUART* gUART; 14 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 extern void serial_init(void); 21 extern void serial_init_post_mmu(void); 22 extern void serial_cleanup(void); 23 24 extern void serial_puts(const char *string, size_t size); 25 26 extern void serial_disable(void); 27 extern void serial_enable(void); 28 29 extern void serial_kernel_handoff(void); 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #endif /* SERIAL_H */ 36