diff --git a/src/include/gpio.h b/src/include/gpio.h index db8776a417..daf602977d 100644 --- a/src/include/gpio.h +++ b/src/include/gpio.h @@ -4,6 +4,9 @@ #define __SRC_INCLUDE_GPIO_H__ #include /* IWYU pragma: export */ + +#ifndef __ASSEMBLER__ /* __ASSEMBLER__ also covers __ACPI__ case */ + #include /* must typedef a gpio_t that fits in 32 bits. */ @@ -96,4 +99,6 @@ static inline uint32_t gpio_binary_first_base3_value(const gpio_t gpio[], return _gpio_base3_value(gpio, num_gpio, 1); } +#endif /* !__ASSEMBLER__ */ + #endif /* __SRC_INCLUDE_GPIO_H__ */