From: aleph Date: Mon, 30 May 2011 13:46:38 +0000 (+0000) Subject: sam3x: add TWI I/O pins defines. X-Git-Tag: 2.7.0~29 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=a43e13073fe46b226b2bd12c1d96e480ef2db1f5;p=bertos.git sam3x: add TWI I/O pins defines. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4937 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/io/sam3.h b/bertos/cpu/cortex-m3/io/sam3.h index 59931f96..794b5bd8 100644 --- a/bertos/cpu/cortex-m3/io/sam3.h +++ b/bertos/cpu/cortex-m3/io/sam3.h @@ -246,7 +246,7 @@ /*\}*/ /** - * PIO I/O pins + * SPI I/O pins */ /*\{*/ #if CPU_CM3_SAM3U @@ -262,5 +262,21 @@ #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 */