File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1818/* should be power of 2 */
1919#define STUB_LIB_LOG_BUF_SIZE 4096
2020struct stub_lib_log_buf {
21- uint32_t count ;
22- char buf [STUB_LIB_LOG_BUF_SIZE ];
21+ uint32_t count ;
22+ char buf [STUB_LIB_LOG_BUF_SIZE ];
2323};
2424extern struct stub_lib_log_buf g_stub_lib_log_buf ;
2525
@@ -28,7 +28,6 @@ extern struct stub_lib_log_buf g_stub_lib_log_buf;
2828void stub_lib_log_init ();
2929void stub_lib_log_printf (const char * fmt , ...);
3030
31-
3231#define STUB_LOG_INIT () stub_lib_log_init()
3332#define STUB_LOG (fmt , ...) stub_lib_log_printf(fmt, ##__VA_ARGS__)
3433
Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ static void log_buf_write(char c)
3232void stub_lib_log_init ()
3333{
3434#if defined(STUB_LIB_LOG_UART )
35- stub_target_uart_init (0 , 115200 );
36- //fixme: call ets_install_putc1(0)/putc2(0) here?
37- ets_install_uart_printf ();
35+ stub_target_uart_init (0 , 115200 );
36+ //fixme: call ets_install_putc1(0)/putc2(0) here?
37+ ets_install_uart_printf ();
3838#elif defined(STUB_LIB_LOG_BUF )
39- ets_install_putc1 (log_buf_write );
40- ets_install_putc2 (NULL );
39+ ets_install_putc1 (log_buf_write );
40+ ets_install_putc2 (NULL );
4141#else
42- #error "STUB_LIB_LOG_X destination should be defined"
42+ #error "STUB_LIB_LOG_X destination should be defined"
4343#endif
4444}
4545
You can’t perform that action at this time.
0 commit comments