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
/
UART1.h
60 lines (55 loc) · 1.56 KB
/
UART1.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
/*
* File: UART.h
* Author: Mitch
*
* Created on June 15, 2013, 2:52 PM
*/
#ifndef UART_H
#define UART_H
#endif /* UART_H */
//Function Prototypes
/*****************************************************************************
* Function: void initUART1();
*
* Preconditions: None.
*
* Overview: Initializes the UART1 interface. This function was designed for
* initialization of the interface for debugging usage.
*
*
* Input: None.
*
* Output: None.
*
*****************************************************************************/
void initUART1();
/*****************************************************************************
* Function: void UART1_SendString(char *s);
*
* Preconditions: UART1 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 UART1_SendChar(char data);
/*****************************************************************************
* Function: void UART1_SendChar(char data);
*
* Preconditions: UART1 must have been initialized.
*
* Overview: Sends a single character (or byte of data) through the UART1 port.
*
*
* Input: char data -> byte of data to be transmitted.
*
* Output: None.
*
*****************************************************************************/
void UART1_SendString(char *s);