35 lines
		
	
	
		
			279 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			35 lines
		
	
	
		
			279 B
		
	
	
	
		
			C
		
	
	
	
	
	
|  | #ifndef usart2_h__
 | ||
|  | #define usart2_h__
 | ||
|  | 
 | ||
|  | 
 | ||
|  | #include "stdint.h"
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | void usart2_init(void); | ||
|  | 
 | ||
|  | void usart2_deinit(void); | ||
|  | 
 | ||
|  | void usart2_set_cbcall(void (*cb)(uint8_t)); | ||
|  | 
 | ||
|  | int usart2_get_byte(uint8_t *data); | ||
|  | 
 | ||
|  | int usart2_put_byte(uint8_t data); | ||
|  | 
 | ||
|  | int usart2_clear(void); | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | #endif
 | ||
|  | 
 | ||
|  | 
 |