summaryrefslogtreecommitdiff
path: root/platforms/gd32v.yaml
blob: 34b2bf8f0f8dd7408174acfd568918ac5ba670d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
- match:
    mcu: !re gd32vf103
  mem:
    flash:
      origin: 0x08000000
      size: 128k

    ram:
      origin: 0x20000000
      size: 32k

  periph:
    clic:
      CLIC:
        offset: 0xd2000000

    dwc_otg:
      OTG_FS:
        offset: 0x50000000 

    rcc:
      RCC:
        offset: 0x40021000
        type: f1
        bus:
          AHB:
            0: DMA1
            1: DMA2
            2: SRAM
            4: FLITF
            6: CRC
            8: FSMC
            10: SDIO
            12: USBFS

          APB1:
            0: TIM2
            1: TIM3
            2: TIM4
            3: TIM5
            4: TIM6
            5: TIM7
            6: TIM12
            7: TIM13
            8: TIM14
            11: WWDG
            14: SPI2
            15: SPI3
            17: USART2
            18: USART3
            19: UART4
            20: UART5
            21: I2C1
            22: I2C2
            25: CAN
            27: BKP
            28: PWR
            29: DAC

          APB2:
            0: AFIO
            2: GPIOA
            3: GPIOB
            4: GPIOC
            5: GPIOD
            6: GPIOE
            7: GPIOF
            8: GPIOG
            9: ADC1
            10: ADC2
            11: TIM1
            12: SPI1
            13: TIM8
            14: USART1
            15: ADC3
            19: TIM9
            20: TIM10
            21: TIM11

  interrupt:
    irq:
      56: USART1

  define:
    - STM32F1

  meta:
    cpu: rv32imac