#include "stm32f10x.h" void GPIO_configure(GPIO_TypeDef *GPIO ,int pin, char mode){ if (mode == 1) { // output push pull 2MHZ GPIO->CRL = (GPIO->CRL & ~(0xF<CRL = (GPIO->CRL & ~(0xF<ODR |= (1<ODR |= (1<ODR &= ~(1<ODR & (1<ODR |= (1<ODR &= ~(1<IDR & (1<