aboutsummaryrefslogtreecommitdiffstats
path: root/boards
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-02-05 00:22:14 +1000
committerinmarket <andrewh@inmarket.com.au>2015-02-05 00:22:14 +1000
commita7bf3da17b0b6533777d75811f9d8c13fb346e9b (patch)
tree0c419af9ac1076fd5da37be9d8e4d9488e357fe1 /boards
parente63fab2ace9f981f3eb021b362a88ba322455053 (diff)
downloaduGFX-a7bf3da17b0b6533777d75811f9d8c13fb346e9b.tar.gz
uGFX-a7bf3da17b0b6533777d75811f9d8c13fb346e9b.tar.bz2
uGFX-a7bf3da17b0b6533777d75811f9d8c13fb346e9b.zip
Add UEXT connector definitions for the SAM7EX256 board.
Diffstat (limited to 'boards')
-rw-r--r--boards/base/Olimex-SAM7EX256-GE8/board_uext.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/boards/base/Olimex-SAM7EX256-GE8/board_uext.h b/boards/base/Olimex-SAM7EX256-GE8/board_uext.h
new file mode 100644
index 00000000..f82eedc8
--- /dev/null
+++ b/boards/base/Olimex-SAM7EX256-GE8/board_uext.h
@@ -0,0 +1,63 @@
+/*
+ * This file is subject to the terms of the GFX License. If a copy of
+ * the license was not distributed with this file, you can obtain one at:
+ *
+ * http://ugfx.org/license.html
+ */
+
+/**
+ * @file boards/base/Olimex-SAM7EX256-GE8/board_uext.h
+ * @brief Definitions describing the UEXT interface
+ */
+
+#ifndef _BOARD_UEXT_H
+#define _BOARD_UEXT_H
+
+// These definitions match the physical arrangement of the UEXT on your board
+#define UEXT_PORT_PIN3 AT91C_BASE_PIOA
+#define UEXT_PORTPIN_PIN3 6
+#define UEXT_PORT_PIN4 AT91C_BASE_PIOA
+#define UEXT_PORTPIN_PIN4 5
+#define UEXT_PORT_PIN5 AT91C_BASE_PIOA
+#define UEXT_PORTPIN_PIN5 11
+#define UEXT_PORT_PIN6 AT91C_BASE_PIOA
+#define UEXT_PORTPIN_PIN6 10
+#define UEXT_PORT_PIN7 AT91C_BASE_PIOA
+#define UEXT_PORTPIN_PIN7 24
+#define UEXT_PORT_PIN8 AT91C_BASE_PIOA
+#define UEXT_PORTPIN_PIN8 23
+#define UEXT_PORT_PIN9 AT91C_BASE_PIOA
+#define UEXT_PORTPIN_PIN9 22
+#define UEXT_PORT_PIN10 AT91C_BASE_PIOA
+#define UEXT_PORTPIN_PIN10 21
+
+
+#define UEXT_SERIAL (&SD2) // TX = UEXT PIN 3, RX = UEXT PIN 4
+#define UEXT_SPI (&SPID2) // MISO = UEXT PIN 7, MOSI = UEXT PIN 8, SCK = UEXT PIN 9, CS = UEXT PIN 10
+#define UEXT_I2C (&I2CD1) // TWCK = UEXT PIN 5, TWD = UEXT PIN 6
+
+#define UEXT_SPI_MISO_PORT UEXT_PORT_PIN7
+#define UEXT_SPI_MISO_PORTPIN UEXT_PORTPIN_PIN7
+#define UEXT_SPI_MOSI_PORT UEXT_PORT_PIN8
+#define UEXT_SPI_MOSI_PORTPIN UEXT_PORTPIN_PIN8
+#define UEXT_SPI_SCK_PORT UEXT_PORT_PIN9
+#define UEXT_SPI_SCK_PORTPIN UEXT_PORTPIN_PIN9
+#define UEXT_SPI_CS_PORT UEXT_PORT_PIN10
+#define UEXT_SPI_CS_PORTPIN UEXT_PORTPIN_PIN10
+
+#define UEXT_I2C_SCL_PORT UEXT_PORT_PIN5
+#define UEXT_I2C_SCL_PORTPIN UEXT_PORTPIN_PIN5
+#define UEXT_I2C_SDA_PORT UEXT_PORT_PIN6
+#define UEXT_I2C_SDA_PORTPIN UEXT_PORTPIN_PIN6
+
+#define UEXT_SERIAL_TX_PORT UEXT_PORT_PIN3
+#define UEXT_SERIAL_TX_PORTPIN UEXT_PORTPIN_PIN3
+#define UEXT_SERIAL_RX_PORT UEXT_PORT_PIN4
+#define UEXT_SERIAL_RX_PORTPIN UEXT_PORTPIN_PIN4
+
+#define UEXT_I2C_TWCK_PORT UEXT_PORT_PIN5
+#define UEXT_I2C_TWCK_PORTPIN UEXT_PORTPIN_PIN5
+#define UEXT_I2C_TWD_PORT UEXT_PORT_PIN6
+#define UEXT_I2C_TWD_PORTPIN UEXT_PORTPIN_PIN6
+
+#endif /* _BOARD_UEXT_H */