#include "stm32f10x.h" #include "../Include/Nucleo.h" #include "DriverGPIO.h" void ConfigHorloge(void) { // Peut-être redondant ?? RCC->APB2ENR |= (0x01 << 2) | (0x01 << 3) | (0x01 << 4) | RCC_APB2ENR_IOPCEN | RCC_APB2ENR_TIM1EN; }; void ConfigBroche(void){ // //Mettre Broche 5 GPIOA à output push-pull MyGPIO_Init(GPIOA, 5, Out_Ppull); //Mettre broche 8 sur GPIOA à output open drain MyGPIO_Init(GPIOA, 8, Out_OD); }; int BoutonAppuye(void){ // Peut être modifié avec ChercherEtat return(MyGPIO_Read(GPIOA, 9)); } void AllumerLED(void){ MyGPIO_Set(GPIOA, 8); } void EteindreLED(void){ MyGPIO_Reset(GPIOA, 8); }