Tutorial: Custom initialization
Custom MCU initialization
Instead of writing initial setting functions for each registers, you can call MCU_init()
to call the commonly used default initialization.
Define this in ecSTM32F411.h
.
In main source code,
Examples of default initialization
Clock
PLL 84MHz
SysTick
tick period of 1msec
GPIO
Evaluation board Button : PC13
Evaluation board LED : PA5
TIMx
Timer2 Period: 1msec
Timer2 Interrupt: 1mec
Last updated