2022-07-27 06:18:26 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
2013-03-30 02:02:13 +01:00
|
|
|
#ifndef SPKMODEM_H
|
|
|
|
#define SPKMODEM_H 1
|
|
|
|
|
2014-02-26 14:19:04 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2013-03-30 02:02:13 +01:00
|
|
|
void spkmodem_init(void);
|
|
|
|
void spkmodem_tx_byte(unsigned char c);
|
|
|
|
|
2019-03-06 01:53:33 +01:00
|
|
|
#if CONFIG(SPKMODEM) && (ENV_ROMSTAGE || ENV_RAMSTAGE)
|
2014-02-26 14:19:04 +01:00
|
|
|
static inline void __spkmodem_init(void) { spkmodem_init(); }
|
|
|
|
static inline void __spkmodem_tx_byte(u8 data) { spkmodem_tx_byte(data); }
|
|
|
|
#else
|
|
|
|
static inline void __spkmodem_init(void) {}
|
|
|
|
static inline void __spkmodem_tx_byte(u8 data) {}
|
|
|
|
#endif
|
|
|
|
|
2013-03-30 02:02:13 +01:00
|
|
|
#endif
|