Skip to content

Commit

Permalink
Added declarations of ports for UART SPI on ATMega644p
Browse files Browse the repository at this point in the history
  • Loading branch information
pichenettes committed May 2, 2011
1 parent 6f4a1bb commit 777fe29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ typedef Gpio<PortB, 6> SpiMISO;
typedef Gpio<PortB, 5> SpiMOSI;
typedef Gpio<PortB, 4> SpiSS;

typedef Gpio<PortB, 0> UartSpiXCK;
typedef Gpio<PortD, 1> UartSpiTX;
typedef Gpio<PortD, 0> UartSpiRX;

#else

// Pin definitions for ATmega168p and ATmega328p
Expand Down
1 change: 0 additions & 1 deletion spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ class UartSpiMaster {
UDR0 = v;
}


static inline void WriteWord(uint8_t a, uint8_t b) {
SlaveSelect::Low();
Overwrite(a);
Expand Down

0 comments on commit 777fe29

Please sign in to comment.