Code
Code
// Daniel Valvano
// May 3, 2015
http://users.ece.utexas.edu/~valvano/
*/
// user button connected to PF4 and PF0 (increment counter on falling edge)
#include <stdint.h>
#include "../inc/tm4c123gh6pm.h"
#include "../inc/EdgeInterruptPortF.h"
#include "../inc/CortexM.h"
#include "../inc/LaunchPad.h"
#include "../inc/Cheat.h"
start timer
else if (FallingEdges2 > FallingEdges1) { //P2 button presses > P1 button presses
else {
//debug code
int main(void){
LaunchPad_Init();
EnableInterrupts();
while(1){
WaitForInterrupt();