@@ -142,7 +142,7 @@ const RTT_ATTACH_TIMEOUT: Duration = Duration::from_millis(500);
142
142
#[ derive( thiserror:: Error , Debug ) ]
143
143
pub enum AttachRttError {
144
144
#[ error( "Error while attaching to the RTT channel" ) ]
145
- AttachRtt ( #[ source] probe_rs_rtt :: Error ) ,
145
+ AttachRtt ( #[ source] probe_rs :: rtt :: Error ) ,
146
146
#[ error( "Error while halting or resuming the core to access the RTT channel" ) ]
147
147
HaltCore ( #[ source] probe_rs:: Error ) ,
148
148
#[ error( "Timeout while trying to attach to the RTT channel." ) ]
@@ -172,14 +172,14 @@ pub async fn attach_rtt(
172
172
. unwrap ( ) ;
173
173
if let Some ( x) = addr {
174
174
log:: debug!( "Found the RTT header at {x:#x}" ) ;
175
- probe_rs_rtt :: ScanRegion :: Exact ( x as u32 )
175
+ probe_rs :: rtt :: ScanRegion :: Exact ( x as u32 )
176
176
} else {
177
- probe_rs_rtt :: ScanRegion :: Ram
177
+ probe_rs :: rtt :: ScanRegion :: Ram
178
178
}
179
179
}
180
180
Err ( e) => {
181
181
log:: warn!( "Couldn't read the executable to find the RTT header: {e:?}" ) ;
182
- probe_rs_rtt :: ScanRegion :: Ram
182
+ probe_rs :: rtt :: ScanRegion :: Ram
183
183
}
184
184
} ;
185
185
@@ -201,9 +201,9 @@ pub async fn attach_rtt(
201
201
& mut core
202
202
} ;
203
203
204
- match probe_rs_rtt :: Rtt :: attach_region ( core, & memory_map, & rtt_scan_region) {
204
+ match probe_rs :: rtt :: Rtt :: attach_region ( core, & memory_map, & rtt_scan_region) {
205
205
Ok ( rtt) => Some ( rtt) ,
206
- Err ( probe_rs_rtt :: Error :: ControlBlockNotFound ) => None ,
206
+ Err ( probe_rs :: rtt :: Error :: ControlBlockNotFound ) => None ,
207
207
Err ( e) => return Err ( AttachRttError :: AttachRtt ( e) ) ,
208
208
}
209
209
} ;
@@ -279,7 +279,7 @@ enum ReadRttSt {
279
279
Idle {
280
280
buf : ReadRttBuf ,
281
281
session : AsyncMutexGuard < probe_rs:: Session > ,
282
- rtt : Box < probe_rs_rtt :: Rtt > ,
282
+ rtt : Box < probe_rs :: rtt :: Rtt > ,
283
283
pos : usize ,
284
284
len : usize ,
285
285
} ,
@@ -291,7 +291,7 @@ enum ReadRttSt {
291
291
ReadRttBuf ,
292
292
AsyncMutexGuard < probe_rs:: Session > ,
293
293
usize ,
294
- Box < probe_rs_rtt :: Rtt > ,
294
+ Box < probe_rs :: rtt :: Rtt > ,
295
295
) > ,
296
296
> ,
297
297
} ,
@@ -300,7 +300,7 @@ enum ReadRttSt {
300
300
PollDelay {
301
301
buf : ReadRttBuf ,
302
302
session : AsyncMutexGuard < probe_rs:: Session > ,
303
- rtt : Box < probe_rs_rtt :: Rtt > ,
303
+ rtt : Box < probe_rs :: rtt :: Rtt > ,
304
304
delay : Pin < Box < Sleep > > ,
305
305
} ,
306
306
@@ -312,7 +312,7 @@ type ReadRttBuf = Box<[u8; 1024]>;
312
312
impl ReadRtt {
313
313
fn new (
314
314
session : AsyncMutexGuard < probe_rs:: Session > ,
315
- rtt : probe_rs_rtt :: Rtt ,
315
+ rtt : probe_rs :: rtt :: Rtt ,
316
316
options : RttOptions ,
317
317
) -> Self {
318
318
Self {
@@ -440,7 +440,7 @@ impl AsyncBufRead for ReadRtt {
440
440
impl ReadRtt {
441
441
fn read_inner (
442
442
session : & mut probe_rs:: Session ,
443
- rtt : & mut probe_rs_rtt :: Rtt ,
443
+ rtt : & mut probe_rs :: rtt :: Rtt ,
444
444
buf : & mut [ u8 ] ,
445
445
halt_on_access : bool ,
446
446
) -> tokio:: io:: Result < usize > {
0 commit comments