diff options
-rw-r--r-- | board/twinkie/board.h | 2 | ||||
-rw-r--r-- | include/console.h | 1 | ||||
-rw-r--r-- | test/test_config.h | 4 |
3 files changed, 7 insertions, 0 deletions
diff --git a/board/twinkie/board.h b/board/twinkie/board.h index 24b5b996bf..b5756fda34 100644 --- a/board/twinkie/board.h +++ b/board/twinkie/board.h @@ -64,6 +64,8 @@ #ifndef __ASSEMBLER__ +#include <stdint.h> + void sniffer_init(void); int wait_packet(int pol, uint32_t min_edges, uint32_t timeout_us); diff --git a/include/console.h b/include/console.h index df0762c8e3..178309812c 100644 --- a/include/console.h +++ b/include/console.h @@ -9,6 +9,7 @@ #define __CROS_EC_CONSOLE_H #include "common.h" +#include "config.h" /* * The EC code base has been using %h to print a hex buffer. Encode the diff --git a/test/test_config.h b/test/test_config.h index f4047701ad..0d473eadad 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -11,6 +11,10 @@ /* Test config flags only apply for test builds */ #ifdef TEST_BUILD +#ifndef __ASSEMBLER__ +#include <stdint.h> +#endif + /* Host commands are sorted. */ #define CONFIG_HOSTCMD_SECTION_SORTED |