22 lines
		
	
	
		
			380 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			380 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef BOARD_H_
 | |
| #define BOARD_H_
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| #define LED_PORT       GPIOA
 | |
| #define LED_PIN        GPIO_Pin_0
 | |
| #define LED_STATE_ON   0
 | |
| 
 | |
| #define UART_DEV        USART2
 | |
| #define UART_CLOCK_EN() RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE)
 | |
| #define UART_TX_PIN     GPIO_Pin_2
 | |
| #define UART_RX_PIN     GPIO_Pin_3
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif
 | 
