Skip to content

Commit 8eb479f

Browse files
authored
Merge pull request betrusted-io#568 from betrusted-io/cramsoc-warnings
fix rust-1.80 warnings for cram-soc config
2 parents 1ae0ef4 + 3cdf01d commit 8eb479f

File tree

11 files changed

+23
-8
lines changed

11 files changed

+23
-8
lines changed

libs/cramium-hal/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ bitfield = "0.13.2"
2525
xous = { version = "0.9.63", features = ["v2p"] }
2626

2727
[features]
28+
compress-entropy = []
29+
magic-manual = []
2830
std = ["log", "xous-api-names", "usb-device"]
2931
derive-rkyv = ["rkyv"]
3032
default = []

libs/cramium-hal/src/usb/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ impl CorigineUsb {
981981
(0x0bc, 0x44087d5a),
982982
(0x110, 0x00000000),
983983
];
984-
#[cfg(feature = "magic_manual")]
984+
#[cfg(feature = "magic-manual")]
985985
const MAGIC_TABLE: [(usize, u32); 17] = [
986986
(0x0fc, 0x00000001),
987987
(0x084, 0x01401388),

libs/xous-pio/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ xous = "0.9.63"
1919
cramium-soc = ["utralib/cramium-soc"]
2020
cramium-fpga = ["utralib/cramium-fpga"]
2121
rp2040 = ["defmt"]
22+
arty = []
2223
precursor = []
2324
hosted = []
2425
renode = []

libs/xous-pl230/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ renode = []
2626
pio = ["xous-pio"]
2727
dma-mainram = []
2828
baremetal = []
29+
debug-print = []
2930

3031
tests = ["pio", "cramium-hal"]
3132
default = ["tests", "pio"]

libs/xous-pl230/src/pl230_tests/units.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ pub fn basic_tests(pl230: &mut Pl230) -> bool {
3333

3434
const DMA_LEN: usize = 16;
3535
// setup the PL230 to do a simple transfer between two memory regions
36-
// dma_mainram feature will cause us to DMA between main memory regions. This works under RTL sims.
37-
#[cfg(feature = "dma_mainram")]
36+
// dma-mainram feature will cause us to DMA between main memory regions. This works under RTL sims.
37+
#[cfg(feature = "dma-mainram")]
3838
let mut region_a = [0u32; DMA_LEN];
39-
#[cfg(feature = "dma_mainram")]
39+
#[cfg(feature = "dma-mainram")]
4040
let region_b = [0u32; DMA_LEN];
4141
// The alternate is to DMA between IFRAM regions. This works under FPGA and RTL sim.
42-
#[cfg(not(feature = "dma_mainram"))]
42+
#[cfg(not(feature = "dma-mainram"))]
4343
let region_a =
4444
unsafe { core::slice::from_raw_parts_mut((utralib::HW_IFRAM0_MEM + 4096) as *mut u32, DMA_LEN) };
45-
#[cfg(not(feature = "dma_mainram"))]
45+
#[cfg(not(feature = "dma-mainram"))]
4646
let region_b = unsafe { core::slice::from_raw_parts_mut(utralib::HW_IFRAM1_MEM as *mut u32, DMA_LEN) };
4747
let mut state = 0x1111_1111;
4848
for d in region_a.iter_mut() {

services/cram-console/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ xous-swapper = { path = "../xous-swapper" }
3333
"cramium-fpga" = ["utralib/cramium-fpga", "xous-pl230/cramium-fpga"]
3434
"cramium-soc" = ["utralib/cramium-soc", "xous-pl230/cramium-soc"]
3535
"hwsim" = []
36+
"shellperf" = []
37+
"mass-storage" = []
38+
"clifford-poll" = []
39+
"tts" = []
40+
"early-ball" = []
3641
"pio-test" = ["xous-pio"]
3742
"pl230-test" = ["xous-pl230"]
3843
"hwtest" = []

services/cram-console/src/cmds/mbox.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl<'a> ShellCmdApi<'a> for Mbox {
287287
match self.try_send(clifford_pkt) {
288288
Ok(_) => {
289289
write!(ret, "Packet send Ok\n").ok();
290-
#[cfg(feature = "cifford-poll")]
290+
#[cfg(feature = "clifford-poll")]
291291
{
292292
let start = env.ticktimer.elapsed_ms();
293293
while self.poll_not_ready() {

services/cram-hal-service/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ rkyv = { version = "0.4.3", default-features = false, features = [
3636

3737
[features]
3838
app-uart = []
39+
pio = []
40+
pio-memlcd = []
41+
rawserial = []
42+
pinger = []
3943
swap = []
4044
# add this feature to enable pre-emption
4145
quantum-timer = ["utralib"]

services/usb-device-xous/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ mass-storage = ["usbd_scsi", "usbd_mass_storage"]
7474
auto-trng = []
7575
mjolnir = [
7676
] # the big hammer for debugging Spinal USB issues. A raw memory dump of config and descriptor space. Use with care.
77+
pinger = []
7778

7879
# cramium targets must specify no default features; this is necessary for cargo doc to work.
7980
default = ["trng"]

services/xous-swapper/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ fn swap_handler(
489489
let ss = sss.inner.as_mut().expect("Shared state should be initialized");
490490

491491
let op: Option<KernelOp> = FromPrimitive::from_usize(opcode);
492-
#[cfg(feature = "debug-print-verbose")]
492+
#[cfg(feature = "debug-verbose")]
493493
writeln!(DebugUart {}, "got Opcode: {:?}", op).ok();
494494
match op {
495495
Some(KernelOp::ReadFromSwap) => {

services/xous-ticktimer/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ renode = ["utralib/renode", "susres/renode", "watchdog"]
4141
cramium-soc = ["utralib/cramium-soc", "utralib/std"]
4242
cramium-fpga = ["utralib/cramium-fpga"]
4343

44+
susres = []
4445
debug-print = []
4546
watchdog = []
4647
timestamp = []

0 commit comments

Comments
 (0)