#ifndef _LOG_H
#define _LOG_H
#if defined __cplusplus
extern “C” {
#endif
#include “stm32l0xx_hal.h”
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include “stdio.h”
//#include “calendar.h”
#if 0
#define BSP_XC100
#if (defined(BSP_XC100))
#define DBG_vInit(uart)
{
uart.Instance = USART1;
uart.Init.BaudRate = 115200;
uart.Init.WordLength = UART_WORDLENGTH_8B;
uart.Init.StopBits = UART_STOPBITS_1;
uart.Init.Parity = UART_PARITY_NONE;
uart.Init.Mode = UART_MODE_TX_RX;
uart.Init.HwFlowCtl = UART_HWCONTROL_NONE;
uart.Init.OverSampling = UART_OVERSAMPLING_16;
uart.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
uart.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
if (HAL_UART_Init(&uart) != HAL_OK)
{