Update main.c

Add main function
This commit is contained in:
Uttam Bhavimani Bhavimani 2024-10-28 22:52:43 +05:30
parent d110658f12
commit a35071825e
1 changed files with 9 additions and 0 deletions

9
main.c
View File

@ -36,5 +36,14 @@ void GPIO_PORT_B_init(void)
UART1_CC_R = 0x00; // USE SYSTEM CLOCK UART1_CC_R = 0x00; // USE SYSTEM CLOCK
UART1_CTL_R |= 0x301; // ENABLE UART1, RX AND TX UART1_CTL_R |= 0x301; // ENABLE UART1, RX AND TX
}
int main(void) // MAIN FUNCTION
{
GPIO_PORT_F_init(); // GPIO PORT F INITIALISATION FUNCTION
GPIO_PORT_B_init(); // GPIO PORT B INITIALISATION FUNCTION
while (1)
{
} }