From 7cba1cf7d2ee89559239a22c50297a1545de0587 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Wed, 13 Jan 2016 11:15:17 +0530 Subject: Test commit --- src/c/hardware/avr/includes/AVRPeripheralTimer.h | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/c/hardware/avr/includes/AVRPeripheralTimer.h (limited to 'src/c/hardware/avr/includes/AVRPeripheralTimer.h') diff --git a/src/c/hardware/avr/includes/AVRPeripheralTimer.h b/src/c/hardware/avr/includes/AVRPeripheralTimer.h new file mode 100644 index 00000000..78b04aae --- /dev/null +++ b/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 +#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__ */ -- cgit From 9e506f48291533cba7b4c555b0d2e98f234bfbe3 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Wed, 19 Apr 2017 14:28:34 +0530 Subject: Merged Ashish's work --- src/c/hardware/avr/includes/AVRPeripheralTimer.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/c/hardware/avr/includes/AVRPeripheralTimer.h') diff --git a/src/c/hardware/avr/includes/AVRPeripheralTimer.h b/src/c/hardware/avr/includes/AVRPeripheralTimer.h index 78b04aae..ab087692 100644 --- a/src/c/hardware/avr/includes/AVRPeripheralTimer.h +++ b/src/c/hardware/avr/includes/AVRPeripheralTimer.h @@ -1,8 +1,13 @@ -//This file defines functions prototypes related to Timer. -// -// Authors -// Siddhesh Wani +// Copyright (C) 2017 - IIT Bombay - FOSSEE // +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// Organization: FOSSEE, IIT Bombay +// Author: Ashish Kamble +// Email: toolbox@scilab.in #ifndef __AVRPERIPHERALTIMER_H__ #define __AVRPERIPHERALTIMER_H__ @@ -15,10 +20,10 @@ extern "C" { #endif //Function prototypes -uint8 u8AVRTimerSetups(uint8 timer, uint8 prescalar); -uint8 u8AVRGetTimerValue(uint8 timer); +uint16 u8AVRGetTimerValues(uint16 timer); +uint8 u8AVRTimerSetups(uint8 timer, uint16 prescaler,uint8 clock_source); #ifdef __cplusplus } /* extern "C" */ -- cgit