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_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 */
Generated on Mon Jan 16 2023 14:41:56 by
1.7.2