67 #include "em_device.h" 94 CMU_ClockEnable(cmuClock_HFPER,
true);
95 CMU_ClockEnable(cmuClock_GPIO,
true);
104 GPIO_IntClear(0xAAAA);
108 GPIO_IntClear(0x5555);
113 NVIC_EnableIRQ(GPIO_EVEN_IRQn);
116 NVIC_EnableIRQ(GPIO_ODD_IRQn);
123 #if DEBUG_DBPRINT == 1 124 dbinfo(
"GPIO wake-up initialized");
222 GPIO_IntClear(0x5555);
242 GPIO_IntClear(0xAAAA);
volatile bool PULSE0_triggered
void PULSE_setTriggered(uint8_t number, bool value)
Setter for the PULSE0/1_triggered variable.
volatile bool BTN_triggered
void GPIO_ODD_IRQHandler(void)
GPIO Odd IRQ for odd-numbered pins.
bool PULSE_getTriggered(uint8_t number)
Getter for the PULSE0/1_triggered variable.
void dbinfo(char *message)
Print an info string (char array) to USARTx and go to the next line.
void initGPIOwakeup(void)
Initialize GPIO wake-up functionality.
void BTN_setTriggered(bool value)
Setter for the BTN_triggered variable.
void GPIO_EVEN_IRQHandler(void)
GPIO Even IRQ for even-numbered pins.
The pin definitions for the custom board.
Enable or disable printing to UART with dbprint.
volatile bool PULSE1_triggered
bool BTN_getTriggered(void)
Getter for the BTN_triggered variable.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type. The developer should modify this to suit the platform bein...
unsigned int uint32_t
Typedef defining 32 bit unsigned int type. The developer should modify this to suit the platform bein...