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.
gpio.h
- Committer:
- rajathr
- Date:
- 2021-10-23
- Revision:
- 0:34ee385f4d2d
File content as of revision 0:34ee385f4d2d:
#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 */