#include<stdio.h>
#include<stdint.h>
#include<stm32c031xx.h>
#define GPIOA_BASE 0x50000000
#define GPIOB_BASE 0x50000400
#define RCC_BASE 0x40021000
#define GPIOA_MODER (*(volatile uint32_t*)(GPIOA_BASE+0x00))
#define GPIOA_ODR (*(volatile uint32_t*)(GPIOA_BASE+0x14))
#define GPIOB_MODER (*(volatile uint32_t*)(GPIOB_BASE+0x00))
#define GPIOB_ODR (*(volatile uint32_t*)(GPIOB_BASE+0x14))
#define RCC_IOPENR (*(volatile uint32_t *)(RCC_BASE+0x34))
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, STM32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}