mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
commit
b87c2dfa50
3 changed files with 4 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ pub unsafe extern "C" fn rust_entry() -> ! {
|
|||
let iox = Iox::new(utra::iox::HW_IOX_BASE as *mut u32);
|
||||
#[cfg(feature = "bao1x-usb")]
|
||||
let (mut last_usb_state, mut portsc) = crate::platform::usb::glue::hotplug_usb(&iox);
|
||||
|
||||
#[cfg(feature = "bao1x-usb")]
|
||||
crate::println!(
|
||||
" [usb connected {:?}] [tx idle {:?}]",
|
||||
USB_CONNECTED.load(Ordering::SeqCst),
|
||||
|
|
|
|||
|
|
@ -205,8 +205,10 @@ pub fn setup_rx(perclk: u32) -> bao1x_hal::udma::Uart {
|
|||
|
||||
// ==== DUART-only debug print ==== -> this is used for USB feedback to avoid Tx loops on USB
|
||||
/// Placeholder for debug
|
||||
#[allow(dead_code)]
|
||||
pub struct Duart {}
|
||||
|
||||
#[allow(dead_code)]
|
||||
impl Duart {
|
||||
/// Print a character
|
||||
pub fn putc(&self, c: u8) {
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ pub fn usb_ep3_bulk_out_complete(
|
|||
this.bulk_xfer(3, USB_RECV, acm_buf.as_ptr() as usize, acm_buf.len(), 0, 0);
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn flush() {
|
||||
unsafe {
|
||||
if let Some(ref mut usb_ref) = crate::platform::usb::USB {
|
||||
|
|
|
|||
Loading…
Reference in a new issue