parent
							
								
									9a0ce204b3
								
							
						
					
					
						commit
						cd828e7048
					
				
							
								
								
									
										6
									
								
								main.c
								
								
								
								
							
							
						
						
									
										6
									
								
								main.c
								
								
								
								
							| 
						 | 
				
			
			@ -17,3 +17,9 @@ void GPIO_PORT_F_init(void)
 | 
			
		|||
    GPIO_PORTF_IEV_R = 0x00;                  // Falling edge event
 | 
			
		||||
    GPIO_PORTF_IM_R  |= 0x11;                  // Unmask interrupts for PF0 and PF4
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void UART1_WRITE(char data)
 | 
			
		||||
{
 | 
			
		||||
    while (UART1_FR_R & 0x20);       // Wait until TX FIFO is not full
 | 
			
		||||
    UART1_DR_R = data;               // Write data to UART data register
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue