1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef CONSOLE_I2C_SMBUS_H
4 #define CONSOLE_I2C_SMBUS_H
8 void i2c_smbus_console_init(void);
9 void i2c_smbus_console_tx_byte(unsigned char c
);
11 #define __CONSOLE_SMBUS_ENABLE__ CONFIG(CONSOLE_I2C_SMBUS)
13 #if __CONSOLE_SMBUS_ENABLE__
14 static inline void __i2c_smbus_console_init(void)
16 i2c_smbus_console_init();
19 static inline void __i2c_smbus_console_tx_byte(u8 data
)
21 i2c_smbus_console_tx_byte(data
);
24 static inline void __i2c_smbus_console_init(void) {}
25 static inline void __i2c_smbus_console_tx_byte(u8 data
) {}
26 #endif /* __CONSOLE_SMBUS_ENABLE__ */
28 #endif /* CONSOLE_I2C_SMBUS_H */