MG32F157 Standard Peripherals Firmware Library
|
This file provides all the GPIO firmware functions. More...
Macros | |
#define | AFIO_OFFSET (AFIO_BASE - PERIPH_BASE) |
#define | EVCR_OFFSET (AFIO_OFFSET + 0x00) |
#define | EVOE_BitNumber ((uint8_t)0x07) |
#define | EVCR_EVOE_BB (PERIPH_BB_BASE + (EVCR_OFFSET * 32) + (EVOE_BitNumber * 4)) |
#define | MAPR_OFFSET (AFIO_OFFSET + 0x04) |
#define | MII_RMII_SEL_BitNumber ((u8)0x17) |
#define | MAPR_MII_RMII_SEL_BB (PERIPH_BB_BASE + (MAPR_OFFSET * 32) + (MII_RMII_SEL_BitNumber * 4)) |
#define | EVCR_PORTPINCONFIG_MASK ((uint16_t)0xFF80) |
#define | LSB_MASK ((uint16_t)0xFFFF) |
#define | DBGAFR_POSITION_MASK ((uint32_t)0x000F0000) |
#define | DBGAFR_SWJCFG_MASK ((uint32_t)0xF0FFFFFF) |
#define | DBGAFR_LOCATION_MASK ((uint32_t)0x00200000) |
#define | DBGAFR_NUMBITS_MASK ((uint32_t)0x00100000) |
Functions | |
void | GPIO_DeInit (GPIO_TypeDef *GPIOx) |
Deinitializes the GPIOx peripheral registers to their default reset values. More... | |
void | GPIO_AFIODeInit (void) |
Deinitializes the Alternate Functions (remap, event control and EXTI configuration) registers to their default reset values. More... | |
void | GPIO_Init (GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_InitStruct) |
Initializes the GPIOx peripheral according to the specified parameters in the GPIO_InitStruct. More... | |
void | GPIO_StructInit (GPIO_InitTypeDef *GPIO_InitStruct) |
Fills each GPIO_InitStruct member with its default value. More... | |
uint8_t | GPIO_ReadInputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Reads the specified input port pin. More... | |
uint16_t | GPIO_ReadInputData (GPIO_TypeDef *GPIOx) |
Reads the specified GPIO input data port. More... | |
uint8_t | GPIO_ReadOutputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Reads the specified output data port bit. More... | |
uint16_t | GPIO_ReadOutputData (GPIO_TypeDef *GPIOx) |
Reads the specified GPIO output data port. More... | |
void | GPIO_SetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Sets the selected data port bits. More... | |
void | GPIO_ResetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Clears the selected data port bits. More... | |
void | GPIO_WriteBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, BitAction BitVal) |
Sets or clears the selected data port bit. More... | |
void | GPIO_ToggleBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Toggle data value for several pin of specified port. More... | |
void | GPIO_Write (GPIO_TypeDef *GPIOx, uint16_t PortVal) |
Writes data to the specified GPIO data port. More... | |
void | GPIO_PinLockConfig (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Locks GPIO Pins configuration registers. More... | |
void | GPIO_EventOutputConfig (uint8_t GPIO_PortSource, uint8_t GPIO_PinSource) |
Selects the GPIO pin used as Event output. More... | |
void | GPIO_EventOutputCmd (FunctionalState NewState) |
Enables or disables the Event Output. More... | |
void | GPIO_PinRemapConfig (uint32_t GPIO_Remap, FunctionalState NewState) |
Changes the mapping of the specified pin. More... | |
void | GPIO_EXTILineConfig (uint8_t GPIO_PortSource, uint8_t GPIO_PinSource) |
Selects the GPIO pin used as EXTI Line. More... | |
This file provides all the GPIO firmware functions.