#ifndef MYGPIO_H #define MYGPIO_H #include "stm32f10x.h" #define In_Floating 0x4 #define In_PullDown 0x8 #define In_PullUp 0xF #define In_Analog 0x0 #define Out_Ppull 0x2 #define Out_OD 0x6 #define AltOut_Ppull 0xA #define AltOut_OD 0xE void MyGPIO_Init(GPIO_TypeDef *GPIO, char pin, char conf); int MyGPIO_Read(GPIO_TypeDef *GPIO, char GPIO_Pin); void MyGPIO_Set(GPIO_TypeDef *GPIO, char GPIO_Pin); void MyGPIO_Reset(GPIO_TypeDef *GPIO, char GPIO_Pin); void MyGPIO_Toggle(GPIO_TypeDef *GPIO, char GPIO_Pin); #endif