Skip to content

Commit d7a01d5

Browse files
committed
Update dependencies to most recent versions. NFC.
1 parent 1dd3285 commit d7a01d5

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ version = "1.1.0"
1010
branch = "msp430-cs"
1111

1212
[dependencies.msp430]
13-
version = "0.4.0"
13+
version = "0.4.1"
1414

1515
[dependencies.bit_reverse]
16-
version = "0.1.7"
16+
version = "0.1.8"
1717
default_features = false
1818

1919
[dependencies.msp430-rt]
@@ -24,17 +24,17 @@ version = "0.4.0"
2424
features = ["critical-section", "rt"]
2525

2626
[dependencies.portable-atomic]
27-
version = "0.3.13"
27+
version = "1.1.0"
2828

2929
[dependencies.panic-msp430]
3030
version = "0.4.0"
3131

3232
[dependencies.once_cell]
33-
version = "1.7.0"
33+
version = "1.17.1"
3434
default_features = false
3535

3636
[dependencies.bitflags]
37-
version = "1.2.1"
37+
version = "2.0.1"
3838

3939
# Required for `cargo fix`.
4040
[[bin]]

src/driver.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use msp430g2211::generic::{Readable, Reg, RegisterSpec, Writable};
33
use msp430g2211::port_1_2::*;
44

55
bitflags! {
6+
#[derive(Clone, Copy)]
67
pub struct Pins: u8 {
78
const AT_CLK = 0b0000_0001;
89
const AT_DATA = 0b0001_0000;
@@ -12,16 +13,16 @@ bitflags! {
1213
const UNUSED_5 = 0b0010_0000;
1314
const UNUSED_6 = 0b0100_0000;
1415
const UNUSED_7 = 0b1000_0000;
15-
const AT_MASK = Self::AT_CLK.bits | Self::AT_DATA.bits;
16-
const XT_MASK = Self::XT_CLK.bits | Self::XT_DATA.bits;
16+
const AT_MASK = Self::AT_CLK.bits() | Self::AT_DATA.bits();
17+
const XT_MASK = Self::XT_CLK.bits() | Self::XT_DATA.bits();
1718
}
1819
}
1920

2021
macro_rules! from_impl_for_pins {
2122
($t:ty) => {
2223
impl From<$t> for Pins {
2324
fn from(r: $t) -> Self {
24-
Pins::from_bits_truncate(r.bits())
25+
Pins::from_bits_retain(r.bits())
2526
}
2627
}
2728
};

src/keyfsm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl Cmd {
4040
}
4141

4242
bitflags! {
43-
#[derive(Default)]
43+
#[derive(Default, Clone, Copy)]
4444
pub struct LedMask: u8 {
4545
const SCROLL = 0b0000_0001;
4646
const NUM = 0b0000_0010;

0 commit comments

Comments
 (0)