forked from Engenuics/MSP430_BLINKY
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuttons.h
More file actions
35 lines (25 loc) · 1.13 KB
/
buttons.h
File metadata and controls
35 lines (25 loc) · 1.13 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
/**********************************************************************
* Header file for button functions
**********************************************************************/
/************************ Revision History ****************************
YYYY-MM-DD Comments
-------------------------------------------------------------------------------------------
2019-06-25 File created
************************************************************************/
#ifndef __BUTTON_HEADER
#define __BUTTON_HEADER
#include "typedef_MSP430.h"
/******************************************************************************
Type Definitions
******************************************************************************/
typedef struct
{
u16* u16pPortAddress;
u8 u8ButtonIdentifier;
}ButtonInformation;
/****************************************************************************************
Constants
****************************************************************************************/
/************************ Function Declarations ****************************/
bool IsButtonPressed(ButtonInformation ButtonInfo);
#endif /* __BUTTON_HEADER */