| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | #ifndef  _PWM_H
 | 
					
						
							|  |  |  |  | #define	_PWM_H
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #include "stm32f4xx.h"
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-05 19:47:28 +08:00
										 |  |  |  | /*---------------------- <20><><EFBFBD><EFBFBD> ------------------------*/ | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | #define	LCD_PWM_PORT			GPIOD
 | 
					
						
							|  |  |  |  | #define	LCD_PWM_CLK				RCC_AHB1Periph_GPIOD
 | 
					
						
							|  |  |  |  | #define  LCD_PWM_PIN				GPIO_Pin_13
 | 
					
						
							|  |  |  |  | #define  LCD_PWM_AF           GPIO_AF_TIM4
 | 
					
						
							|  |  |  |  | #define  LCD_PWM_PinSource    GPIO_PinSource13
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define	LCD_TIM_CLK				RCC_APB1Periph_TIM4
 | 
					
						
							|  |  |  |  | #define  LCD_TIM  	   		TIM4
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-05 19:47:28 +08:00
										 |  |  |  | /*-------------------- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ----------------------*/ | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-05 19:47:28 +08:00
										 |  |  |  | void LCD_PWMinit(u8 pulse);		 //PWM<57><4D>ʼ<EFBFBD><CABC>
 | 
					
						
							|  |  |  |  | void LCD_PwmSetPulse (u8 pulse);	 //<2F><><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD>
 | 
					
						
							|  |  |  |  | //<2F><>ȡ<EFBFBD><C8A1>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD>
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | u8 LCD_PwmGetPulse (void); | 
					
						
							|  |  |  |  | 	 | 
					
						
							|  |  |  |  | #endif 
 | 
					
						
							|  |  |  |  | 
 |