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: gpio.h
- Revision:
- 0:34ee385f4d2d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gpio.h Sat Oct 23 05:49:09 2021 +0000
@@ -0,0 +1,40 @@
+#ifndef __GPIO_H_
+#define __GPIO_H_
+
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
+#include "main_Lec9.h"
+
+/*Defining function that initializes the Port B Pin 0 as Output*/
+void InitPortBPin0asOutput(void);
+
+/*Defining function that toggles the LED Switch*/
+void toggleGPIOB0(void);
+
+/*Defining function that initializes PortB Pin0 as Output Compare*/
+void InitGPIOBPin0asOutputCompare(void);
+
+/*Defining function that initializes PortC Pin6 as Input Capture*/
+void InitGPIOCPin6asInputCapture(void);
+
+/*Defining function that initializes PortB Pin0 as Output - PWM Mode 1*/
+void InitGPIOBPin0asPWMMode1(void);
+
+/*Defining function that initializes PortB Pin0 as Output - ODR HIGH*/
+void setGPIOB0(void);
+
+/*Defining function that initializes PortB Pin0 as Output - CLEARS ODR*/
+void clearGPIOB0(void);
+
+/*Defining function that initializes PortC Pin6 as Input - For Toggling LED when you see an interrupt*/
+void initGpioC6AsInput(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /*__GPIO_H */
+