aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-11-25 00:09:02 +0000
committerGitHub <[email protected]>2023-11-25 00:09:02 +0000
commit0ad0d271508965cd36d01425cf522f48545c9122 (patch)
tree066009f576ab0c58cc4bcf6131cef6b001e6394a
parent8b46343b34f0e6c2486131a0d18de46e9a835d22 (diff)
parent03d500f548ac681d201b24c55ab0d6e15f19679b (diff)
Merge pull request #2219 from embassy-rs/no-concat-bytes
cyw43: remove feature(concat_bytes).
-rw-r--r--cyw43/src/lib.rs2
-rw-r--r--cyw43/src/nvram.rs102
-rw-r--r--embassy-stm32-wpan/src/lib.rs1
3 files changed, 49 insertions, 56 deletions
diff --git a/cyw43/src/lib.rs b/cyw43/src/lib.rs
index 04847bfa5..4a1d015aa 100644
--- a/cyw43/src/lib.rs
+++ b/cyw43/src/lib.rs
@@ -1,6 +1,6 @@
1#![no_std] 1#![no_std]
2#![no_main] 2#![no_main]
3#![feature(async_fn_in_trait, type_alias_impl_trait, concat_bytes)] 3#![feature(async_fn_in_trait, type_alias_impl_trait)]
4#![allow(stable_features, unknown_lints, async_fn_in_trait)] 4#![allow(stable_features, unknown_lints, async_fn_in_trait)]
5#![deny(unused_must_use)] 5#![deny(unused_must_use)]
6 6
diff --git a/cyw43/src/nvram.rs b/cyw43/src/nvram.rs
index 964a3128d..3d1b5352d 100644
--- a/cyw43/src/nvram.rs
+++ b/cyw43/src/nvram.rs
@@ -1,54 +1,48 @@
1macro_rules! nvram { 1pub static NVRAM: &'static [u8] = b"
2 ($($s:literal,)*) => { 2 NVRAMRev=$Rev$\x00\
3 concat_bytes!($($s, b"\x00",)* b"\x00\x00") 3 manfid=0x2d0\x00\
4 }; 4 prodid=0x0727\x00\
5} 5 vendid=0x14e4\x00\
6 6 devid=0x43e2\x00\
7pub static NVRAM: &'static [u8] = &*nvram!( 7 boardtype=0x0887\x00\
8 b"NVRAMRev=$Rev$", 8 boardrev=0x1100\x00\
9 b"manfid=0x2d0", 9 boardnum=22\x00\
10 b"prodid=0x0727", 10 macaddr=00:A0:50:b5:59:5e\x00\
11 b"vendid=0x14e4", 11 sromrev=11\x00\
12 b"devid=0x43e2", 12 boardflags=0x00404001\x00\
13 b"boardtype=0x0887", 13 boardflags3=0x04000000\x00\
14 b"boardrev=0x1100", 14 xtalfreq=37400\x00\
15 b"boardnum=22", 15 nocrc=1\x00\
16 b"macaddr=00:A0:50:b5:59:5e", 16 ag0=255\x00\
17 b"sromrev=11", 17 aa2g=1\x00\
18 b"boardflags=0x00404001", 18 ccode=ALL\x00\
19 b"boardflags3=0x04000000", 19 pa0itssit=0x20\x00\
20 b"xtalfreq=37400", 20 extpagain2g=0\x00\
21 b"nocrc=1", 21 pa2ga0=-168,6649,-778\x00\
22 b"ag0=255", 22 AvVmid_c0=0x0,0xc8\x00\
23 b"aa2g=1", 23 cckpwroffset0=5\x00\
24 b"ccode=ALL", 24 maxp2ga0=84\x00\
25 b"pa0itssit=0x20", 25 txpwrbckof=6\x00\
26 b"extpagain2g=0", 26 cckbw202gpo=0\x00\
27 b"pa2ga0=-168,6649,-778", 27 legofdmbw202gpo=0x66111111\x00\
28 b"AvVmid_c0=0x0,0xc8", 28 mcsbw202gpo=0x77711111\x00\
29 b"cckpwroffset0=5", 29 propbw202gpo=0xdd\x00\
30 b"maxp2ga0=84", 30 ofdmdigfilttype=18\x00\
31 b"txpwrbckof=6", 31 ofdmdigfilttypebe=18\x00\
32 b"cckbw202gpo=0", 32 papdmode=1\x00\
33 b"legofdmbw202gpo=0x66111111", 33 papdvalidtest=1\x00\
34 b"mcsbw202gpo=0x77711111", 34 pacalidx2g=45\x00\
35 b"propbw202gpo=0xdd", 35 papdepsoffset=-30\x00\
36 b"ofdmdigfilttype=18", 36 papdendidx=58\x00\
37 b"ofdmdigfilttypebe=18", 37 ltecxmux=0\x00\
38 b"papdmode=1", 38 ltecxpadnum=0x0102\x00\
39 b"papdvalidtest=1", 39 ltecxfnsel=0x44\x00\
40 b"pacalidx2g=45", 40 ltecxgcigpio=0x01\x00\
41 b"papdepsoffset=-30", 41 il0macaddr=00:90:4c:c5:12:38\x00\
42 b"papdendidx=58", 42 wl0id=0x431b\x00\
43 b"ltecxmux=0", 43 deadman_to=0xffffffff\x00\
44 b"ltecxpadnum=0x0102", 44 muxenab=0x100\x00\
45 b"ltecxfnsel=0x44", 45 spurconfig=0x3\x00\
46 b"ltecxgcigpio=0x01", 46 glitch_based_crsmin=1\x00\
47 b"il0macaddr=00:90:4c:c5:12:38", 47 btc_mode=1\x00\
48 b"wl0id=0x431b", 48 \x00";
49 b"deadman_to=0xffffffff",
50 b"muxenab=0x100",
51 b"spurconfig=0x3",
52 b"glitch_based_crsmin=1",
53 b"btc_mode=1",
54);
diff --git a/embassy-stm32-wpan/src/lib.rs b/embassy-stm32-wpan/src/lib.rs
index 69a3d082a..84cf0a02d 100644
--- a/embassy-stm32-wpan/src/lib.rs
+++ b/embassy-stm32-wpan/src/lib.rs
@@ -4,7 +4,6 @@
4 any(feature = "ble", feature = "mac"), 4 any(feature = "ble", feature = "mac"),
5 allow(stable_features, unknown_lints, async_fn_in_trait) 5 allow(stable_features, unknown_lints, async_fn_in_trait)
6)] 6)]
7#![cfg_attr(feature = "mac", feature(type_alias_impl_trait, concat_bytes))]
8 7
9// This must go FIRST so that all the other modules see its macros. 8// This must go FIRST so that all the other modules see its macros.
10mod fmt; 9mod fmt;