Skip to content

Commit 7699fcb

Browse files
authored
Merge pull request #272 from alexmoon/update-deps
Update deps
2 parents 9973f61 + 4dc9eba commit 7699fcb

File tree

8 files changed

+7
-49
lines changed

8 files changed

+7
-49
lines changed

examples/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ nrf52832-dk = ["nrf52832"]
4141
microbit-v2 = ["nrf52833"]
4242

4343
[dependencies]
44-
embassy-executor = { version = "0.5.0", features = ["arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"]}
44+
embassy-executor = { version = "0.6.0", features = ["arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"]}
4545
embassy-time = { version = "0.3.0", features = ["defmt", "defmt-timestamp-uptime"]}
46-
embassy-sync = { version = "0.5.0" }
47-
embassy-nrf = { version = "0.1.0", features = ["defmt", "gpiote", "time-driver-rtc1" ]}
46+
embassy-sync = { version = "0.6.0" }
47+
embassy-nrf = { version = "0.2.0", features = ["defmt", "gpiote", "time-driver-rtc1" ]}
4848
cortex-m = "0.7.7"
4949
cortex-m-rt = "0.7.3"
5050
defmt = "0.3.5"

examples/build.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ fn linker_data() -> &'static [u8] {
2020
return include_bytes!("memory-nrf52833.x");
2121
#[cfg(feature = "nrf52840")]
2222
return include_bytes!("memory-nrf52840.x");
23-
24-
#[cfg(any(
25-
feature = "nrf52805",
26-
feature = "nrf52810",
27-
feature = "nrf52811",
28-
feature = "nrf52820",
29-
))]
30-
panic!("Unable to build examples for currently selected chip due to missing chip-specific linker configuration (memory.x)")
3123
}
3224

3325
fn main() {

nrf-softdevice-macro/src/security_mode.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use proc_macro2::TokenStream;
33
use quote::{quote, ToTokens};
44

55
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
6-
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
76
pub enum SecurityMode {
87
NoAccess,
98
Open,

nrf-softdevice/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ log = { version = "0.4.11", optional = true }
5353
critical-section = { version = "1.0", optional = true }
5454

5555
num_enum = { version = "0.7.0", default-features = false }
56-
embassy-sync = { version = "0.5.0" }
56+
embassy-sync = { version = "0.6.0" }
5757
embassy-futures = { version = "0.1.1" }
5858
cortex-m = "0.7.2"
5959
cortex-m-rt = ">=0.6.15,<0.8"

nrf-softdevice/src/ble/central.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ where
187187
len: BUF_LEN as u16,
188188
};
189189

190-
let ret = unsafe { raw::sd_ble_gap_scan_start(&scan_params, &BUF_DATA) };
190+
let ret = unsafe { raw::sd_ble_gap_scan_start(&scan_params, ptr::addr_of!(BUF_DATA)) };
191191
match RawError::convert(ret) {
192192
Ok(()) => {}
193193
Err(err) => {
@@ -218,7 +218,7 @@ where
218218
}
219219

220220
// Resume scan
221-
let ret = raw::sd_ble_gap_scan_start(ptr::null(), &BUF_DATA);
221+
let ret = raw::sd_ble_gap_scan_start(ptr::null(), ptr::addr_of!(BUF_DATA));
222222
match RawError::convert(ret) {
223223
Ok(()) => {}
224224

nrf-softdevice/src/ble/gatt_server/builder.rs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ use core::marker::PhantomData;
44
use core::mem;
55
use core::ptr::null;
66

7-
#[cfg(feature = "alloc")]
8-
extern crate alloc;
9-
10-
#[cfg(feature = "alloc")]
11-
use alloc::boxed::Box;
12-
137
use super::characteristic::{self, AttributeMetadata, Presentation};
148
use super::{CharacteristicHandles, DescriptorHandle, IncludedServiceHandle, RegisterError, ServiceHandle};
159
use crate::ble::Uuid;
@@ -54,18 +48,6 @@ impl<'a> ServiceBuilder<'a> {
5448
self.add_characteristic_inner(uuid, value, attr.max_len, &attr_md, md)
5549
}
5650

57-
#[cfg(feature = "alloc")]
58-
pub fn add_characteristic_app(
59-
&mut self,
60-
uuid: Uuid,
61-
attr: characteristic::Attribute<Box<[u8]>>,
62-
md: characteristic::Metadata,
63-
) -> Result<CharacteristicBuilder<'_>, RegisterError> {
64-
let value = Box::leak(attr.value);
65-
let attr_md = attr.metadata.into_raw_user();
66-
self.add_characteristic_inner(uuid, value, attr.max_len, &attr_md, md)
67-
}
68-
6951
fn add_characteristic_inner(
7052
&mut self,
7153
uuid: Uuid,
@@ -152,17 +134,6 @@ impl<'a> CharacteristicBuilder<'a> {
152134
self.add_descriptor_inner(uuid, value, attr.max_len, &attr_md)
153135
}
154136

155-
#[cfg(feature = "alloc")]
156-
pub fn add_descriptor_app(
157-
&mut self,
158-
uuid: Uuid,
159-
attr: characteristic::Attribute<Box<[u8]>>,
160-
) -> Result<DescriptorHandle, RegisterError> {
161-
let value = Box::leak(attr.value);
162-
let attr_md = attr.metadata.into_raw_user();
163-
self.add_descriptor_inner(uuid, value, attr.max_len, &attr_md)
164-
}
165-
166137
fn add_descriptor_inner(
167138
&mut self,
168139
uuid: Uuid,

nrf-softdevice/src/ble/gatt_server/characteristic.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ impl AttributeMetadata {
3737
self.into_raw_inner(raw::BLE_GATTS_VLOC_STACK as u8)
3838
}
3939

40-
#[cfg(feature = "alloc")]
41-
pub(crate) fn into_raw_user(self) -> raw::ble_gatts_attr_md_t {
42-
self.into_raw_inner(raw::BLE_GATTS_VLOC_USER as u8)
43-
}
44-
4540
fn into_raw_inner(self, vloc: u8) -> raw::ble_gatts_attr_md_t {
4641
raw::ble_gatts_attr_md_t {
4742
read_perm: self.read.into_raw(),

nrf-softdevice/src/fmt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ pub struct NoneError;
201201
pub trait Try {
202202
type Ok;
203203
type Error;
204+
#[allow(dead_code)]
204205
fn into_result(self) -> Result<Self::Ok, Self::Error>;
205206
}
206207

0 commit comments

Comments
 (0)