Complete the code to enable the clock for GPIO port A.
RCC->AHB1ENR |= [1];The correct macro to enable the clock for GPIO port A in the RCC AHB1 peripheral clock enable register is RCC_AHB1ENR_GPIOAEN.
Complete the code to enable the clock for USART2 peripheral.
RCC->[1] |= RCC_APB1ENR_USART2EN;USART2 clock is enabled via the APB1 peripheral clock enable register, so the correct register is APB1ENR.
Fix the error in the code to enable the clock for SPI1 peripheral.
RCC->APB2ENR |= [1];The SPI1 peripheral clock enable bit is located in the APB2ENR register, and the correct macro is RCC_APB2ENR_SPI1EN.
Fill both blanks to enable the clock for ADC1 peripheral on APB2 bus.
RCC->[1] |= [2];
ADC1 clock is enabled via the APB2ENR register using the macro RCC_APB2ENR_ADC1EN.
Fill all three blanks to enable the clock for TIM3 peripheral on APB1 bus and set the enable bit.
RCC->[1] |= [2]; TIM3->[3] = 1;
To enable TIM3 clock, use the APB1ENR register and the macro RCC_APB1ENR_TIM3EN. To start the timer, set the CR1 register to 1.