| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | #ifndef _PWM_H
 | 
					
						
							|  |  |  |  | #define _PWM_H
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  |  | /*---------------------- <20><><EFBFBD><EFBFBD> ------------------------*/ | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +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
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | #define LCD_TIM_CLK RCC_APB1Periph_TIM4
 | 
					
						
							|  |  |  |  | #define LCD_TIM TIM4
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-05 19:47:28 +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 LCD_PWMinit(uint8_t pulse);     // PWM<57><4D>ʼ<EFBFBD><CABC>
 | 
					
						
							|  |  |  |  | void LCD_PwmSetPulse(uint8_t pulse); // <20><><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD>
 | 
					
						
							|  |  |  |  | // <20><>ȡ<EFBFBD><C8A1>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | uint8_t LCD_PwmGetPulse(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-18 13:58:40 +08:00
										 |  |  |  | #endif
 |