Debian Codegraph @

src/include/console/flash.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef CONSOLE_FLASH_H
4 #define CONSOLE_FLASH_H 1
5
6 #include <stdint.h>
7
8 void flashconsole_init(void);
9 void flashconsole_tx_byte(unsigned char c);
10 void flashconsole_tx_flush(void);
11
12 #define __CONSOLE_FLASH_ENABLE__ CONFIG(CONSOLE_SPI_FLASH)
13
14 #if __CONSOLE_FLASH_ENABLE__
15 static inline void __flashconsole_init(void) { flashconsole_init(); }
16 static inline void __flashconsole_tx_byte(u8 data)
17 {
18 flashconsole_tx_byte(data);
19 }
20 static inline void __flashconsole_tx_flush(void)
21 {
22 flashconsole_tx_flush();
23 }
24 #else
25 static inline void __flashconsole_init(void) {}
26 static inline void __flashconsole_tx_byte(u8 data) {}
27 static inline void __flashconsole_tx_flush(void) {}
28 #endif /* __CONSOLE_FLASH_ENABLE__ */
29
30 #endif /* CONSOLE_FLASH_H */