2008-09-01 02:26:09 -07:00
|
|
|
/*
|
2015-10-14 14:11:54 -07:00
|
|
|
* Copyright (c) 2008-2015 Travis Geiselbrecht
|
2008-09-01 02:26:09 -07:00
|
|
|
*
|
2019-07-05 17:22:23 -07:00
|
|
|
* Use of this source code is governed by a MIT-style
|
|
|
|
|
* license that can be found in the LICENSE file or at
|
|
|
|
|
* https://opensource.org/licenses/MIT
|
2008-09-01 02:26:09 -07:00
|
|
|
*/
|
|
|
|
|
|
2024-08-09 19:30:20 -07:00
|
|
|
#include <platform/debug.h>
|
|
|
|
|
|
2019-06-17 18:28:51 -07:00
|
|
|
#include <lk/compiler.h>
|
2012-10-31 22:09:01 -07:00
|
|
|
|
2015-10-14 14:11:54 -07:00
|
|
|
/* Default implementation of panic time getc/putc.
|
|
|
|
|
* Just calls through to the underlying dputc/dgetc implementation
|
|
|
|
|
* unless the platform overrides it.
|
|
|
|
|
*/
|
2019-06-19 20:54:28 -07:00
|
|
|
__WEAK void platform_pputc(char c) {
|
2015-10-14 14:11:54 -07:00
|
|
|
return platform_dputc(c);
|
2015-09-22 16:02:20 -07:00
|
|
|
}
|
|
|
|
|
|
2019-06-19 20:54:28 -07:00
|
|
|
__WEAK int platform_pgetc(char *c, bool wait) {
|
2015-10-14 14:11:54 -07:00
|
|
|
return platform_dgetc(c, wait);
|
2015-09-22 16:02:20 -07:00
|
|
|
}
|