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.
Diff: hardware_timer3.h
- Revision:
- 0:34ee385f4d2d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hardware_timer3.h Sat Oct 23 05:49:09 2021 +0000
@@ -0,0 +1,35 @@
+/* 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 */