Why there is no TWI7 defined in samg5_xplained_pro.h for ASF for the SAMG55?

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I looked at the file samg55_xplained_pro.h and see the below #defines for all the TWI pins.  The SAMG55 has a TWI7 for peripheral B for pins PA27 and PA28.  Why there is no definition (like the below) for TWI7?  On a separate issue: According to the datasheet (Table 9-3),  TWI0 is listed under peripheral A with pins PA9 (TWCK0) and PA10 (TWD0).  But, per the below defines, TWI0's data line is PA9 and the clock line is PA10.  The datasheet has that in reverse!  Please advise.  Thanks!

/** TWI0 pin definitions */
#define TWI0_DATA_GPIO   PIO_PA9_IDX
#define TWI0_DATA_FLAGS  IOPORT_MODE_MUX_A
#define TWI0_CLK_GPIO    PIO_PA10_IDX
#define TWI0_CLK_FLAGS   IOPORT_MODE_MUX_A
/** TWI1 pin definitions */
#define TWI1_DATA_GPIO   PIO_PB2_IDX
#define TWI1_DATA_FLAGS  IOPORT_MODE_MUX_A
#define TWI1_CLK_GPIO    PIO_PB3_IDX
#define TWI1_CLK_FLAGS   IOPORT_MODE_MUX_A
/** TWI4 pin definitions */
#define TWI4_DATA_GPIO   EXT1_PIN_11
#define TWI4_DATA_FLAGS  IOPORT_MODE_MUX_A
#define TWI4_CLK_GPIO    EXT1_PIN_12
#define TWI4_CLK_FLAGS   IOPORT_MODE_MUX_A
/** TWI6 pin definitions */
#define TWI6_DATA_GPIO   EXT3_PIN_11
#define TWI6_DATA_FLAGS  IOPORT_MODE_MUX_B
#define TWI6_CLK_GPIO    EXT3_PIN_12
#define TWI6_CLK_FLAGS   IOPORT_MODE_MUX_B