Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: inre/cupi
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: sutajiokousagi/cupi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jun 10, 2017

  1. Copy the full SHA
    86ca944 View commit details
Showing with 3 additions and 0 deletions.
  1. +2 −0 src/board.rs
  2. +1 −0 src/mcp23x17/mod.rs
2 changes: 2 additions & 0 deletions src/board.rs
Original file line number Diff line number Diff line change
@@ -169,10 +169,12 @@ pub fn board() -> Board {
Some(hardware) => match hardware.as_str() {
"BCM2708" => CPU::BCM2708,
"BCM2709" => CPU::BCM2709,
"BCM2835" => CPU::BCM2709,
_ => CPU::Unknown
},
_ => CPU::Unknown
};

match cpuinfo.0.get("Revision") {
Some(ref rev) => {
match u64::from_str_radix(rev, 16) {
1 change: 1 addition & 0 deletions src/mcp23x17/mod.rs
Original file line number Diff line number Diff line change
@@ -65,6 +65,7 @@ const CMD_WRITE: usize = 0x40;
const CMD_READ: usize = 0x41;

bitflags! {
// struct Flags: u8 { // IOCONRegister
flags IOCONRegister: u8 {
const IOCON_UNUSED = 0x01,
const IOCON_INTPOL = 0x02,