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
|
/* Copyright 2016 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.
*/
#ifndef __CTS_COMMON_H
#define __CTS_COMMON_H
#include "console.h"
/* Console output macros */
#define CPUTS(outstr) cputs(CC_SYSTEM, outstr)
#define CPRINTF(format, args...) cprintf(CC_SYSTEM, format, ## args)
#define CPRINTS(format, args...) cprints(CC_SYSTEM, format, ## args)
#define READ_WAIT_TIME_MS 100
/* In a single test, only one board can return unknown, the other must
* return a useful result (i.e. success, failure, etc)
*/
enum cts_error_code {
CTS_SUCCESS,
CTS_ERROR_FAILURE,
CTS_ERROR_BAD_SYNC,
CTS_ERROR_UNKNOWN
};
#endif
|