diff options
| author | nerwalt <[email protected]> | 2024-07-15 13:21:30 -0600 |
|---|---|---|
| committer | nerwalt <[email protected]> | 2024-07-15 13:21:30 -0600 |
| commit | 8a6cb98e45c45743bc8c8a2b678067d3e1660232 (patch) | |
| tree | 2cbbb8741539d7b180325f5c78095906ff93ca20 /embassy-nrf/src/pdm.rs | |
| parent | 4340d74e19bb99e2afdfb97232e8556aca7584b4 (diff) | |
Adding _nrf91 feature
Combining _nrf9160 and _nrf9120 in many places to reduce cfgs
Diffstat (limited to 'embassy-nrf/src/pdm.rs')
| -rw-r--r-- | embassy-nrf/src/pdm.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-nrf/src/pdm.rs b/embassy-nrf/src/pdm.rs index c1501e02e..5160fe3c4 100644 --- a/embassy-nrf/src/pdm.rs +++ b/embassy-nrf/src/pdm.rs | |||
| @@ -21,7 +21,7 @@ pub use crate::pac::pdm::pdmclkctrl::FREQ_A as Frequency; | |||
| 21 | feature = "nrf52840", | 21 | feature = "nrf52840", |
| 22 | feature = "nrf52833", | 22 | feature = "nrf52833", |
| 23 | feature = "_nrf5340-app", | 23 | feature = "_nrf5340-app", |
| 24 | feature = "_nrf9160", | 24 | feature = "_nrf91", |
| 25 | ))] | 25 | ))] |
| 26 | pub use crate::pac::pdm::ratio::RATIO_A as Ratio; | 26 | pub use crate::pac::pdm::ratio::RATIO_A as Ratio; |
| 27 | use crate::{interrupt, Peripheral}; | 27 | use crate::{interrupt, Peripheral}; |
| @@ -121,7 +121,7 @@ impl<'d, T: Instance> Pdm<'d, T> { | |||
| 121 | feature = "nrf52840", | 121 | feature = "nrf52840", |
| 122 | feature = "nrf52833", | 122 | feature = "nrf52833", |
| 123 | feature = "_nrf5340-app", | 123 | feature = "_nrf5340-app", |
| 124 | feature = "_nrf9160", | 124 | feature = "_nrf91", |
| 125 | ))] | 125 | ))] |
| 126 | r.ratio.write(|w| w.ratio().variant(config.ratio)); | 126 | r.ratio.write(|w| w.ratio().variant(config.ratio)); |
| 127 | r.mode.write(|w| { | 127 | r.mode.write(|w| { |
| @@ -374,7 +374,7 @@ pub struct Config { | |||
| 374 | feature = "nrf52840", | 374 | feature = "nrf52840", |
| 375 | feature = "nrf52833", | 375 | feature = "nrf52833", |
| 376 | feature = "_nrf5340-app", | 376 | feature = "_nrf5340-app", |
| 377 | feature = "_nrf9160", | 377 | feature = "_nrf91", |
| 378 | ))] | 378 | ))] |
| 379 | pub ratio: Ratio, | 379 | pub ratio: Ratio, |
| 380 | /// Gain left in dB | 380 | /// Gain left in dB |
| @@ -393,7 +393,7 @@ impl Default for Config { | |||
| 393 | feature = "nrf52840", | 393 | feature = "nrf52840", |
| 394 | feature = "nrf52833", | 394 | feature = "nrf52833", |
| 395 | feature = "_nrf5340-app", | 395 | feature = "_nrf5340-app", |
| 396 | feature = "_nrf9160", | 396 | feature = "_nrf91", |
| 397 | ))] | 397 | ))] |
| 398 | ratio: Ratio::RATIO80, | 398 | ratio: Ratio::RATIO80, |
| 399 | gain_left: I7F1::ZERO, | 399 | gain_left: I7F1::ZERO, |
