Permalink
Browse files

Added second DSPI channel (SPI3) to the Fubraino SD definition

Former-commit-id: 12b160a
  • Loading branch information...
1 parent c7e8438 commit c2dd62c42a727b91963d2bba4156fac7733331c5 @majenkotech majenkotech committed Sep 14, 2013
Showing with 11 additions and 1 deletion.
  1. +11 −1 hardware/pic32/variants/Fubarino_SD/Board_Defs.h
@@ -69,7 +69,7 @@
#define NUM_SPI_PORTS 1
#define NUM_I2C_PORTS 1
-#define NUM_DSPI_PORTS 1
+#define NUM_DSPI_PORTS 2
#define NUM_DTWI_PORTS 2
/* Define I/O devices on the board.
@@ -163,6 +163,7 @@ const static uint8_t SCK = 102; // PIC32 SCK2
*/
/// TODO: For Fubarino, do we need these?
#define PIN_DSPI0_SS 105
+#define PIN_DSPI1_SS 1
/* ------------------------------------------------------------ */
/* Analog Pins */
@@ -359,6 +360,15 @@ extern const uint8_t analog_pin_to_channel_PGM[];
#define _DSPI0_IPL _SPI2_IPL_IPC
#define _DSPI0_SPL _SPI2_SPL_IPC
+#define _DSPI1_BASE _SPI3_BASE_ADDRESS
+#define _DSPI1_ERR_IRQ _SPI3_ERR_IRQ
+#define _DSPI1_RX_IRQ _SPI3_RX_IRQ
+#define _DSPI1_TX_IRQ _SPI3_TX_IRQ
+#define _DSPI1_VECTOR _SPI_3_VECTOR
+#define _DSPI1_IPL_ISR _SPI3_IPL_ISR
+#define _DSPI1_IPL _SPI3_IPL_IPC
+#define _DSPI1_SPL _SPI3_SPL_IPC
+
/* ------------------------------------------------------------ */
/* I2C Port Declarations */
/* ------------------------------------------------------------ */

0 comments on commit c2dd62c

Please sign in to comment.