This repository has been archived by the owner on Aug 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathUART2.h
72 lines (63 loc) · 1.67 KB
/
UART2.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* File: UART.h
* Author: Mitch
*
* Created on June 15, 2013, 2:52 PM
*/
#ifndef UART2_H
#define UART2_H
#ifdef __cplusplus
extern "C" {
#endif
// Includes
#include "main.h"
//Function Prototypes
/*****************************************************************************
* Function: void InitUART2();
*
* Preconditions: None.
*
* Overview: Initializes the UART2 interface. This function was designed for
* initialization of the interface for debugging usage.
*
*
* Input: None.
*
* Output: None.
*
*****************************************************************************/
void initUART2();
/*****************************************************************************
* Function: void UART2_SendString(char *s);
*
* Preconditions: UART2 must have been initialized.
*
* Overview: Sends a string of characters specified by an array of char values.
* Note the char array does not need to represent characters, it can be any
* type of binary data.
*
*
* Input: char *s -> pointer to the data to be transmitted.
*
* Output: None.
*
*****************************************************************************/
void UART2_SendString(char *s);
/*****************************************************************************
* Function: void UART2_SendChar(char data);
*
* Preconditions: UART2 must have been initialized.
*
* Overview: Sends a single character (or byte of data) through the UART2 port.
*
*
* Input: char data -> byte of data to be transmitted.
*
* Output: None.
*
*****************************************************************************/
void UART2_SendChar(char data);
#ifdef __cplusplus
}
#endif
#endif /* UART2_H */