File tree Expand file tree Collapse file tree 3 files changed +4
-40
lines changed Expand file tree Collapse file tree 3 files changed +4
-40
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
- #include <logging/log_backend_uart.h>
6
+
7
+ #include <logging/log_backend.h>
7
8
#include <logging/log_core.h>
8
9
#include <logging/log_msg.h>
9
10
#include <logging/log_output.h>
@@ -66,3 +67,5 @@ const struct log_backend_api log_backend_uart_api = {
66
67
.panic = panic ,
67
68
.init = log_backend_uart_init ,
68
69
};
70
+
71
+ LOG_BACKEND_DEFINE (log_backend_uart , log_backend_uart_api );
Original file line number Diff line number Diff line change 9
9
#include <logging/log_backend.h>
10
10
#include <logging/log_ctrl.h>
11
11
#include <logging/log_output.h>
12
- #include <logging/log_backend_uart.h>
13
12
#include <misc/printk.h>
14
13
#include <assert.h>
15
14
#include <atomic.h>
18
17
#define CONFIG_LOG_PRINTK_MAX_STRING_LENGTH 1
19
18
#endif
20
19
21
- #ifdef CONFIG_LOG_BACKEND_UART
22
- LOG_BACKEND_UART_DEFINE (log_backend_uart );
23
- const struct log_backend * uart_backend = & log_backend_uart ;
24
- #else
25
- const struct log_backend * uart_backend ;
26
- #endif
27
-
28
20
static struct log_list_t list ;
29
21
static atomic_t initialized ;
30
22
static bool panic_mode ;
You can’t perform that action at this time.
0 commit comments