Skip to content

Commit 1687420

Browse files
authored
Merge pull request #24 from decaday/add-dbgmcu
Add f030 f072 dbgmcu
2 parents 9fcb259 + 66546b9 commit 1687420

File tree

5 files changed

+182
-60
lines changed

5 files changed

+182
-60
lines changed

data/peripherals/F030.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@
560560
address: 0x40015800
561561
registers:
562562
kind: dbgmcu
563-
version: common
563+
version: f030
564564
block: DBGMCU
565565
rcc:
566566
bus_clock: PCLK1

data/peripherals/F072.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
address: 0x40015800
102102
registers:
103103
kind: dbgmcu
104-
version: common
104+
version: f072
105105
block: DBGMCU
106106
rcc:
107107
bus_clock: PCLK1

data/peripherals/TIM2.yaml

Lines changed: 0 additions & 58 deletions
This file was deleted.

data/registers/dbgmcu_f030.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
block/DBGMCU:
2+
description: Debug support.
3+
items:
4+
- name: IDCODE
5+
description: MCU Device ID Code Register.
6+
byte_offset: 0
7+
access: Read
8+
fieldset: IDCODE
9+
- name: CR
10+
description: Debug MCU Configuration Register.
11+
byte_offset: 4
12+
fieldset: CR
13+
- name: APB_FZ1
14+
description: APB Freeze Register1.
15+
byte_offset: 8
16+
fieldset: APB_FZ1
17+
- name: APB_FZ2
18+
description: APB Freeze Register2.
19+
byte_offset: 12
20+
fieldset: APB_FZ2
21+
fieldset/APB_FZ1:
22+
description: APB Freeze Register1.
23+
fields:
24+
- name: DBG_TIMER3_STOP
25+
description: Debug Timer 3 stopped when Core is halted.
26+
bit_offset: 1
27+
bit_size: 1
28+
- name: DBG_RTC_STOP
29+
description: Debug RTC stopped when Core is halted.
30+
bit_offset: 10
31+
bit_size: 1
32+
- name: DBG_WWDG_STOP
33+
description: Debug Window Wachdog stopped when Core is halted.
34+
bit_offset: 11
35+
bit_size: 1
36+
- name: DBG_IWDG_STOP
37+
description: Debug Independent Wachdog stopped when Core is halted.
38+
bit_offset: 12
39+
bit_size: 1
40+
- name: DBG_LPTIM_STOP
41+
description: Debug LPTIM stopped when Core is halted.
42+
bit_offset: 31
43+
bit_size: 1
44+
fieldset/APB_FZ2:
45+
description: APB Freeze Register2.
46+
fields:
47+
- name: DBG_TIMER1_STOP
48+
description: Debug Timer 1 stopped when Core is halted.
49+
bit_offset: 11
50+
bit_size: 1
51+
- name: DBG_TIMER14_STOP
52+
description: Debug Timer 14 stopped when Core is halted.
53+
bit_offset: 15
54+
bit_size: 1
55+
- name: DBG_TIMER16_STOP
56+
description: Debug Timer 16 stopped when Core is halted.
57+
bit_offset: 17
58+
bit_size: 1
59+
- name: DBG_TIMER17_STOP
60+
description: Debug Timer 17 stopped when Core is halted.
61+
bit_offset: 18
62+
bit_size: 1
63+
fieldset/CR:
64+
description: Debug MCU Configuration Register.
65+
fields:
66+
- name: DBG_STOP
67+
description: Debug Stop Mode.
68+
bit_offset: 1
69+
bit_size: 1
70+
fieldset/IDCODE:
71+
description: MCU Device ID Code Register.
72+
fields: []

data/registers/dbgmcu_f072.yaml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
block/DBGMCU:
2+
description: Debug support.
3+
items:
4+
- name: IDCODE
5+
description: MCU Device ID Code Register.
6+
byte_offset: 0
7+
access: Read
8+
fieldset: IDCODE
9+
- name: CR
10+
description: Debug MCU Configuration Register.
11+
byte_offset: 4
12+
fieldset: CR
13+
- name: APB_FZ1
14+
description: APB Freeze Register1.
15+
byte_offset: 8
16+
fieldset: APB_FZ1
17+
- name: APB_FZ2
18+
description: APB Freeze Register2.
19+
byte_offset: 12
20+
fieldset: APB_FZ2
21+
fieldset/APB_FZ1:
22+
description: APB Freeze Register1.
23+
fields:
24+
- name: DBG_TIMER2_STOP
25+
description: Debug Timer 2 stopped when Core is halted.
26+
bit_offset: 0
27+
bit_size: 1
28+
- name: DBG_TIMER3_STOP
29+
description: Debug Timer 3 stopped when Core is halted.
30+
bit_offset: 1
31+
bit_size: 1
32+
- name: DBG_TIMER6_STOP
33+
description: Debug Timer 6 stopped when Core is halted.
34+
bit_offset: 4
35+
bit_size: 1
36+
- name: DBG_TIMER7_STOP
37+
description: Debug Timer 7 stopped when Core is halted.
38+
bit_offset: 5
39+
bit_size: 1
40+
- name: DBG_RTC_STOP
41+
description: Debug RTC stopped when Core is halted.
42+
bit_offset: 10
43+
bit_size: 1
44+
- name: DBG_WWDG_STOP
45+
description: Debug Window Wachdog stopped when Core is halted.
46+
bit_offset: 11
47+
bit_size: 1
48+
- name: DBG_IWDG_STOP
49+
description: Debug Independent Wachdog stopped when Core is halted.
50+
bit_offset: 12
51+
bit_size: 1
52+
- name: DBG_CAN_STOP
53+
description: DBG_CAN_STOP.
54+
bit_offset: 19
55+
bit_size: 1
56+
- name: DBG_I2C1_SMBUS_TIMEOUT
57+
description: DBG_I2C1_SMBUS_TIMEOUT.
58+
bit_offset: 21
59+
bit_size: 1
60+
- name: DBG_I2C2_SMBUS_TIMEOUT
61+
description: DBG_I2C2_SMBUS_TIMEOUT.
62+
bit_offset: 22
63+
bit_size: 1
64+
- name: DBG_LPTIM_STOP
65+
description: Debug LPTIM stopped when Core is halted.
66+
bit_offset: 31
67+
bit_size: 1
68+
fieldset/APB_FZ2:
69+
description: APB Freeze Register2.
70+
fields:
71+
- name: DBG_TIMER1_STOP
72+
description: Debug Timer 1 stopped when Core is halted.
73+
bit_offset: 11
74+
bit_size: 1
75+
- name: DBG_TIMER14_STOP
76+
description: Debug Timer 14 stopped when Core is halted.
77+
bit_offset: 15
78+
bit_size: 1
79+
- name: DBG_TIMER15_STOP
80+
description: Debug Timer 15 stopped when Core is halted.
81+
bit_offset: 16
82+
bit_size: 1
83+
- name: DBG_TIMER16_STOP
84+
description: Debug Timer 16 stopped when Core is halted.
85+
bit_offset: 17
86+
bit_size: 1
87+
- name: DBG_TIMER17_STOP
88+
description: Debug Timer 17 stopped when Core is halted.
89+
bit_offset: 18
90+
bit_size: 1
91+
fieldset/CR:
92+
description: Debug MCU Configuration Register.
93+
fields:
94+
- name: DBG_SLEEP
95+
description: Debug Sleep Mode.
96+
bit_offset: 0
97+
bit_size: 1
98+
- name: DBG_STOP
99+
description: Debug Stop Mode.
100+
bit_offset: 1
101+
bit_size: 1
102+
fieldset/IDCODE:
103+
description: MCU Device ID Code Register.
104+
fields:
105+
- name: REV_ID
106+
description: REV_ID.
107+
bit_offset: 0
108+
bit_size: 31

0 commit comments

Comments
 (0)