mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
quiet down debug; add a method to expatriate PORTSC
This commit is contained in:
parent
ed085f2c83
commit
996b574486
1 changed files with 4 additions and 0 deletions
|
|
@ -1553,6 +1553,8 @@ impl CorigineUsb {
|
|||
|
||||
pub fn pp(&self) -> bool { self.csr.rf(PORTSC_PP) != 0 }
|
||||
|
||||
pub fn portsc_val(&self) -> u32 { self.csr.r(PORTSC) }
|
||||
|
||||
pub fn stop(&mut self) {
|
||||
self.csr.rmwf(USBCMD_INT_ENABLE, 0);
|
||||
self.csr.rmwf(USBCMD_RUN_STOP, 0);
|
||||
|
|
@ -2040,6 +2042,7 @@ impl CorigineUsb {
|
|||
unsafe { udc_ep.enq_pt.load(Ordering::SeqCst).as_mut().expect("couldn't deref pointer") };
|
||||
let mut pcs = udc_ep.pcs;
|
||||
|
||||
/*
|
||||
crate::println!(
|
||||
"PEI = {} bufaddr = 0x{:x} pcs = {} length = 0x{:x}, enq_pt = 0x{:x?}",
|
||||
pei,
|
||||
|
|
@ -2048,6 +2051,7 @@ impl CorigineUsb {
|
|||
len,
|
||||
enq_pt,
|
||||
);
|
||||
*/
|
||||
for i in 0..num_trb {
|
||||
if num_trb == 1 {
|
||||
//only 1 trb
|
||||
|
|
|
|||
Loading…
Reference in a new issue