-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuart1.h
More file actions
41 lines (33 loc) · 1.24 KB
/
uart1.h
File metadata and controls
41 lines (33 loc) · 1.24 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* File: uart1.h
* Author: Marc Pascual
* Comments: Prototypes
* Revision history:
*/
#ifndef _UART1_H
#define _UART1_H
#include <xc.h> // include processor files - each processor file is guarded.
//Initiation
extern void UART1Init(int BAUDRATE);
/*---------------------------------------------------------------------
Function name: vPutCharU1
Description: Sends one character to UART1 (use of blocking wait)
Input parameters: Character to send
Output parameters: -
-----------------------------------------------------------------------*/
void vPutCharU1(char cChar);
/*---------------------------------------------------------------------
Function name: vPutStrU1
Description: Sends string to UART1
Input parameters: String to send
Output parameters: -
-----------------------------------------------------------------------*/
void vPutStrU1(char* pcStr);
/*---------------------------------------------------------------------
Function name: cGetCharU1
Description: Receives character from UART1 (use of blocking wait)
Input parameters: -
Output parameters: Received character
-----------------------------------------------------------------------*/
char cGetCharU1(void);
#endif