Add UART WRITE to display and update main
This commit is contained in:
parent
2833cac1a3
commit
2fee158217
6
main.c
6
main.c
|
@ -73,11 +73,10 @@ void UART1_RXTX_to_DISPLAY(char RX_DATA)
|
||||||
{
|
{
|
||||||
GPIO_PORTF_DATA_R &= 0x00; // RED LED FOR JUNK DATA
|
GPIO_PORTF_DATA_R &= 0x00; // RED LED FOR JUNK DATA
|
||||||
}
|
}
|
||||||
|
UART1_WRITE(RX_DATA); // SEND RECEIVED DATA TO DISPLAY
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int main(void) // MAIN FUNCTION
|
int main(void) // MAIN FUNCTION
|
||||||
{
|
{
|
||||||
GPIO_PORT_F_init(); // GPIO PORT F INITIALISATION FUNCTION
|
GPIO_PORT_F_init(); // GPIO PORT F INITIALISATION FUNCTION
|
||||||
|
@ -85,5 +84,6 @@ int main(void) // MAIN FUNCTION
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
UART1_RXTX_to_DISPLAY(UART1_READ()); // RECEIVE DATA, SEND RECEIVED DATA TO DISPLAY OR GLOW LED
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue