usart1.h 405 Bytes
#ifndef __USART1_H
#define __USART1_H

#include "stdint.h"	
#include "stdio.h"	
#include "uart.h"

#define U1_BAUDRETE 115200

extern Uart_Type u1;

void usart1_send_byte(uint8_t one_byte);
void usart1_send_bytes(uint8_t* buf,uint16_t length);
void usart1_rx_reset(void);
void usart1_rx_receiving(void);
void usart1_rx_finished(void);
void usart1_init(void);
uint8_t usart1_read_byte(uint8_t* c);

#endif