Created
March 29, 2016 19:42
-
-
Save SaheblalBagwan/7db91d1895e3bfe9534c8f657af89a79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "uart.h" | |
int main() | |
{ | |
SystemInit(); | |
/* Initialize All the Four UARTs with different Baud rate */ | |
UART0_Init(9600); | |
UART1_Init(19200); | |
UART2_Init(38400); | |
UART3_Init(115200); | |
while(1) | |
{ | |
/*UARTx_Printf, where suffix "x" specifies the UART channel(0-3)*/ | |
UART0_Printf("Welcome to LPC1768 UART Programming on channel Zero at 9600 baud\n\r"); | |
UART1_Printf("Welcome to LPC1768 UART Programming on channel One at 19200 baud\n\r"); | |
UART2_Printf("Welcome to LPC1768 UART Programming on channel Two at 38400 baud\n\r"); | |
UART3_Printf("Welcome to LPC1768 UART Programming on channel Three at 115200 baud\n\r"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment