/******************************* (C) LiteMesh **********************************
 * @module  usart
 * @file    usart.h
 * @version 1.0.0
 * @date    XX.XX.XXXX
 * $brief   Template
 *******************************************************************************
 * @history     Version  Author         Comment
 * XX.XX.XXXX   1.0.0    Telenkov D.A.  First release.
 *******************************************************************************
 */

/* Define to prevent recursive  ----------------------------------------------*/
#ifndef USART_H
#define USART_H

#include <stdint.h>

/**
  * @brief  
  */
#define USER_USART         USART1

#define UPS_USART         			USART2
#define UPS_USART_BAUD				2400
#define	UPS_USART_WORD_LEN			8
#define	UPS_USART_PARITY			USART_Parity_No
#define UPS_USART_STOP_BIT			USART_StopBits_1

/**
  * @brief  
  */
void InitUSART(void);
   
/**
  * @brief  
  * @retval 
  */

int ups_getchar(unsigned int timeout);
void ups_putchar(uint16_t byte);
int ups_send_block(void *data, uint8_t len);


#endif /* #ifndef USART_H */

/****************************** (C) LiteMesh ***************** end of file ****/
