From 586db6343e7b472d8dc3e63a82f4c73f99cdcbd7 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Wed, 19 Apr 2017 14:28:34 +0530 Subject: Merged Ashish's work --- 2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to '2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h') diff --git a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h index 2e41db6e..2107a5a4 100644 --- a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h +++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h @@ -1,7 +1,7 @@ //This file defines functions prototypes related to PWM. // // Authors -// Siddhesh Wani +// Ashish Kamble // #ifndef __AVRPERIPHERALPWM_H__ @@ -15,10 +15,17 @@ extern "C" { #endif //Function prototypes -void u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode); +uint8 u8AVRPWM0Setups(uint8 waveform_mode, uint8 output_mode); -void u8AVRPWMSetDutys(uint8 timer, uint8 duty); +uint8 u8AVRPWM2Setups(uint8 waveform_mode, uint8 output_mode); +uint8 u8AVRPWM1Setups(uint8 waveform_mode, uint8 output_mode, uint8 output_pin); + +uint8 u8AVRPWM0SetDutys(uint8 duty); + +uint8 u8AVRPWM2SetDutys(uint8 duty); + +uint8 u8AVRPWM1SetDutys(uint8 output_pin, uint16 duty, uint16 Top_Value); #ifdef __cplusplus } /* extern "C" */ -- cgit