Skip to content

Commit

Permalink
Merge branch 'master' into try
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp authored Jul 10, 2024
2 parents 2dfeb8a + b706c76 commit b7c1012
Show file tree
Hide file tree
Showing 3 changed files with 6 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
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- Add `try_send_raw` and `try_receive` ([#34](https://github.com/rust-osdev/uart_16550/pull/34))
- Update bitflags dependency to version 2 ([#33](https://github.com/rust-osdev/uart_16550/pull/33))

# 0.3.0 – 2023-08-04

Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,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 @@ -100,6 +102,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 b7c1012

Please sign in to comment.