mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-25 15:44:13 -06:00
Implement I2C support in the SAM4E8E port
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
This commit is contained in:
parent
5a919c892a
commit
99989a668f
5 changed files with 198 additions and 1 deletions
18
src/sam4e8e/internal.h
Normal file
18
src/sam4e8e/internal.h
Normal file
|
@ -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'
|
Loading…
Add table
Add a link
Reference in a new issue