Skip to content

Commit 0ebc7ff

Browse files
committed
refactor: update nrf-sdc examples to latest embassy-nrf
Signed-off-by: Haobo Gu <[email protected]>
1 parent f18711c commit 0ebc7ff

14 files changed

+14
-14
lines changed

examples/nrf-sdc/src/bin/ble_advertise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async fn mpsl_task(mpsl: &'static MultiprotocolServiceLayer<'static>) -> ! {
2727
}
2828
fn build_sdc<'d, const N: usize>(
2929
p: nrf_sdc::Peripherals<'d>,
30-
rng: &'d mut rng::Rng<RNG, Async>,
30+
rng: &'d mut rng::Rng<Async>,
3131
mpsl: &'d MultiprotocolServiceLayer,
3232
mem: &'d mut sdc::Mem<N>,
3333
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

examples/nrf-sdc/src/bin/ble_advertise_multiple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async fn mpsl_task(mpsl: &'static MultiprotocolServiceLayer<'static>) -> ! {
2727
}
2828
fn build_sdc<'d, const N: usize>(
2929
p: nrf_sdc::Peripherals<'d>,
30-
rng: &'d mut rng::Rng<RNG, Async>,
30+
rng: &'d mut rng::Rng<Async>,
3131
mpsl: &'d MultiprotocolServiceLayer,
3232
mem: &'d mut sdc::Mem<N>,
3333
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

examples/nrf-sdc/src/bin/ble_bas_central.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const L2CAP_RXQ: u8 = 3;
3535

3636
fn build_sdc<'d, const N: usize>(
3737
p: nrf_sdc::Peripherals<'d>,
38-
rng: &'d mut rng::Rng<RNG, Async>,
38+
rng: &'d mut rng::Rng<Async>,
3939
mpsl: &'d MultiprotocolServiceLayer,
4040
mem: &'d mut sdc::Mem<N>,
4141
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

examples/nrf-sdc/src/bin/ble_bas_central_auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const L2CAP_MTU: usize = 72;
4040

4141
fn build_sdc<'d, const N: usize>(
4242
p: nrf_sdc::Peripherals<'d>,
43-
rng: &'d mut rng::Rng<RNG, Async>,
43+
rng: &'d mut rng::Rng<Async>,
4444
mpsl: &'d MultiprotocolServiceLayer,
4545
mem: &'d mut sdc::Mem<N>,
4646
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

examples/nrf-sdc/src/bin/ble_bas_central_bonding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const L2CAP_MTU: usize = 72;
4141

4242
fn build_sdc<'d, const N: usize>(
4343
p: nrf_sdc::Peripherals<'d>,
44-
rng: &'d mut rng::Rng<RNG, Async>,
44+
rng: &'d mut rng::Rng<Async>,
4545
mpsl: &'d MultiprotocolServiceLayer,
4646
mem: &'d mut sdc::Mem<N>,
4747
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

examples/nrf-sdc/src/bin/ble_bas_central_pass_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const L2CAP_MTU: usize = 72;
3939

4040
fn build_sdc<'d, const N: usize>(
4141
p: nrf_sdc::Peripherals<'d>,
42-
rng: &'d mut rng::Rng<RNG, Async>,
42+
rng: &'d mut rng::Rng<Async>,
4343
mpsl: &'d MultiprotocolServiceLayer,
4444
mem: &'d mut sdc::Mem<N>,
4545
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

examples/nrf-sdc/src/bin/ble_bas_central_sec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const L2CAP_MTU: usize = 72;
3939

4040
fn build_sdc<'d, const N: usize>(
4141
p: nrf_sdc::Peripherals<'d>,
42-
rng: &'d mut rng::Rng<RNG, Async>,
42+
rng: &'d mut rng::Rng<Async>,
4343
mpsl: &'d MultiprotocolServiceLayer,
4444
mem: &'d mut sdc::Mem<N>,
4545
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

examples/nrf-sdc/src/bin/ble_bas_peripheral.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const L2CAP_RXQ: u8 = 3;
3535

3636
fn build_sdc<'d, const N: usize>(
3737
p: nrf_sdc::Peripherals<'d>,
38-
rng: &'d mut rng::Rng<RNG, Async>,
38+
rng: &'d mut rng::Rng<Async>,
3939
mpsl: &'d MultiprotocolServiceLayer,
4040
mem: &'d mut sdc::Mem<N>,
4141
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

examples/nrf-sdc/src/bin/ble_bas_peripheral_auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const L2CAP_MTU: usize = 72;
4040

4141
fn build_sdc<'d, const N: usize>(
4242
p: nrf_sdc::Peripherals<'d>,
43-
rng: &'d mut rng::Rng<RNG, Async>,
43+
rng: &'d mut rng::Rng<Async>,
4444
mpsl: &'d MultiprotocolServiceLayer,
4545
mem: &'d mut sdc::Mem<N>,
4646
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

examples/nrf-sdc/src/bin/ble_bas_peripheral_pass_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const L2CAP_MTU: usize = 72;
3939

4040
fn build_sdc<'d, const N: usize>(
4141
p: nrf_sdc::Peripherals<'d>,
42-
rng: &'d mut rng::Rng<RNG, Async>,
42+
rng: &'d mut rng::Rng<Async>,
4343
mpsl: &'d MultiprotocolServiceLayer,
4444
mem: &'d mut sdc::Mem<N>,
4545
) -> Result<nrf_sdc::SoftdeviceController<'d>, nrf_sdc::Error> {

0 commit comments

Comments
 (0)