BE_VOILIER/Pilotes/Include/MyGPIO.h
Mygi27 d9d147e342 harmonisation des pilotes de l'USART et de la PWM
j'ai utilisé les pilotes de Oskar
2025-12-16 18:17:59 +01:00

22 lines
No EOL
702 B
C

#ifndef MYGPIO_H
#define MYGPIO_H
#include "stm32f10x.h"
/*
#define In_floating 0x . . . // a c o m p l e t e r
#define In_PullDown 0x . . . // a c o m p l e t e r
#define In_PullUp 0x . . . // a c o m p l e t e r
#define In_Analog 0x . . . // a c o m p l e t e r
#define Out_Ppull 0x . . . // a c o m p l e t e r
#define Out_OD 0x . . . // a c o m p l e t e r
#define AltOut_Ppull 0x . . . // a c o m p l e t e r
#define AltOut_OD 0x . . . // a c o m p l e t e r
*/
void GPIO_configure(GPIO_TypeDef * ,int, char);
int GPIO_bouton_read ( GPIO_TypeDef * , char);
void allume_led ( GPIO_TypeDef * , char );
void eteindre_led ( GPIO_TypeDef * , char );
void toggle_pin ( GPIO_TypeDef * , char );
#endif