Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
hardware_timer3.h
- Committer:
- rajathr
- Date:
- 2021-10-23
- Revision:
- 0:34ee385f4d2d
File content as of revision 0:34ee385f4d2d:
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __HARDWARE_TIMER_3_H_
#define __HARDWARE_TIMER_3_H_
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "main_Lec9.h"
/*Function definitions---------------------------------------------------------*/
/*Defining funtion that initializes Timer3 Channel3 as Output Compare*/
void TMR3CH3OutputCompare(void);
/*Defining funtion that initializes Timer3 Channel1 as Input Capture*/
void TMR3CH1GPIOCPin6asInputCapture(void);
/*Defining funtion that reads countervalue when Timer3 Channel1 as an Input Capture*/
uint16_t readCounterValueIfFlagIsSet(void);
/*Defining funtion that Initializes Timer3 Channel3 as an Output - PWM Mode 1*/
void TMR3CH3OutputPWMMode1(void);
///*Defining funtion that Initializes Timer3 Channel3 to Interrupt - Output Compare Interrupt Mode*/
void initTimer3ToInterrupt(void);
#ifdef __cplusplus
}
#endif
#endif /*__HARDWARE_TIMER_3_H */