diff options
author | Florian.Heilmann <Florian.Heilmann@gmx.net> | 2018-10-26 09:42:06 +0200 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2018-10-27 10:34:28 -0400 |
commit | 99989a668faa7e2f5c7cd0aea9ccffeb71f9905c (patch) | |
tree | f9a49c3aac380008998650f89d16f4a5aeff1de7 /src/sam4e8e/internal.h | |
parent | 5a919c892abc04bedb9eaef4262f9ec02bb9d7fc (diff) | |
download | kutter-99989a668faa7e2f5c7cd0aea9ccffeb71f9905c.tar.gz kutter-99989a668faa7e2f5c7cd0aea9ccffeb71f9905c.tar.xz kutter-99989a668faa7e2f5c7cd0aea9ccffeb71f9905c.zip |
Implement I2C support in the SAM4E8E port
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
Diffstat (limited to 'src/sam4e8e/internal.h')
-rw-r--r-- | src/sam4e8e/internal.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sam4e8e/internal.h b/src/sam4e8e/internal.h new file mode 100644 index 00000000..025b6c70 --- /dev/null +++ b/src/sam4e8e/internal.h @@ -0,0 +1,18 @@ +#include "sam4e.h" + +// I2C pin definitions +#define TWI0_SCL_BANK 'A' +#define TWI0_SCL_PIN PIO_PA4A_TWCK0 +#define TWI0_SCL_PERIPH 'A' + +#define TWI0_SDA_BANK 'A' +#define TWI0_SDA_PIN PIO_PA3A_TWD0 +#define TWI0_SDA_PERIPH 'A' + +#define TWI1_SCL_BANK 'B' +#define TWI1_SCL_PIN PIO_PB5A_TWCK1 +#define TWI1_SCL_PERIPH 'A' + +#define TWI1_SDA_BANK 'B' +#define TWI1_SDA_PIN PIO_PB4A_TWD1 +#define TWI1_SDA_PERIPH 'A' |