summaryrefslogtreecommitdiff
path: root/platforms/stm32/f4.yaml
blob: dc5717da9e51b468519f862f76e48823eb4744c6 (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
- match:
    mem: e
  mem:
    flash:
      origin: 0x08000000
      size: 512k

- match:
    mem: g
  mem:
    flash:
      origin: 0x08000000
      size: 1M

- mem:
    ram:
      origin: 0x20000000
      size: 128k

    ccm:
      origin: 0x10000000
      size: 64k

  periph:
    uart_stm32:
      USART1:
        offset: 0x40011000
      USART2:
        offset: 0x40004400

    dwc_otg:
      OTG_FS:
        offset: 0x50000000
      OTG_HS:
        offset: 0x40040000

    rcc:
      RCC:
        offset: 0x40023800
        type: f4
        bus:
          AHB1:
            0: GPIOA
            1: GPIOB
            2: GPIOC
            3: GPIOD
            4: GPIOE
            5: GPIOF
            6: GPIOG
            7: GPIOH
            8: GPIOI
            12: CRC
            21: DMA1
            22: DMA2
            25: ETHMAC
            26: ETHMACTX
            27: ETHMACRX
            28: ETHMACPTP
            29: OTGHS
            30: OTGHSULPI

          AHB2:
            0: DCMI
            4: CRYP
            5: HASH
            6: RNG
            7: OTGFS

          AHB3:
            0: FSMC

          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
            23: I2C3
            25: CAN1
            26: CAN2
            28: PWR
            29: DAC

          APB2:
            0: TIM1
            1: TIM8
            4: USART1
            5: USART6
            8: ADC
            11: SDIO
            12: SPI1
            14: SYSCFG
            16: TIM9
            17: TIM10
            18: TIM11

  interrupt:
    irq:
      0: WWDG
      1: PVD
      2: TAMP_STAMP
      3: RTC_WKUP
      4: FLASH
      5: RCC
      6: EXTI0
      7: EXTI1
      8: EXTI2
      9: EXTI3
      10: EXTI4
      11: DMA1_Stream0
      12: DMA1_Stream1
      13: DMA1_Stream2
      14: DMA1_Stream3
      15: DMA1_Stream4
      16: DMA1_Stream5
      17: DMA1_Stream6
      18: ADC
      19: CAN1_TX
      20: CAN1_RX0
      21: CAN1_RX1
      22: CAN1_SCE
      23: EXTI9_5
      24: TIM1_BRK_TIM9
      25: TIM1_UP_TIM10
      26: TIM1_TRG_COM_TIM11
      27: TIM1_CC
      28: TIM2
      29: TIM3
      30: TIM4
      31: I2C1_EV
      32: I2C1_ER
      33: I2C2_EV
      34: I2C2_ER
      35: SPI1
      36: SPI2
      37: USART1
      38: USART2
      39: USART3
      40: EXTI15_10
      41: RTC_Alarm
      42: OTG_FS_WKUP
      43: TIM8_BRK_TIM12
      44: TIM8_UP_TIM13
      45: TIM8_TRG_COM_TIM14
      46: TIM8_CC
      47: DMA1_Stream7
      48: FSMC
      49: SDIO
      50: TIM5
      51: SPI3
      52: UART4
      53: UART5
      54: TIM6_DAC
      55: TIM7
      56: DMA2_Stream0
      57: DMA2_Stream1
      58: DMA2_Stream2
      59: DMA2_Stream3
      60: DMA2_Stream4
      61: ETH
      62: ETH_WKUP
      63: CAN2_TX
      64: CAN2_RX0
      65: CAN2_RX1
      66: CAN2_SCE
      67: OTG_FS
      68: DMA2_Stream5
      69: DMA2_Stream6
      70: DMA2_Stream7
      71: USART6
      72: I2C3_EV
      73: I2C3_ER
      74: OTG_HS_EP1_OUT
      75: OTG_HS_EP1_IN
      76: OTG_HS_WKUP
      77: OTG_HS
      78: DCMI
      79: CRYP
      80: HASH_RNG
      81: FPU
      82: UART7
      83: UART8
      84: SPI4
      85: SPI5
      86: SPI6
      87: SAI1
      88: LCD_TFT
      89: LCD_TFT_ERR
      90: DMA2D

  define:
    - STM32F4

  meta:
    cpu: cortex-m4f