2024-10-28 17:08:06 +05:30
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "tm4c123gh6pm.h"
|
|
|
|
|
|
|
|
|
2024-10-28 17:11:14 +05:30
|
|
|
void UART7_Init(void);
|
|
|
|
void UART7_Write(char data);
|
|
|
|
char UART7_Read(void);
|
|
|
|
void PortE_Init(void);
|
2024-10-28 17:08:06 +05:30
|
|
|
void LED_Control(char);
|
|
|
|
|
|
|
|
|
2024-10-28 16:55:07 +05:30
|
|
|
int main(void)
|
|
|
|
{
|
2024-10-28 17:23:07 +05:30
|
|
|
char recievedchar;
|
2024-10-28 16:55:07 +05:30
|
|
|
SYSCTL_RCGCUART_R |= 0x80; // Enable clock to UART7
|
|
|
|
SYSCTL_RCGCGPIO_R |= 0x10; // Enable port E for uart 7
|
|
|
|
}
|