File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
examples/i2s-controller-demo/src Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 33
33
#[ rtic:: app( device = crate :: hal:: pac, peripherals = true , monotonic = rtic:: cyccnt:: CYCCNT ) ]
34
34
const APP : ( ) = {
35
35
struct Resources {
36
- // i2s: hal::i2s::I2S,
37
- // #[init([0; 32])]
38
36
signal_buf : pin:: Pin < & ' static [ i16 ] > ,
39
- // #[init([0; 32])]
40
37
mute_buf : pin:: Pin < & ' static [ i16 ] > ,
41
38
#[ init( None ) ]
42
39
queue : Option < Queue < State , U256 > > ,
@@ -57,6 +54,7 @@ const APP: () = {
57
54
fn init ( mut ctx : init:: Context ) -> init:: LateResources {
58
55
static mut MUTE_BUF : [ i16 ; 32 ] = [ 0i16 ; 32 ] ;
59
56
static mut SIGNAL_BUF : [ i16 ; 32 ] = [ 0i16 ; 32 ] ;
57
+
60
58
// Fill signal buffer with triangle waveform, 2 channels interleaved
61
59
let len = SIGNAL_BUF . len ( ) / 2 ;
62
60
for x in 0 ..len {
You can’t perform that action at this time.
0 commit comments