/**
******************************************************************************
* @file : main.c
* @author : Auto-generated by STM32CubeIDE
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2023 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
#include <stdint.h>
int main(void)
{
RCC->IOPENR&=~(1<<0);
RCC->IOPENR|=(1<<0);
GPIOA->MODER&=~(3<<0);
GPIOA->MODER|=(1<<0);
GPIOA->MODER&=~(3<<2);
GPIOA->MODER|=(1<<2);
GPIOA->ODR&=~(1<<0);
GPIOA->ODR&=~(1<<1);
/* Loop forever */
while(1)
{
GPIOA->ODR^=(1<<0);
GPIOA->ODR^=(1<<1);
for (uint32_t i=0;i<1000000;i++);
/*GPIOA->ODR &=~(1<<0);
GPIOA->ODR &=~(1<<9);
for (uint32_t i=0;i<100000;i++);*/
}
}