64 void HAL_GPIO_Init( Pn_Type* Px, uint32_t u32Mode, uint32_t u32Type, uint32_t u32Afsr1, uint32_t u32PuPd )
96 pin_offset = ( pin_no * 4 );
102 reg_val &= ~( AFSRx_Msk << pin_offset );
103 reg_val |= ( func << pin_offset );
130 uint32_t dir_type_temp;
132 dir_type_temp = dir_type;
140 pin_offset = ( pin_no << 1 );
146 reg_val &= ~( MODEx_Msk << pin_offset );
147 reg_val |= ( dir_type << pin_offset );
156 reg_val &= ~( 1 << pin_no );
159 reg_val |= ( 1 << pin_no );
184 reg_val = Px->OUTDMSK;
185 reg_val &= ~( 1 << pin_no );
186 reg_val |= ( maskctrl << pin_no );
187 Px->OUTDMSK = reg_val;
211 pin_offset = ( pin_no << 1 );
214 reg_val &= ~( 3 << pin_offset );
215 reg_val |= ( pullupdown << pin_offset );
243 #if 0 // before bug fix 246 reg_val = ( 0x00ff & Px->DBCR );
247 reg_val |= ( 0x01 << u32Pins );
250 #else // after bug fix void HAL_GPIO_ClearPin(Pn_Type *Px, uint16_t bitValue)
Clear Value for bits that have output direction on GPIO port.
Contains all macro definitions and function prototypes support for pcu firmware library on A31G11x.
void HAL_GPIO_ConfigOutput(Pn_Type *Px, uint8_t pin_no, PCU_PORT_MODE dir_type)
Configure pin mode.
void HAL_GPIO_SetPin(Pn_Type *Px, uint16_t bitValue)
Set Value for bits that have output direction on GPIO port.
void HAL_GPIO_ConfigOutDataMask(Pn_Type *Px, uint8_t pin_no, FunctionalState maskctrl)
Configure out data Mask.
void HAL_GPIO_ConfigFunction(Pn_Type *Px, uint8_t pin_no, uint32_t func)
Configure pin function.
void HAL_GPIO_WritePin(Pn_Type *Px, uint16_t Value)
Write Value on port that have output direction of GPIO.
void HAL_GPIO_SetDebouncePin(Pn_Type *Px, uint32_t u32Pins, uint32_t u32Debnc)
Set PCU Debounce.
void HAL_GPIO_Init(Pn_Type *Px, uint32_t u32Mode, uint32_t u32Type, uint32_t u32Afsr1, uint32_t u32PuPd)
Set PCU Pn_MOD/Pn_TYP/Pn_AFSR1/Pn_PUPD Registers.
uint16_t HAL_GPIO_ReadPin(Pn_Type *Px)
Read Current state on port pin that have input direction of GPIO.
void HAL_GPIO_ConfigPullup(Pn_Type *Px, uint8_t pin_no, uint8_t pullupdown)
Configure Pin Pull-Up & Pull-Down.