/***********************************************************************************************************
 * Copyright (c)  2021 - 2022, Unicmicro Co.,Ltd .
 * All rights reserved.
 * Filename    : config.h
 * Description : config header file
 * Author(s)   : yanhaihua
 * version     : V1.0
 * Modify date : 2021-09-23
 ***********************************************************************************************************/
#ifndef __CONFIG_H__
#define __CONFIG_H__

#include <stdio.h>
#include <stdint.h>

#include "type.h"

#include "um321xA.h"
#include "core_cm0plus.h"

#define APP_CONFIG_SYSTEM_NAME        "UM2006A"
#define APP_CONFIG_SYSTEM_VERSION     "V1.0"

typedef enum
{
	UM_SUCCESS = 0,																							/* 成功 */
	UM_ERROR = 1,																							/* 失败 */
	UM_ERR_CRC = 2,																							/* CRC错误 */
}um_err_t;



#define UM3213xA_USING_SYSTICK
#define UM3213xA_USING_UART1
#define UM3213xA_USING_GTIMER0
#define UM3213xA_USING_GPIO
#define UM3213xA_USING_SPI0

#define DEBUG    																							/* printf调试接口使能 */
#ifdef DEBUG
	#define print2Debug     						printf
#else
	#define	print2Debug(format, ...)	     		((void)0)
#endif

#endif
