Question
GPIO Sest-Change doesnt get reflected in BSRR
Posted on November 07, 2012 at 09:17
Hello All,
I am using STM32F2 series. I want to set PORT E pin 1, And here goes my code GPIO_InitTypeDef *GPIO_InitStruct; RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOE, ENABLE); GPIO_InitStruct->GPIO_Pin = GPIO_Pin_1 ; GPIO_InitStruct->GPIO_Mode = GPIO_Mode_OUT; GPIO_InitStruct->GPIO_OType = GPIO_OType_PP; GPIO_InitStruct->GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStruct->GPIO_PuPd = GPIO_PuPd_NOPULL; GPIO_Init(GPIOE, GPIO_InitStruct); GPIO_WriteBit(GPIOE,GPIO_Pin_1,Bit_SET); GPIO_SetBits(GPIOE,GPIO_Pin_1); When I debug the code, i could not find any changes in BSRR , even if i set this. Could anyone help in resolving this Thanks #gpio #gpio #gpio #bssr #gpio