Skip to content

Commit

Permalink
Enable UARTE1 for 52840 MCUs.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bjc authored and Yatekii committed Sep 3, 2019
1 parent 1d3e46d commit 56ea2dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nrf52-hal-common/src/uarte.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ use core::ops::Deref;
use core::sync::atomic::{compiler_fence, Ordering::SeqCst};
use core::fmt;

#[cfg(feature="52840")]
use crate::target::UARTE1;

#[cfg(feature="9160")]
use crate::target::{
uarte0_ns as uarte0,
Expand Down Expand Up @@ -393,5 +396,5 @@ pub trait Instance: Deref<Target = uarte0::RegisterBlock> {}

impl Instance for UARTE0 {}

#[cfg(feature="9160")]
#[cfg(any(feature="52840", feature="9160"))]
impl Instance for UARTE1 {}

0 comments on commit 56ea2dd

Please sign in to comment.