/**
 * \file    sys_uart1.h
 * \brief   UART1 handler
 * 
 * \par     Copyright (c) 2018 UWE Technologies Corp., Ltd. All Rights Reserved.
 * \author  James
 * \date    2018-08-01
 * \version 
 * 
 * \history 
 *  Date        Note
 *  2018-08-01  Original Creation
 * 
 */
 
#ifndef __SYS_UART1_H_
#define __SYS_UART1_H_

#include "types.h"

#define SYS_UART1_BUFFER_SIZE           (16)
#define SYS_UART1_TIMEOUT               (5000U)

#define sys_uart1_loopback_set(flg)     (g_uart1_loopback_en = flg)

#define sys_uart1_loopback_get()        (g_uart1_loopback_en)

void sys_uart1_handler(u8_t input);

extern volatile u8_t g_uart1_loopback_en;


#endif /* #ifndef __SYS_UART1_H_ */

