1 #ifndef __UTILITIES_H__
2 #define __UTILITIES_H__
16 #define MPL_PIN RPI_V2_GPIO_P1_07
17 #define LUX_PIN RPI_V2_GPIO_P1_11
18 #define ACLM_PIN RPI_V2_GPIO_P1_12
19 #define ALERT_PIN RPI_V2_GPIO_P1_13
20 #define LED_PIN RPI_V2_GPIO_P1_15
21 #define MFP_PIN RPI_V2_GPIO_P1_18
25 #define MPL_PIN RPI_V2_GPIO_P1_15
26 #define LUX_PIN RPI_V2_GPIO_P1_11
27 #define ACLM_PIN RPI_V2_GPIO_P1_07
28 #define ALERT_PIN RPI_V2_GPIO_P1_13
29 #define LED_PIN RPI_V2_GPIO_P1_12
30 #define MFP_PIN RPI_V2_GPIO_P1_18
void pinModeOutput(PIN_t pin)
Configures the given pin as output.
void DisableDetectRisingEdge(PIN_t pin)
Disables detection of rising edge.
void EnableDetectFallingEdge(PIN_t pin)
Enables detection of falling edge.
void DisableDetectFallinggEdge(PIN_t pin)
Dsiables detection of falling edge.
void DisableDetectRisingInterrupt(PIN_t pin)
Disables detection of rising edge interrupt.
void EnableDetectRisingEdge(PIN_t pin)
Enables detection of rising edge.
PinLevel_t ReadPinStatus(PIN_t pin)
Configures the pins as input and returns the pin status.
void EnableDetectLowLevel(PIN_t pin)
Enables detection of low level.
void DisableDetectHighLevel(PIN_t pin)
Disables detection of high level.
void delay_ms(unsigned int ms)
Delay in ms.
void digitalWrite(PIN_t pin, unsigned char level)
Write a logic level to the pin. The pin should be confgured as output.
void EnableDetectHighLevel(PIN_t pin)
Enables detection of high level on pin.
void DisableDetectLowLevel(PIN_t pin)
Disables detection of low level.
void EnableDetectRisingInterrupt(PIN_t pin)
Enables detection of rising edge interrupt.