File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ defmt = "0.2"
2727defmt-rtt = " 0.2"
2828# Send panics to the debugger
2929panic-probe = " 0.2"
30+ # Fetches the BIOS version from git
31+ git-version = " 0.3"
3032
3133[features ]
3234default = [
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ use defmt::*;
4242use defmt_rtt as _;
4343use embedded_hal:: digital:: v2:: OutputPin ;
4444use embedded_time:: rate:: * ;
45+ use git_version:: git_version;
4546use hal:: clocks:: Clock ;
4647use panic_probe as _;
4748use pico;
@@ -62,6 +63,9 @@ use pico::hal::pac;
6263#[ used]
6364pub static BOOT2 : [ u8 ; 256 ] = rp2040_boot2:: BOOT_LOADER ;
6465
66+ /// BIOS version
67+ const GIT_VERSION : & str = git_version ! ( ) ;
68+
6569// -----------------------------------------------------------------------------
6670// Types
6771// -----------------------------------------------------------------------------
@@ -76,7 +80,7 @@ pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;
7680/// `.bss` and `.data` sections have been initialised.
7781#[ entry]
7882fn main ( ) -> ! {
79- info ! ( "Neotron BIOS starting..." ) ;
83+ info ! ( "Neotron BIOS {} starting..." , GIT_VERSION ) ;
8084
8185 // Grab the singleton containing all the RP2040 peripherals
8286 let mut pac = pac:: Peripherals :: take ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments