mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
remove prints
This commit is contained in:
parent
8e04c415d2
commit
911b60bcd1
|
@ -2,7 +2,7 @@ use core::ops::{Deref, DerefMut};
|
|||
|
||||
use embedded_hal::serial::{Read, Write};
|
||||
|
||||
use crate::{memory_mapped::MemoryMapped, println};
|
||||
use crate::memory_mapped::MemoryMapped;
|
||||
|
||||
const SIODATA8: MemoryMapped<u16> = unsafe { MemoryMapped::new(0x0400_012A) };
|
||||
const SIOCNT: MemoryMapped<u16> = unsafe { MemoryMapped::new(0x0400_0128) };
|
||||
|
@ -17,9 +17,7 @@ pub struct LinkPortUart;
|
|||
|
||||
impl LinkPortUart {
|
||||
pub fn init(rate: BaudRate, with_interrupts: bool, clear_to_send: bool) -> Self {
|
||||
println!("begin init");
|
||||
RCNT.set(0x0);
|
||||
println!("have set rcnt");
|
||||
SIOCNT.set(0x0);
|
||||
let reg: u16 = SioControlReg::default_uart()
|
||||
.with_baud(rate)
|
||||
|
@ -27,7 +25,6 @@ impl LinkPortUart {
|
|||
.with_cts(clear_to_send)
|
||||
.into();
|
||||
SIOCNT.set(reg);
|
||||
println!("have set siocnt to {reg:#X}/{reg:#b}");
|
||||
Self
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue