Skip to content

Commit

Permalink
Merge pull request #28 from denravonska/master
Browse files Browse the repository at this point in the history
Fix use of incorrect define when checking the number of available SPI…
  • Loading branch information
kblomqvist committed Dec 4, 2015
2 parents 1061ca6 + e9a7742 commit 4008dd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aery32/aery32/spi.h
Expand Up @@ -36,7 +36,7 @@ namespace aery {
*/
extern volatile avr32_spi_t *spi0;

#if AVR32_NUM_SPI > 1
#if AVR32_SPI_NUM > 1
/**
* Pointer to the internal Serial peripheral interdace module register 1
*/
Expand Down
4 changes: 2 additions & 2 deletions aery32/spi.cpp
Expand Up @@ -20,14 +20,14 @@

namespace aery {
volatile avr32_spi_t *spi0 = &AVR32_SPI0;
#if AVR32_NUM_SPI > 1
#if AVR32_SPI_NUM > 1
volatile avr32_spi_t *spi1 = &AVR32_SPI1;
#endif

volatile uint32_t __spi_lsr[] =
{
AVR32_SPI0.sr,
#if AVR32_NUM_SPI > 1
#if AVR32_SPI_NUM > 1
AVR32_SPI1.sr
#endif
};
Expand Down

0 comments on commit 4008dd6

Please sign in to comment.