Skip to content

Commit c1a1671

Browse files
authored
Merge pull request #529 from BartMassey-upstream/i2s-contoller-demo-heapless-09
I2s contoller demo heapless 09
2 parents 3bf7e34 + b7ddfd6 commit c1a1671

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

examples/i2s-controller-demo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ embedded-hal = "1.0.0"
1313
systick-monotonic = "1.0.0"
1414
rtt-target = "0.6.0"
1515
nrf52840-hal = { features = ["rt"], path = "../../nrf52840-hal" }
16-
heapless = "0.8.0"
16+
heapless = "0.9.1"
1717
small_morse = "0.1.0"

examples/i2s-controller-demo/Embed.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protocol = "Swd"
1515
enabled = true
1616
# Whether or not the target should be halted after reset.
1717
# DEPRECATED, moved to reset section
18-
halt_afterwards = false
18+
#halt_afterwards = false
1919
# Whether or not bytes erased but not rewritten with data from the ELF
2020
# should be restored with their contents before erasing.
2121
restore_unwritten_bytes = false
@@ -43,13 +43,14 @@ log_level = "WARN"
4343
# This is exclusive and cannot be used with GDB at the moment.
4444
enabled = true
4545
# A list of channel associations to be displayed. If left empty, all channels are displayed.
46-
channels = [
47-
# { up = 0, down = 0, name = "name", format = "String" }
46+
up_channels = [
47+
# { name = "name", format = "String" }
48+
]
49+
down_channels = [
50+
# { name = "name", format = "String" }
4851
]
4952
# The duration in ms for which the logger should retry to attach to RTT.
5053
timeout = 3000
51-
# Whether timestamps in the RTTUI are enabled
52-
show_timestamps = true
5354
# Whether to save rtt history buffer on exit.
5455
log_enabled = false
5556
# Where to save rtt history buffer relative to manifest path.

examples/i2s-controller-demo/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ mod app {
4141
struct Local {
4242
signal_buf: &'static [i16; 32],
4343
mute_buf: &'static [i16; 32],
44-
producer: Producer<'static, State, 257>,
45-
consumer: Consumer<'static, State, 257>,
44+
producer: Producer<'static, State>,
45+
consumer: Consumer<'static, State>,
4646
uarte: Uarte<UARTE0>,
4747
uarte_timer: Timer<TIMER0>,
4848
gpiote: Gpiote,

0 commit comments

Comments
 (0)