Skip to content

Commit 20e002a

Browse files
authored
Merge pull request #64 from Neotron-Compute/release/v0.5.1
Release/v0.5.1
2 parents 0bbcf4b + e6afaed commit 20e002a

File tree

11 files changed

+664
-258
lines changed

11 files changed

+664
-258
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: Neotron-Compute
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
* None
66

7+
## v0.5.1 ([Source](https://github.com/neotron-compute/neotron-pico-bios/tree/v0.5.1) | [Release](https://github.com/neotron-compute/neotron-pico-bios/release/tag/v0.5.1))
8+
9+
* Implement SD Card block read/write
10+
* SPI bus clock changes depending on which device is being accessed
11+
* Updated to OS 0.3.3
12+
* Running `git` in `build.rs` is now optional
13+
714
## v0.5.0 ([Source](https://github.com/neotron-compute/neotron-pico-bios/tree/v0.5.0) | [Release](https://github.com/neotron-compute/neotron-pico-bios/release/tag/v0.5.0))
815

916
* Full-colour 80 column text

Cargo.lock

Lines changed: 19 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ resolver = "2"
55
readme = "README.md"
66
license = "GPL-3.0-or-later"
77
name = "neotron-pico-bios"
8-
version = "0.5.0"
8+
version = "0.5.1"
99

1010
[dependencies]
1111
# Useful Cortex-M specific functions (e.g. SysTick)
1212
cortex-m = "0.7"
1313
# The Raspberry Pi Pico HAL
14-
rp-pico = { version = "0.6", default-features = false, features = [ "rt", "critical-section-impl", "rom-func-cache" ] }
14+
rp-pico = { version = "0.7", default-features = false, features = [ "rt", "critical-section-impl", "rom-func-cache" ] }
1515
# Cortex-M run-time (or start-up) code
1616
cortex-m-rt = "0.7"
1717
# The BIOS to OS API
@@ -51,7 +51,7 @@ shared-bus = "0.2"
5151
# Gets us compare-swap atomic operations
5252
atomic-polyfill = "1.0.2"
5353
# SD Card driver
54-
embedded-sdmmc = { version = "0.4", default-features = false, features = ["defmt-log"] }
54+
embedded-sdmmc = { version = "0.5", default-features = false, features = ["defmt-log"] }
5555

5656
[[bin]]
5757
name = "neotron-pico-bios"
@@ -69,6 +69,3 @@ lto = true
6969
# good choice for performance on the RP2040, where code executes from external
7070
# SPI Flash and has to be buffered in a small on-chip cache memory.
7171
opt-level = "s"
72-
73-
[patch.crates-io]
74-
rp2040-boot2 = { version = "0.3.0", git = "https://github.com/rp-rs/rp2040-boot2" }

build.rs

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,25 @@ fn main() {
3030
println!("cargo:rerun-if-changed=memory.x");
3131

3232
// Generate a file containing the firmware version
33-
let version_output = std::process::Command::new("git")
33+
let mut output;
34+
if let Ok(version_output) = std::process::Command::new("git")
3435
.current_dir(env::var_os("CARGO_MANIFEST_DIR").unwrap())
3536
.args(["describe", "--tags", "--dirty"])
3637
.output()
37-
.expect("running git-describe");
38-
39-
println!(
40-
"Version is {:?}",
41-
std::str::from_utf8(&version_output.stdout)
42-
);
43-
println!("Error is {:?}", std::str::from_utf8(&version_output.stderr));
44-
assert!(version_output.status.success());
45-
46-
// Remove the trailing newline
47-
let mut output = version_output.stdout;
48-
output.pop();
38+
{
39+
println!(
40+
"Version is {:?}",
41+
std::str::from_utf8(&version_output.stdout)
42+
);
43+
println!("Error is {:?}", std::str::from_utf8(&version_output.stderr));
44+
assert!(version_output.status.success());
45+
46+
// Remove the trailing newline
47+
output = version_output.stdout;
48+
output.pop();
49+
} else {
50+
output = String::from(env!("CARGO_PKG_VERSION")).into_bytes();
51+
}
4952

5053
// Add a null
5154
output.push(0);

0 commit comments

Comments
 (0)