summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
diff options
context:
space:
mode:
authorsiddhu89902017-04-19 14:28:34 +0530
committersiddhu89902017-04-19 14:28:34 +0530
commit586db6343e7b472d8dc3e63a82f4c73f99cdcbd7 (patch)
treee74d643b27634303e772074fc61a717ff400ac0a /2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
parent645c51daadc9a5c9374b0465ded05f84bca65183 (diff)
downloadScilab2C-586db6343e7b472d8dc3e63a82f4c73f99cdcbd7.tar.gz
Scilab2C-586db6343e7b472d8dc3e63a82f4c73f99cdcbd7.tar.bz2
Scilab2C-586db6343e7b472d8dc3e63a82f4c73f99cdcbd7.zip
Merged Ashish's work
Diffstat (limited to '2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h')
-rw-r--r--2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h13
1 files changed, 10 insertions, 3 deletions
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" */