Skip to content

Commit

Permalink
Merge pull request #33 from mkroening/bitflags-update
Browse files Browse the repository at this point in the history
build(deps): update bitflags dependency to version 2
  • Loading branch information
phil-opp authored Jul 10, 2024
2 parents 378d468 + 2e48d1b commit b706c76
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repository = "https://github.com/rust-osdev/uart_16550"
edition = "2018"

[dependencies]
bitflags = "1.1.0"
bitflags = "2"
rustversion = "1.0.5"

[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
Expand Down
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

- Update bitflags dependency to version 2 ([#33](https://github.com/rust-osdev/uart_16550/pull/33))

# 0.3.0 – 2023-08-04

- Internal rewrite of port operations to work on both `x86` and `x86_64` ([#29](https://github.com/rust-osdev/uart_16550/pull/29))
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ pub use crate::port::SerialPort;

bitflags! {
/// Interrupt enable flags
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
struct IntEnFlags: u8 {
const RECEIVED = 1;
const SENT = 1 << 1;
Expand All @@ -95,6 +97,8 @@ bitflags! {

bitflags! {
/// Line status flags
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
struct LineStsFlags: u8 {
const INPUT_FULL = 1;
// 1 to 4 unknown
Expand Down

0 comments on commit b706c76

Please sign in to comment.