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 pathdebug.h
74 lines (62 loc) · 1.65 KB
/
debug.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
73
/*
* File: debug.h
* Author: Chris Hajduk
*
* Created on August 24, 2014, 6:02 PM
*/
#ifndef DEBUG_H
#define DEBUG_H
#ifdef __cplusplus
extern "C" {
#endif
// Includes
#include "main.h"
// Function Prototypes
/*****************************************************************************
* Function: void error(char* message)
*
* Preconditions: UART2 must have been initialized.
*
* Overview: Provides an error message over the debugging UART port. Prefixes
* the message with a "[error]".
*
*
* Input: char* message -> The message associated with the error.
*
* Output: None.
*
*****************************************************************************/
void error(char* message);
/*****************************************************************************
* Function: void warning(char* message)
*
* Preconditions: UART2 must have been initialized.
*
* Overview: Provides an warning message over the debugging UART port. Prefixes
* the message with a "[warning]".
*
*
* Input: char* message -> The message associated with the warning.
*
* Output: None.
*
*****************************************************************************/
void warning(char* message);
/*****************************************************************************
* Function: void debug(char* message)
*
* Preconditions: UART2 must have been initialized.
*
* Overview: Sends a message to the the debug UART port.
*
*
* Input: char* message -> The message.
*
* Output: None.
*
*****************************************************************************/
void debug(char* message);
#ifdef __cplusplus
}
#endif
#endif /* DEBUG_H */