forked from Engenuics/MSP430_BLINKY
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput_pins.c
More file actions
19 lines (15 loc) · 746 Bytes
/
input_pins.c
File metadata and controls
19 lines (15 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**********************************************************************
* Definitions for input pin functions
**********************************************************************/
/************************ Revision History ****************************
YYYY-MM-DD Comments
-------------------------------------------------------------------------------------------
2019-06-25 File created
************************************************************************/
#include "input_pins.h"
#include "io430f2122.h"
#include "typedef_MSP430.h"
bool IsInputPinOnVoltageLow(InputPinInformation ipiInputPinInfo)
{
return ! (((*(ipiInputPinInfo.u16pPortAddress)) & ipiInputPinInfo.u8InputPinIdentifier) == ipiInputPinInfo.u8InputPinIdentifier);
}