Hallo, Ich versuche einige Pins vom Port E zu initialisieren jedoch bleibt der stm32 stehen bei dieser init:
1 | GPIO_InitTypeDef GPIO_InitStructure; |
2 | |
3 | RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOE , ENABLE); |
4 | |
5 | GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_5 | GPIO_Pin_6; |
6 | GPIO_Init(GPIOE, &GPIO_InitStructure); |
nehme ich GPIO_Pin_5 Raus dann geht alles,ist aber nicht Sinn der Sache.
1 | GPIO_InitTypeDef GPIO_InitStructure; |
2 | |
3 | RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOE , ENABLE); |
4 | |
5 | GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_6; |
6 | GPIO_Init(GPIOE, &GPIO_InitStructure); |
kann mir da einer Weiterhelfen. mfg