forked from UWARG/RC-Car-Bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StartupErrorCodes.h
executable file
·36 lines (34 loc) · 1.01 KB
/
StartupErrorCodes.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
/*
* File: StartupErrorCodes.h
* Author: Chris Hajduk
*
* Created on October 15, 2013, 8:33 PM
*/
/*****************************************************************************
* Function: void checkErrorCodes();
*
* Preconditions: None, but if debugging is initialized, the error codes will be
* output there.
*
* Overview: Checks what caused the last chip reset.
*
* Input: None.
*
* Output: None.
*
*****************************************************************************/
void checkErrorCodes();
/*****************************************************************************
* Function: unsigned int getErrorCodes();
*
* Preconditions: None.
*
* Overview: Provides a series of boolean values (bits within the integer)
* representing the errors that cause the last chip reset.
*
* Input: None.
*
* Output: unsigned int -> bits representing each possible error on start up.
*
*****************************************************************************/
unsigned int getErrorCodes();