Fix logging with anyfmt/log
This commit is contained in:
parent
36517fd1c5
commit
e539cd32ca
@ -195,7 +195,7 @@ impl Gpiote {
|
|||||||
|
|
||||||
self.free_channels
|
self.free_channels
|
||||||
.set(self.free_channels.get() | 1 << index);
|
.set(self.free_channels.get() | 1 << index);
|
||||||
trace!("freed ch {:u8}", index);
|
trace!("freed ch {:?}", index);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ impl Gpiote {
|
|||||||
interrupt::free(|_| {
|
interrupt::free(|_| {
|
||||||
unsafe { INSTANCE = self };
|
unsafe { INSTANCE = self };
|
||||||
let index = self.allocate_channel()?;
|
let index = self.allocate_channel()?;
|
||||||
trace!("allocated in ch {:u8}", index as u8);
|
trace!("allocated in ch {:?}", index as u8);
|
||||||
|
|
||||||
self.inner.config[index as usize].write(|w| {
|
self.inner.config[index as usize].write(|w| {
|
||||||
match polarity {
|
match polarity {
|
||||||
@ -251,7 +251,7 @@ impl Gpiote {
|
|||||||
interrupt::free(|_| {
|
interrupt::free(|_| {
|
||||||
unsafe { INSTANCE = self };
|
unsafe { INSTANCE = self };
|
||||||
let index = self.allocate_channel()?;
|
let index = self.allocate_channel()?;
|
||||||
trace!("allocated out ch {:u8}", index);
|
trace!("allocated out ch {:?}", index);
|
||||||
|
|
||||||
self.inner.config[index as usize].write(|w| {
|
self.inner.config[index as usize].write(|w| {
|
||||||
w.mode().task();
|
w.mode().task();
|
||||||
|
Loading…
Reference in New Issue
Block a user