|
|
@ -1,8 +1,8 @@ |
|
|
|
#include "logger.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
extern "C" { |
|
|
|
|
|
|
|
static zchip_uart_t* m_huart; |
|
|
|
bool g_enable_log = true; |
|
|
|
/*********************************************************************
|
|
|
|
* @fn _write |
|
|
|
* |
|
|
@ -24,9 +24,6 @@ __attribute__((used)) int _write(int fd, char* buf, int size) { |
|
|
|
return size; |
|
|
|
} |
|
|
|
|
|
|
|
static zchip_uart_t* m_huart; |
|
|
|
bool g_enable_log = true; |
|
|
|
|
|
|
|
void zchip_loggger_init(zchip_uart_t* huart) { m_huart = huart; } |
|
|
|
void zchip_loggger_enable(bool enable) { g_enable_log = enable; } |
|
|
|
} |