Skip to content

Commit

Permalink
Fixed addresses in 'mcp23x08.hpp'
Browse files Browse the repository at this point in the history
  • Loading branch information
Wicker25 committed Mar 2, 2014
1 parent 5beaf39 commit db4d9c0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cmake_minimum_required( VERSION 2.6 )
# Set the version of the library
set( RPI_HW_VERSION_MAJOR 0 )
set( RPI_HW_VERSION_MINOR 7 )
set( RPI_HW_VERSION_PATCH 2 )
set( RPI_HW_VERSION_PATCH 3 )
set( RPI_HW_VERSION "${RPI_HW_VERSION_MAJOR}.${RPI_HW_VERSION_MINOR}.${RPI_HW_VERSION_PATCH}" )

# Project directories
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
ChangeLog of Rpi-hw - A free C++ library designed to manage the Raspberry Pi's GPIO connector and its other buses.

============ Rpi-hw 0.7.3 - urgency=high ===========

2014-03-02 Wicker25 < [email protected] >

* mcp23x08.hpp: Fixed addresses of the registers.

============ Rpi-hw 0.7.2 - urgency=low ===========

2013-12-26 Wicker25 < [email protected] >
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Rpi-hw v0.7.2
Rpi-hw v0.7.3
=============

[Rpi-hw](http://hackyourmind.org/projects/rpi-hw) (short for "Raspberry Pi Hardware") is a free C++ library
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.2
0.7.3
20 changes: 10 additions & 10 deletions include/rpi-hw/driver/mcp23x08.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ class mcp23x08 : public io_expander {
enum Registers {

IODIR = 0x00, //!< Controls the direction of the data I/O.
IPOL = 0x02, //!< Configures the polarity on the corresponding GPIO port bits.
GPINTEN = 0x04, //!< Controls the interrupt-on-change feature for each pin
DEFVAL = 0x06, //!< Sets the default comparison value.
INTCON = 0x08, //!< Controls how the associated pin value is compared for the interrupt-on-change feature.
IOCON = 0x0a, //!< Configures the device.
GPPU = 0x0c, //!< Controls the pull-up resistors for the port pins.
INTF = 0x0e, //!< Reflects the interrupt condition on the port pins of any pin that is enabled for interrupts.
INTCAP = 0x10, //!< Captures the GPIO port value at the time the interrupt occurred.
GPIO = 0x12, //!< Reflects the value on the port.
OLAT = 0x14, //!< Provides access to the output latches.
IPOL = 0x01, //!< Configures the polarity on the corresponding GPIO port bits.
GPINTEN = 0x02, //!< Controls the interrupt-on-change feature for each pin
DEFVAL = 0x03, //!< Sets the default comparison value.
INTCON = 0x04, //!< Controls how the associated pin value is compared for the interrupt-on-change feature.
IOCON = 0x05, //!< Configures the device.
GPPU = 0x06, //!< Controls the pull-up resistors for the port pins.
INTF = 0x07, //!< Reflects the interrupt condition on the port pins of any pin that is enabled for interrupts.
INTCAP = 0x08, //!< Captures the GPIO port value at the time the interrupt occurred.
GPIO = 0x09, //!< Reflects the value on the port.
OLAT = 0x0a //!< Provides access to the output latches.
};

//! The controller configuration set (bit flags).
Expand Down

0 comments on commit db4d9c0

Please sign in to comment.