blinky on GPIOA: it works!

This commit is contained in:
salfter
2023-11-27 09:09:35 -08:00
parent 512c201e1c
commit deef9b9e80

View File

@@ -6,10 +6,7 @@ int main()
SystemInit();
// Enable GPIOs
RCC->APB2PCENR |= RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOC | RCC_APB2Periph_GPIOA | RCC_APB2Periph_AFIO;
// enable GPIO on A1 and A2
//AFIO->PCFR1 &= ~GPIO_Remap_PA1_2;
RCC->APB2PCENR |= RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOC | RCC_APB2Periph_GPIOA;
// GPIO A1 Push-Pull
GPIOA->CFGLR &= ~(0xf<<(4*1));