DAT290 / kod / Central_unit / keypad.h
keypad.h
Raw
#include 	<stm32f4xx_gpio.h>
#include 	<stm32f4xx_rcc.h>

/* A public variable where the current buttons pressed are specified.
 * Update the varible using the function readKeypad.
 * 
 */
unsigned static short KEYPAD_STATUS;

void readKeypad(GPIO_TypeDef* GPIOx);

unsigned short getKeypadStatus(void);