Skip to content

Commit 7e05e18

Browse files
committed
add Formatter and Flush Control Register to struct TPIU
1 parent 4eb02a2 commit 7e05e18

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/peripheral/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,12 +950,15 @@ pub struct TPIU {
950950
reserved1: [u32; 55],
951951
/// Selected Pin Control
952952
pub sppr: RW<u32>,
953-
reserved2: [u32; 943],
953+
reserved2: [u32; 132],
954+
/// Formatter and Flush Control
955+
pub ffcr: RW<u32>,
956+
reserved3: [u32; 810],
954957
/// Lock Access
955958
pub lar: WO<u32>,
956959
/// Lock Status
957960
pub lsr: RO<u32>,
958-
reserved3: [u32; 4],
961+
reserved4: [u32; 4],
959962
/// TPIU Type
960963
pub _type: RO<u32>,
961964
}

src/peripheral/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ fn tpiu() {
157157
assert_eq!(address(&tpiu.cspsr), 0xE004_0004);
158158
assert_eq!(address(&tpiu.acpr), 0xE004_0010);
159159
assert_eq!(address(&tpiu.sppr), 0xE004_00F0);
160+
assert_eq!(address(&tpiu.ffcr), 0xE004_0304);
160161
assert_eq!(address(&tpiu.lar), 0xE004_0FB0);
161162
assert_eq!(address(&tpiu.lsr), 0xE004_0FB4);
162163
assert_eq!(address(&tpiu._type), 0xE004_0FC8);

0 commit comments

Comments
 (0)