/ src / include / console / spkmodem.h
spkmodem.h
 1  /* SPDX-License-Identifier: GPL-2.0-only */
 2  
 3  #ifndef SPKMODEM_H
 4  #define SPKMODEM_H 1
 5  
 6  #include <stdint.h>
 7  
 8  void spkmodem_init(void);
 9  void spkmodem_tx_byte(unsigned char c);
10  
11  #if CONFIG(SPKMODEM) && (ENV_ROMSTAGE_OR_BEFORE || ENV_RAMSTAGE)
12  static inline void __spkmodem_init(void)		{ spkmodem_init(); }
13  static inline void __spkmodem_tx_byte(u8 data)	{ spkmodem_tx_byte(data); }
14  #else
15  static inline void __spkmodem_init(void)		{}
16  static inline void __spkmodem_tx_byte(u8 data)	{}
17  #endif
18  
19  #endif