| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | #ifndef __LED_H
 | 
					
						
							|  |  |  |  | #define __LED_H
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | #include "stdint.h"
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-05 19:47:28 +08:00
										 |  |  |  | /*---------------------- LED<45><44><EFBFBD>ú<EFBFBD> ------------------------*/ | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | #define LED1_PIN GPIO_Pin_7           // LED1 <20><><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LED1_PORT GPIOG               // LED1 GPIO<49>˿<EFBFBD>
 | 
					
						
							|  |  |  |  | #define LED1_CLK RCC_AHB1Periph_GPIOG // LED1 GPIO<49>˿<EFBFBD>ʱ<EFBFBD><CAB1>
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | #define LED2_PIN GPIO_Pin_12          // LED2 <20><><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LED2_PORT GPIOD               // LED2 GPIO<49>˿<EFBFBD>
 | 
					
						
							|  |  |  |  | #define LED2_CLK RCC_AHB1Periph_GPIOD // LED2 GPIO<49>˿<EFBFBD>ʱ<EFBFBD><CAB1>
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-05 19:47:28 +08:00
										 |  |  |  | /*---------------------- LED<45><44><EFBFBD>ƺ<EFBFBD> ------------------------*/ | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | #define LED1_ON GPIO_ResetBits(LED1_PORT, LED1_PIN); // <20><><EFBFBD><EFBFBD><EFBFBD>͵<EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>LED1
 | 
					
						
							|  |  |  |  | #define LED1_OFF GPIO_SetBits(LED1_PORT, LED1_PIN);  // <20><><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD>ر<EFBFBD>LED1
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | #define LED2_ON GPIO_ResetBits(LED2_PORT, LED2_PIN); // <20><><EFBFBD><EFBFBD><EFBFBD>͵<EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>LED2
 | 
					
						
							|  |  |  |  | #define LED2_OFF GPIO_SetBits(LED2_PORT, LED2_PIN);  // <20><><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD>ر<EFBFBD>LED2
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | /*---------------------- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ----------------------------*/ | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | void LED_Init(void); // LED<45><44>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | #endif //__LED_H
 |