-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug.h
More file actions
60 lines (50 loc) · 2.08 KB
/
debug.h
File metadata and controls
60 lines (50 loc) · 2.08 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*****************************************************************************
* University of Southern Denmark
*
* MODULENAME.: debug.h
*
* PROJECT....: EQ_ONE
*
* DESCRIPTION:
*
* Change Log:
******************************************************************************
* Date Id Change
* YYMMDD
* --------------------
* 16. apr. 2017 jorn Module created.
*
*****************************************************************************/
#ifndef DEBUG_H_
#define DEBUG_H_
/***************************** Include files *******************************/
#include "emp_type.h"
/***************************** Defines *******************************/
// GPIO port used for debug
#define DEBUG_PORT GPIO_PORTB_DATA_R
// Debug PIN-MAP on DEBUG_PORT
#define DEBUG_P0 0x1
#define DEBUG_P1 0x2
/********************** External declaration of Variables ******************/
/***************************** Constants *******************************/
/************************* Function interfaces ****************************/
void debug_pins_high(INT8U pins);
/*****************************************************************************
* Input : Pin bit mask
* Output : -
* Function : Sets the selected pins bitmask high
******************************************************************************/
void debug_pins_low(INT8U pins);
/*****************************************************************************
* Input : Pin bit mask
* Output : -
* Function : Sets the selected pins bitmask low
******************************************************************************/
void debug_pins_toggle(INT8U pins);
/*****************************************************************************
* Input : Pin bit mask
* Output : -
* Function : Toggles the selected pins bitmask
******************************************************************************/
/****************************** End Of Module *******************************/
#endif /* DEBUG_H_ */