Skip to content

Commit 56ea2dd

Browse files
bjcYatekii
authored andcommitted
Enable UARTE1 for 52840 MCUs.
This is mentioned in the datasheet in §4.2 Table 3 (Instantiation Table). And exists in the PAC for this chipset. Tested with a nrf52840-mdk board.
1 parent 1d3e46d commit 56ea2dd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nrf52-hal-common/src/uarte.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ use core::ops::Deref;
88
use core::sync::atomic::{compiler_fence, Ordering::SeqCst};
99
use core::fmt;
1010

11+
#[cfg(feature="52840")]
12+
use crate::target::UARTE1;
13+
1114
#[cfg(feature="9160")]
1215
use crate::target::{
1316
uarte0_ns as uarte0,
@@ -393,5 +396,5 @@ pub trait Instance: Deref<Target = uarte0::RegisterBlock> {}
393396

394397
impl Instance for UARTE0 {}
395398

396-
#[cfg(feature="9160")]
399+
#[cfg(any(feature="52840", feature="9160"))]
397400
impl Instance for UARTE1 {}

0 commit comments

Comments
 (0)