Inital working code
This commit is contained in:
		
							
								
								
									
										67
									
								
								mcc_generated_files/pwm/pwm4.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								mcc_generated_files/pwm/pwm4.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,67 @@ | ||||
| /** | ||||
|  * PWM4 Generated Driver API Header File | ||||
|  * | ||||
|  * @file pwm4.h | ||||
|  * | ||||
|  * @defgroup pwm4 PWM4 | ||||
|  * | ||||
|  * @brief This file contains the API prototypes for the PWM4 driver. | ||||
|  * | ||||
|  * @version PWM4 Driver Version 2.0.4 | ||||
| */ | ||||
|  | ||||
| /* | ||||
| <EFBFBD> [2025] Microchip Technology Inc. and its subsidiaries. | ||||
|  | ||||
|     Subject to your compliance with these terms, you may use Microchip  | ||||
|     software and any derivatives exclusively with Microchip products.  | ||||
|     You are responsible for complying with 3rd party license terms   | ||||
|     applicable to your use of 3rd party software (including open source   | ||||
|     software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?  | ||||
|     NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS  | ||||
|     SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,   | ||||
|     MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT  | ||||
|     WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,  | ||||
|     INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY  | ||||
|     KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF  | ||||
|     MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE  | ||||
|     FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S  | ||||
|     TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT  | ||||
|     EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR  | ||||
|     THIS SOFTWARE. | ||||
| */ | ||||
|  | ||||
| #ifndef PWM4_H | ||||
|  #define PWM4_H | ||||
|   | ||||
|  /** | ||||
|   * Section: Included Files | ||||
|   */ | ||||
|  | ||||
|  #include <xc.h> | ||||
|  #include <stdint.h> | ||||
|  | ||||
|  /** | ||||
|   * Section: Macro Declarations | ||||
|  */ | ||||
|  | ||||
|  #define PWM4_INITIALIZE_DUTY_VALUE    499 | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * @ingroup pwm4 | ||||
|  * @brief Initializes the PWM4 interface. | ||||
|  * @param None. | ||||
|  * @return None. | ||||
|  */ | ||||
|  void PWM4_Initialize(void); | ||||
|  | ||||
|  /** | ||||
|  * @ingroup pwm4 | ||||
|  * @brief Loads the 16-bit duty cycle value. | ||||
|  * @param uint16_t dutyValue - PWM4 duty cycle value to be loaded. | ||||
|  * @return None. | ||||
|  */ | ||||
|  void PWM4_LoadDutyValue(uint16_t dutyValue); | ||||
|   | ||||
|  #endif	//PWM4_H | ||||
		Reference in New Issue
	
	Block a user