diff options
author | siddhu8990 | 2016-01-13 11:15:17 +0530 |
---|---|---|
committer | siddhu8990 | 2016-01-13 11:15:17 +0530 |
commit | 6294db4b43ec07171c2c3a868069b5023d8835a0 (patch) | |
tree | 2a0daabb81e9b043e9510dceda3d227ee9d170c2 /2.3-1/src/c/hardware/avr/includes | |
parent | 9bee3723b675d7ab65b757d38cf9c5938a63531a (diff) | |
download | Scilab2C-6294db4b43ec07171c2c3a868069b5023d8835a0.tar.gz Scilab2C-6294db4b43ec07171c2c3a868069b5023d8835a0.tar.bz2 Scilab2C-6294db4b43ec07171c2c3a868069b5023d8835a0.zip |
Test commit
Diffstat (limited to '2.3-1/src/c/hardware/avr/includes')
-rw-r--r-- | 2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h | 2 | ||||
-rw-r--r-- | 2.3-1/src/c/hardware/avr/includes/AVRPeripheralTimer.h | 27 |
2 files changed, 28 insertions, 1 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 80b29f3a..7371dd74 100644 --- a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h +++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h @@ -17,7 +17,7 @@ extern "C" { //Function prototypes uint8 u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode); -uint8 u8AVRPWMSetDuty(uint8 timer, uint8 duty); +uint8 u8AVRPWMSetDutys(uint8 timer, uint8 duty); #ifdef __cplusplus diff --git a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralTimer.h b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralTimer.h new file mode 100644 index 00000000..78b04aae --- /dev/null +++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralTimer.h @@ -0,0 +1,27 @@ +//This file defines functions prototypes related to Timer. +// +// Authors +// Siddhesh Wani +// + +#ifndef __AVRPERIPHERALTIMER_H__ +#define __AVRPERIPHERALTIMER_H__ + +#include <avr/io.h> +#include "types.h" + +#ifdef __cplusplus +extern "C" { +#endif + +//Function prototypes +uint8 u8AVRTimerSetups(uint8 timer, uint8 prescalar); + +uint8 u8AVRGetTimerValue(uint8 timer); + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__AVRPERIPHERALTIMER_H__ */ |