nrf91: support running in both S and NS mode.

This commit is contained in:
Dario Nieuwenhuis
2021-10-26 17:11:51 +02:00
parent 7cb34760c4
commit c995a97f20
8 changed files with 174 additions and 72 deletions

View File

@ -90,11 +90,11 @@ unsafe impl Unborrow for VddInput {
}
impl sealed::Input for VddInput {
#[cfg(not(feature = "nrf9160"))]
#[cfg(not(feature = "_nrf9160"))]
fn channel(&self) -> InputChannel {
InputChannel::VDD
}
#[cfg(feature = "nrf9160")]
#[cfg(feature = "_nrf9160")]
fn channel(&self) -> InputChannel {
InputChannel::VDDGPIO
}