main.c 283 B

12345678910111213141516171819
  1. #include <stm32f0xx.h>
  2. unsigned int i = 0x12345678;
  3. unsigned char c = 2;
  4. int main(void) {
  5. RCC->AHBENR |= RCC_AHBENR_GPIOBEN;
  6. GPIOB->MODER |= (1<<1*2);
  7. GPIOB->ODR |= (1<<1);
  8. SysTick_Config(800000);
  9. while(1) {
  10. i++;
  11. }
  12. }
  13. void SysTick_Handler(void) {
  14. GPIOB->ODR ^= (1<<1);
  15. }