Rajath Ravi / Mbed 2 deprecated ADC_DMA_POST_LEC12

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hardware_timer.h Source File

hardware_timer.h

00001 /* Define to prevent recursive inclusion -------------------------------------*/
00002 #ifndef __HARDWARE_TIMER_H_
00003 #define __HARDWARE_TIMER_H_
00004 
00005 #ifdef __cplusplus
00006  extern "C" {
00007 #endif
00008 
00009 /* Includes ------------------------------------------------------------------*/
00010 #include "main.h"
00011 
00012 /*Function definitions---------------------------------------------------------*/
00013 
00014 /*Defining funtion that initializes Timer3 Channel3 as Output Compare*/
00015 void TMR3CH3OutputCompare(void);
00016 
00017 /*Defining funtion that initializes Timer3 Channel1 as Input Capture*/
00018 void TMR3CH1GPIOCPin6asInputCapture(void);
00019 
00020 /*Defining funtion that reads countervalue when Timer3 Channel1 as an Input Capture*/
00021 uint16_t readCounterValueIfFlagIsSet(void);
00022 
00023 /*Defining funtion that Initializes Timer3 Channel3 as an Output - PWM Mode 1*/
00024 void TMR3CH3OutputPWMMode1(void);
00025 
00026 /*Defining funtion that Initializes Timer3 Channel3 to Interrupt - Output Compare Interrupt Mode*/
00027 void initTimer3ToInterrupt(void);
00028 
00029 
00030 #ifdef __cplusplus
00031 }
00032 #endif
00033 
00034 #endif /*__HARDWARE_TIMER_H */