#include "key.h" /** * Handles a generic key event and decides which function press to call */ void handle_keyevent(void (*handle_keypress)(char)) { char key; int i; key = check_key_press(); if (key == NO_KEY_PRESSED) { PORTB = ENABLE_KEYPAD_INTERRUPT; RBIF = OFF; //clear the interrupt return; } //debounce keypress for(i=0;i