summaryrefslogtreecommitdiff
path: root/src/include/console/spkmodem.h
blob: 336cf149040b35cbb6761dcd3eefae9e65bc3f5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef SPKMODEM_H
#define SPKMODEM_H 1

#include <rules.h>
#include <stdint.h>

void spkmodem_init(void);
void spkmodem_tx_byte(unsigned char c);

#if IS_ENABLED(CONFIG_SPKMODEM) && (ENV_ROMSTAGE || ENV_RAMSTAGE)
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

#endif