Skip to content

Commit

Permalink
Fixed SPI declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
pichenettes committed Apr 30, 2011
1 parent 3933dd2 commit 046a1ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions devices/mcp492x.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enum DacVoltageReference {
UNBUFFERED_REFERENCE
};

template<uint8_t slave_select_pin,
template<typename slave_select,
DacVoltageReference voltage_reference = UNBUFFERED_REFERENCE,
uint8_t gain = 1>
class Dac {
Expand Down Expand Up @@ -70,7 +70,7 @@ class Dac {
}

private:
typedef SPIMaster<slave_select_pin, MSB_FIRST, kDacSpeed> DacInterface;
typedef SpiMaster<slave_select, MSB_FIRST, kDacSpeed> DacInterface;
};

} // namespace avrlib
Expand Down
4 changes: 2 additions & 2 deletions spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ typedef BitInRegister<SPSRRegister, SPIF> TransferComplete;
template<typename SlaveSelect,
DataOrder order = MSB_FIRST,
uint8_t speed = 4>
class SPIMaster {
class SpiMaster {
public:
enum {
buffer_size = 0,
Expand Down Expand Up @@ -105,7 +105,7 @@ class SPIMaster {
template<typename SlaveSelect,
DataOrder order = MSB_FIRST,
bool enable_interrupt = false>
class SPISlave {
class SpiSlave {
public:
enum {
buffer_size = 128,
Expand Down

0 comments on commit 046a1ef

Please sign in to comment.