diff options
| author | Christian Perez Llamas <[email protected]> | 2022-11-09 19:14:43 +0100 |
|---|---|---|
| committer | Christian Perez Llamas <[email protected]> | 2022-11-09 19:19:01 +0100 |
| commit | cecd77938c694ff2bad2a259ff64f2f468dcb04a (patch) | |
| tree | ad4cca7a642cc0a8a2fd2858538560d0a2ba55b1 /embassy-nrf/src/chips | |
| parent | 059610a8de49ff2d38311f343d3d1a6f8d90a720 (diff) | |
Draft: Initial support for I2S with a working example.
Co-authored-by: @brainstorm <[email protected]>
Diffstat (limited to 'embassy-nrf/src/chips')
| -rw-r--r-- | embassy-nrf/src/chips/nrf52840.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-nrf/src/chips/nrf52840.rs b/embassy-nrf/src/chips/nrf52840.rs index 4beadfba8..cf800c7b4 100644 --- a/embassy-nrf/src/chips/nrf52840.rs +++ b/embassy-nrf/src/chips/nrf52840.rs | |||
| @@ -164,6 +164,9 @@ embassy_hal_common::peripherals! { | |||
| 164 | 164 | ||
| 165 | // PDM | 165 | // PDM |
| 166 | PDM, | 166 | PDM, |
| 167 | |||
| 168 | // I2S | ||
| 169 | I2S, | ||
| 167 | } | 170 | } |
| 168 | 171 | ||
| 169 | #[cfg(feature = "nightly")] | 172 | #[cfg(feature = "nightly")] |
| @@ -285,6 +288,8 @@ impl_saadc_input!(P0_29, ANALOG_INPUT5); | |||
| 285 | impl_saadc_input!(P0_30, ANALOG_INPUT6); | 288 | impl_saadc_input!(P0_30, ANALOG_INPUT6); |
| 286 | impl_saadc_input!(P0_31, ANALOG_INPUT7); | 289 | impl_saadc_input!(P0_31, ANALOG_INPUT7); |
| 287 | 290 | ||
| 291 | impl_i2s!(I2S, I2S, I2S); | ||
| 292 | |||
| 288 | pub mod irqs { | 293 | pub mod irqs { |
| 289 | use embassy_cortex_m::interrupt::_export::declare; | 294 | use embassy_cortex_m::interrupt::_export::declare; |
| 290 | 295 | ||
