-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathUSART.h
28 lines (25 loc) · 1.36 KB
/
USART.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*--------------------------------------------------------------------------------------------------
Name : USART.h
Description : Header file for USART functions.
History : 2004-10-22 - Created by Louis Frigon.
--------------------------------------------------------------------------------------------------*/
#ifndef _USART_H_
#define _USART_H_
#include <avr/pgmspace.h>
#include "GlobalDef.h"
#define USART_BUFFER_SIZE 80
extern char UsartMsgBuffer[ USART_BUFFER_SIZE ];
/*--------------------------------------------------------------------------------------------------
Function prototypes
--------------------------------------------------------------------------------------------------*/
// Function prototypes are mandatory otherwise the compiler generates unreliable code.
void InitUSART ( void );
bool UsartIsChr ( void );
char UsartGetChr ( void );
void UsartPutChr ( char c );
void UsartPutStr ( char *str );
void UsartPutCStr ( const char *str );
#endif // _USART_H_
/*--------------------------------------------------------------------------------------------------
End of file.
--------------------------------------------------------------------------------------------------*/