diff --git a/miosix/arch/cortexM3_stm32/stm32f103cx_generic/interfaces-impl/bsp.cpp b/miosix/arch/cortexM3_stm32/stm32f103cx_generic/interfaces-impl/bsp.cpp index 0c92ed31746328dea927df612445548ed11ea9dc..6f7a2743e9964bdb4ba92d04c6cf83573b82d0a1 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103cx_generic/interfaces-impl/bsp.cpp +++ b/miosix/arch/cortexM3_stm32/stm32f103cx_generic/interfaces-impl/bsp.cpp @@ -51,10 +51,10 @@ namespace miosix { void IRQbspInit() { - //Enable all gpios, as well as AFIO, SPI1, TIM3 + //Enable all gpios, as well as AFIO RCC->APB2ENR |= RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN | RCC_APB2ENR_IOPDEN | - RCC_APB2ENR_AFIOEN | RCC_APB2ENR_SPI1EN; + RCC_APB2ENR_AFIOEN; RCC->APB1ENR |= RCC_APB1ENR_PWREN; RCC_SYNC();