1 /*
2  * Copyright (c) 2008-2015 Travis Geiselbrecht
3  *
4  * Use of this source code is governed by a MIT-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/MIT
7  */
8 
9 #include <lk/compiler.h>
10 #include <lk/debug.h>
11 #include <lk/trace.h>
12 
13 /* Default implementation of panic time getc/putc.
14  * Just calls through to the underlying dputc/dgetc implementation
15  * unless the platform overrides it.
16  */
platform_pputc(char c)17 __WEAK void platform_pputc(char c) {
18     return platform_dputc(c);
19 }
20 
platform_pgetc(char * c,bool wait)21 __WEAK int platform_pgetc(char *c, bool wait) {
22     return platform_dgetc(c, wait);
23 }
24