From a43e13073fe46b226b2bd12c1d96e480ef2db1f5 Mon Sep 17 00:00:00 2001 From: aleph Date: Mon, 30 May 2011 13:46:38 +0000 Subject: [PATCH] sam3x: add TWI I/O pins defines. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4937 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/io/sam3.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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 */ -- 2.25.1