summaryrefslogtreecommitdiff
path: root/platforms/gd32v.yaml
blob: ae780298714ffc4869d76bac8cce1736e40da0b4 (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
- 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 

    stm32_flash:
      FLASH:
        type: f1
        offset: 0x40022000

    stm32_gpio:
      GPIOA:
        offset: 0x40010800
        type: v1
      GPIOB:
        offset: 0x40010c00
        type: v1
      GPIOC:
        offset: 0x40011000
        type: v1
      GPIOD:
        offset: 0x40011400
        type: v1
      GPIOE:
        offset: 0x40011800
        type: v1

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

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

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

  interrupt:
    irq:
      56: USART1

  define:
    - STM32F1

  meta:
    cpu: rv32imac