STM32F1 PC14 and PC15 don't be output ?
Hi;
I have a problem.
I want to be output pins PC14 and PC 15, so make the registers PWR -> CR = 0x00000100, RCC-> BDCR = 0x00000000.
probably LSE ocillator isn't off.
thim my code :
#include 'stm32f10x.h'
#include 'stm32f10x_gpio.h'
#include 'stm32f10x_rcc.h'
int main(void){
PWR -> CR = 0x00000100;
RCC-> BDCR = 0x00000000.;
RCC_APB2PeriphClockCmd(RCC_APB2Perirh_GPIOC, ENABLE);
GPIO_InitTypeDef control;
control.GPIO_Pin = GPIO_Pin_14 | GPIO_Pin_15;
control.GPIO_Mode = GPIO_Mode_Out_PP;
control.GPIO_Speed = GPIO_Speed_2MHz;
GPIO_Init(GPIOC, &control);
while(1){
GPIO_SetBits(GPIOC, GPIO_Pin_15);
GPIO_SetBits(GPIOC, GPIO_Pin_14);
}
}
How can do this ?
Thanks,
