Skip to content

Commit 362ad2d

Browse files
committed
itm: fix field spelling
1 parent 669c872 commit 362ad2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/peripheral/itm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bitfield! {
4141
get_syncena, set_synena: 2;
4242
get_txena, set_txena: 3;
4343
get_swoena, set_swoena: 4;
44-
u8, get_tsprescale, set_tsprecale: 9, 8;
44+
u8, get_tsprescale, set_tsprescale: 9, 8;
4545
u8, get_gtsfreq, set_gtsfreq: 11, 10;
4646
u8, get_tracebusid, set_tracebusid: 22, 16;
4747
busy, _: 23;
@@ -168,7 +168,7 @@ impl ITM {
168168
r.set_itmena(settings.enable);
169169
r.set_tsena(settings.local_timestamps != LocalTimestampOptions::Disabled);
170170
r.set_txena(settings.forward_dwt);
171-
r.set_tsprecale(match settings.local_timestamps {
171+
r.set_tsprescale(match settings.local_timestamps {
172172
LocalTimestampOptions::Disabled | LocalTimestampOptions::Enabled => 0b00,
173173
LocalTimestampOptions::EnabledDiv4 => 0b10,
174174
LocalTimestampOptions::EnabledDiv16 => 0b10,

0 commit comments

Comments
 (0)