blinky on GPIOA: it works!
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user