|
|
@ -6,9 +6,8 @@ |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
#include "drv_ec800k.h" |
|
|
#include "drv_ec800k.h" |
|
|
|
|
|
|
|
|
#include <stdint.h> |
|
|
#include <stdint.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "VK_Com.h" |
|
|
#include "rtdef.h" |
|
|
#include "rtdef.h" |
|
|
#include "rtthread.h" |
|
|
#include "rtthread.h" |
|
|
#include "rttypes.h" |
|
|
#include "rttypes.h" |
|
|
@ -293,4 +292,17 @@ void BSP_LTE_Config(void) { |
|
|
lte_dev.config_sta = true; |
|
|
lte_dev.config_sta = true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void hw_printf(const char *fmt, ...) { |
|
|
|
|
|
char buff[128]; |
|
|
|
|
|
va_list args; |
|
|
|
|
|
va_start(args, fmt); |
|
|
|
|
|
|
|
|
|
|
|
rt_vsnprintf(buff, sizeof(buff), fmt, args); |
|
|
|
|
|
va_end(args); |
|
|
|
|
|
|
|
|
|
|
|
rt_device_t com_dev = fmu_com_get(); |
|
|
|
|
|
if (com_dev != RT_NULL) { |
|
|
|
|
|
rt_device_write(com_dev, 0, buff, rt_strlen(buff)); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
//------------------End of File----------------------------
|
|
|
//------------------End of File----------------------------
|
|
|
|