Skip to content

Commit 89b7775

Browse files
author
Nathan Seidle
committed
Reduce interfaces on mega variant
Mega doesn't specifically call out other I2C pins so we need only 1 I2C and 1 SPI port defined. I made the original change to 6 a few commits back. This undoes my bad work.
1 parent 9d744aa commit 89b7775

File tree

1 file changed

+2
-2
lines changed
  • variants/SparkFun_BlackBoard_Artemis_Mega/config

1 file changed

+2
-2
lines changed

variants/SparkFun_BlackBoard_Artemis_Mega/config/variant.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ extern Uart Serial;
3535
extern Uart Serial1;
3636

3737
// Wire defines
38-
#define WIRE_INTERFACES_COUNT 6
38+
#define WIRE_INTERFACES_COUNT 1
3939

4040
#define WireQwiic Wire // Giving Wire an alias of "WireQwiic" in case people want to use it
4141
#define AP3_Wire_IOM 4 // Secify that Wire uses IOMaster instance 4
4242

4343
// SPI Defines
44-
#define SPI_INTERFACES_COUNT 6
44+
#define SPI_INTERFACES_COUNT 1
4545

4646
#define AP3_SPI_IOM 0 // Specify that SPI uses IOMaster 0
4747
#define AP3_SPI_DUP ap3_spi_full_duplex // Specify that SPI is full-duplex (as opposed to ap3_spi_tx_only or ap3_spi_rx_only)

0 commit comments

Comments
 (0)