Skip to content

Commit 3bb8ca2

Browse files
committed
Fix: merge conflict
2 parents 4890450 + e713c8d commit 3bb8ca2

File tree

8 files changed

+257
-410
lines changed

8 files changed

+257
-410
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
*/target
22
target/
3-
Cargo.lock
4-
*Cargo.lock
3+
*Cargo.lock*
4+
*/Cargo.lock

neotron-bmc-pico/Cargo.toml

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
authors = ["Jonathan 'theJPster' Pallant <[email protected]>"]
3-
name = "neotron-bmc-pico"
3+
name = "neotron-bmc"
44
edition = "2018"
55
version = "0.2.0"
66

@@ -9,14 +9,15 @@ cortex-m = "0.7.1"
99
cortex-m-rt = "0.6.13"
1010
defmt = "0.2.0"
1111
defmt-rtt = "0.2.0"
12-
cortex-m-rtic = "0.5"
12+
cortex-m-rtic = "1.0"
1313
panic-probe = { version = "0.2.0", features = ["print-defmt"] }
1414
# Use this line if you have an STM32F030K6T6
1515
# stm32f0xx-hal = { version = "0.17", features = ["stm32f030x6", "rt"] }
1616
# Use this line if you have an STM32F031K6T6
1717
stm32f0xx-hal = { version = "0.17", features = ["stm32f031", "rt"] }
1818
debouncr = "0.2"
19-
heapless= "0.6"
19+
heapless= "0.7"
20+
fugit = "0.3"
2021

2122
[features]
2223
# set logging levels here
@@ -33,3 +34,48 @@ defmt-info = []
3334
defmt-warn = []
3435
defmt-error = []
3536

37+
# cargo build/run
38+
[profile.dev]
39+
codegen-units = 1
40+
debug = 2
41+
debug-assertions = true # <-
42+
incremental = false
43+
opt-level = 3 # <-
44+
overflow-checks = true # <-
45+
46+
# cargo test
47+
[profile.test]
48+
codegen-units = 1
49+
debug = 2
50+
debug-assertions = true # <-
51+
incremental = false
52+
opt-level = 3 # <-
53+
overflow-checks = true # <-
54+
55+
# cargo build/run --release
56+
[profile.release]
57+
codegen-units = 1
58+
debug = 2
59+
debug-assertions = false # <-
60+
incremental = false
61+
lto = 'fat'
62+
opt-level = 3 # <-
63+
overflow-checks = false # <-
64+
65+
# cargo test --release
66+
[profile.bench]
67+
codegen-units = 1
68+
debug = 2
69+
debug-assertions = false # <-
70+
incremental = false
71+
lto = 'fat'
72+
opt-level = 3 # <-
73+
overflow-checks = false # <-
74+
75+
# uncomment this to switch from the crates.io version of defmt to its git version
76+
# check app-template's README for instructions
77+
# [patch.crates-io]
78+
# defmt = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
79+
# defmt-rtt = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
80+
# defmt-test = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
81+
# panic-probe = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }

neotron-bmc-pico/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ Then to build and flash, connect a probe supported by probe-rs (such as a SEGGER
2222

2323
```
2424
$ cargo run --release
25-
```
25+
```

neotron-bmc-pico/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//! This is the build-script for the Neotron BMC.
2-
//!
3-
//! It just copies the memory.x file somewhere Cargo can find it, then generates a version header.
1+
/// This is the build-script for the Neotron BMC.
2+
///
3+
/// It just copies the memory.x file somewhere Cargo can find it, then generates a version header.
44
use std::env;
55
use std::fs::File;
66
use std::io::Write;

neotron-bmc-pico/openocd.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This script assumes you have an ST-Link connected to the debug header on the Neotron BMC.
2+
3+
source [find interface/stlink.cfg]
4+
5+
transport select hla_swd
6+
7+
set WORKAREASIZE 0x2000
8+
source [find target/stm32f0x.cfg]
9+
10+
reset_config srst_only

neotron-bmc-pico/rustfmt.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hard_tabs = true
2+

0 commit comments

Comments
 (0)