X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Fsam3.h;h=e80b101a9861966b96e89474a368456d0c7a8eb9;hb=3f6a028aff4ded1f1b9bc6201c552567e5c8b942;hp=9437c6110e54b77f5ae930fa420c7f505ad675b4;hpb=5d6e1feb6eb171345f5e36258bbc9763c580e1f9;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/sam3.h b/bertos/cpu/cortex-m3/io/sam3.h index 9437c611..e80b101a 100644 --- a/bertos/cpu/cortex-m3/io/sam3.h +++ b/bertos/cpu/cortex-m3/io/sam3.h @@ -170,6 +170,8 @@ #include "sam3_emac.h" #include "sam3_rstc.h" #include "sam3_adc.h" +#include "sam3_dacc.h" +#include "sam3_tc.h" /** * U(S)ART I/O pins @@ -244,7 +246,7 @@ /*\}*/ /** - * PIO I/O pins + * SPI I/O pins */ /*\{*/ #if CPU_CM3_SAM3U @@ -260,5 +262,24 @@ #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_PERIPH PIO_PERIPH_A + #define TWI1_PERIPH PIO_PERIPH_A + + #define TWI0_TWD 17 + #define TWI0_TWCK 18 + #define TWI1_TWD 12 + #define TWI1_TWCK 13 +#endif + /*\}*/ #endif /* SAM3_H */