#include "stm32c031xx.h"


void setup() {
  RCC->IOPENR |= RCC_IOPENR_GPIOAEN;

  GPIOA->MODER &= ~GPIO_MODER_MODE13;
	GPIOA->MODER |=  GPIO_MODER_MODE13_0;

}

void loop() {
  
  GPIOA->ODR |= GPIO_ODR_OD13;
  delay(1000);

  GPIOA->ODR &= ~GPIO_ODR_OD13;
  delay(1000);
}
Loading
st-nucleo-c031c6