blob: f76691169a4f81a0d18e2f535cc2a5058cf357a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* UART module for Chrome EC, empty implementation */
#include "ec_uart.h"
EcError EcUartPrintf(const char* format, ...) {
return EC_ERROR_UNIMPLEMENTED;
}
EcError EcUartPuts(const char* outstr) {
return EC_ERROR_UNIMPLEMENTED;
}
void EcUartFlush(void) {
}
void EcUartFlushInput(void) {
}
int EcUartPeek(int c) {
return -1;
}
int EcUartGets(char* dest, int size) {
*dest = 0;
return 0;
}
void EcUartRegisterHasInputCallback(UartHasInputCallback callback, int c) {
}
|