nrf/nfct: set correct frame delay timing.
This makes it work both with and without trace logging, before it would only work with.
This commit is contained in:
parent
7a56e2f9c9
commit
03082a9cdf
@ -215,6 +215,12 @@ impl<'d> NfcT<'d> {
|
||||
r.framedelaymode().write(|w| {
|
||||
w.set_framedelaymode(vals::Framedelaymode::WINDOW_GRID);
|
||||
});
|
||||
r.framedelaymin().write(|w| {
|
||||
w.set_framedelaymin(1152);
|
||||
});
|
||||
r.framedelaymax().write(|w| {
|
||||
w.set_framedelaymax(0xFFFF); // max
|
||||
});
|
||||
|
||||
info!("waiting for field");
|
||||
poll_fn(|cx| {
|
||||
@ -259,12 +265,6 @@ impl<'d> NfcT<'d> {
|
||||
continue;
|
||||
}
|
||||
|
||||
// TODO: add support for "window" frame delay, which is technically
|
||||
// needed to be compliant with iso14443-4
|
||||
r.framedelaymode().write(|w| {
|
||||
w.set_framedelaymode(vals::Framedelaymode::FREE_RUN);
|
||||
});
|
||||
|
||||
// disable autocoll
|
||||
#[cfg(not(feature = "nrf52832"))]
|
||||
r.autocolresconfig().write(|w| w.0 = 0b11u32);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user