diff --git a/main.c b/main.c index fb4fce3..90fa7b3 100644 --- a/main.c +++ b/main.c @@ -12,8 +12,6 @@ volatile uint8_t nmea_index = 0; volatile bool nmea_ready = false; - - void GPIO_PORT_F_init(void) { SYSCTL_RCGC2_R |= 0x00000020; // ENABLE CLOCK TO GPIOF @@ -22,7 +20,6 @@ void GPIO_PORT_F_init(void) GPIO_PORTF_DEN_R = 0x1F; // SET PORTF DIGITAL ENABLE GPIO_PORTF_DIR_R = 0x0E; // SET PF0, PF4 as input and PF1, PF2 and PF3 as output GPIO_PORTF_PUR_R = 0x11; // PORTF PF0 and PF4 IS PULLED UP - } @@ -91,3 +88,15 @@ void UART1_Handler(void) } } +int main(void) +{ + GPIO_PORT_F_init(); + GPIO_PORT_B_init(); + while (1) + { + if (nmea_ready) + { + nmea_ready = false; + } + } +}