sam3x: add TWI I/O pins defines.
authoraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 30 May 2011 13:46:38 +0000 (13:46 +0000)
committeraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 30 May 2011 13:46:38 +0000 (13:46 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4937 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/io/sam3.h

index 59931f963c7e6eed0c4476d15c37613f76675ab3..794b5bd80438ab634d9231503b1f2527f3b57676 100644 (file)
 /*\}*/
 
 /**
- * PIO I/O pins
+ * SPI I/O pins
  */
 /*\{*/
 #if CPU_CM3_SAM3U
        #define SPI0_MOSI   13
        #define SPI0_MISO   12
 #endif
+/*\}*/
+
+/**
+ * TWI I/O pins
+ */
+/*\{*/
+#if CPU_CM3_SAM3X
+       #define TWI0_PORT   PIOA_BASE
+       #define TWI1_PORT   PIOA_BASE
+
+       #define TWI0_TWCK   18
+       #define TWI0_TWD    17
+       #define TWI1_TWCK   13
+       #define TWI1_TWD    12
+#endif
+
 /*\}*/
 #endif /* SAM3_H */