Skip to content

Commit 550c492

Browse files
committed
In examples, allow the static_mut_refs lint
For the future, need to investigate: * How to implement DMA without requiring the lifetime of the buffer to be 'static * How to specific the link_section of non-static buffers
1 parent 5166da8 commit 550c492

17 files changed

+17
-0
lines changed

examples/dma.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Example of Memory to Memory Transfer with the DMA
22
33
#![deny(warnings)]
4+
#![allow(static_mut_refs)]
45
#![no_main]
56
#![no_std]
67

examples/ethernet-nucleo-h743zi2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//! This demo does not use smoltcp - see the ethernet-rtic-stm32h747i-disco demo
1010
//! for an example of smoltcp
1111
#![deny(warnings)]
12+
#![allow(static_mut_refs)]
1213
#![no_main]
1314
#![no_std]
1415

examples/ethernet-rtic-nucleo-h723zg.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//!
1313
//! `cargo flash --example ethernet-rtic-nucleo-h723zg --features=ethernet,stm32h735 --chip=STM32H723ZGTx`
1414
#![deny(warnings)]
15+
#![allow(static_mut_refs)]
1516
#![no_main]
1617
#![no_std]
1718

examples/ethernet-rtic-stm32h735g-dk.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//! The ethernet ring buffers are placed in AXI SRAM, where they can be
99
//! accessed by both the core and the Ethernet DMA.
1010
#![deny(warnings)]
11+
#![allow(static_mut_refs)]
1112
#![no_main]
1213
#![no_std]
1314

examples/ethernet-rtic-stm32h747i-disco.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//! The ethernet ring buffers are placed in SRAM3, where they can be
1616
//! accessed by both the core and the Ethernet DMA.
1717
#![deny(warnings)]
18+
#![allow(static_mut_refs)]
1819
#![no_main]
1920
#![no_std]
2021

examples/ethernet-stm32h747i-disco.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//! This demo does not use smoltcp - see the ethernet-rtic-stm32h747i-disco demo
99
//! for an example of smoltcp
1010
#![deny(warnings)]
11+
#![allow(static_mut_refs)]
1112
#![no_main]
1213
#![no_std]
1314

examples/i2c4_bdma.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//!
44
55
#![deny(warnings)]
6+
#![allow(static_mut_refs)]
67
#![no_std]
78
#![no_main]
89

examples/mdma.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Example of Memory to Memory Transfer with the Master DMA (MDMA)
22
33
#![deny(warnings)]
4+
#![allow(static_mut_refs)]
45
#![no_main]
56
#![no_std]
67

examples/mdma_bursts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//! beats/burst. The latter gives an approximately 25% speedup.
77
88
#![deny(warnings)]
9+
#![allow(static_mut_refs)]
910
#![no_main]
1011
#![no_std]
1112

examples/sai_dma_passthru.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
#![allow(unused_macros)]
55
#![deny(warnings)]
6+
#![allow(static_mut_refs)]
67
#![no_main]
78
#![no_std]
89

0 commit comments

Comments
 (0)