Loading...
Searching...
No Matches
mega-xplained_pinmap.h File Reference

Mapping from MCU pins to Mega Xplained pins. More...

Detailed Description

Mapping from MCU pins to Mega Xplained pins.

You can use the defines in this file for simplified interaction with the Mega Xplained specific pin numbers.

Author
Matthew Blue matth.nosp@m.ew.b.nosp@m.lue.n.nosp@m.euro.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file mega-xplained_pinmap.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Mapping of MCU pins to Mega Xplained pins

#define J1_PIN1   GPIO_PIN(PORT_C, 1)
 
#define J1_PIN2   GPIO_PIN(PORT_C, 0)
 
#define J1_PIN3   GPIO_PIN(PORT_D, 0)
 
#define J1_PIN4   GPIO_PIN(PORT_D, 1)
 
#define J1_PIN5   GPIO_PIN(PORT_B, 4)
 
#define J1_PIN6   GPIO_PIN(PORT_B, 5)
 
#define J1_PIN7   GPIO_PIN(PORT_B, 6)
 
#define J1_PIN8   GPIO_PIN(PORT_B, 7)
 
#define J2_PIN1   GPIO_PIN(PORT_A, 0)
 
#define J2_PIN2   GPIO_PIN(PORT_A, 1)
 
#define J2_PIN3   GPIO_PIN(PORT_A, 2)
 
#define J2_PIN4   GPIO_PIN(PORT_A, 3)
 
#define J2_PIN5   GPIO_PIN(PORT_A, 4)
 
#define J2_PIN6   GPIO_PIN(PORT_A, 5)
 
#define J2_PIN7   GPIO_PIN(PORT_A, 6)
 
#define J2_PIN8   GPIO_PIN(PORT_A, 7)
 
#define J3_PIN1   GPIO_PIN(PORT_B, 0)
 
#define J3_PIN2   GPIO_PIN(PORT_B, 1)
 
#define J3_PIN3   GPIO_PIN(PORT_B, 2)
 
#define J3_PIN4   GPIO_PIN(PORT_B, 3)
 
#define J3_PIN5   GPIO_PIN(PORT_D, 4)
 
#define J3_PIN6   GPIO_PIN(PORT_D, 5)
 
#define J3_PIN7   GPIO_PIN(PORT_C, 4)
 
#define J3_PIN8   GPIO_PIN(PORT_C, 5)
 
#define J4_PIN1   GPIO_PIN(PORT_C, 1)
 
#define J4_PIN2   GPIO_PIN(PORT_C, 0)
 
#define J4_PIN3   GPIO_PIN(PORT_D, 2)
 
#define J4_PIN4   GPIO_PIN(PORT_D, 3)
 
#define J4_PIN5   GPIO_PIN(PORT_D, 4)
 
#define J4_PIN6   GPIO_PIN(PORT_B, 5)
 
#define J4_PIN7   GPIO_PIN(PORT_B, 6)
 
#define J4_PIN8   GPIO_PIN(PORT_B, 7)
 

Macro Definition Documentation

◆ J1_PIN1

#define J1_PIN1   GPIO_PIN(PORT_C, 1)

Definition at line 36 of file mega-xplained_pinmap.h.

◆ J1_PIN2

#define J1_PIN2   GPIO_PIN(PORT_C, 0)

Definition at line 37 of file mega-xplained_pinmap.h.

◆ J1_PIN3

#define J1_PIN3   GPIO_PIN(PORT_D, 0)

Definition at line 38 of file mega-xplained_pinmap.h.

◆ J1_PIN4

#define J1_PIN4   GPIO_PIN(PORT_D, 1)

Definition at line 39 of file mega-xplained_pinmap.h.

◆ J1_PIN5

#define J1_PIN5   GPIO_PIN(PORT_B, 4)

Definition at line 40 of file mega-xplained_pinmap.h.

◆ J1_PIN6

#define J1_PIN6   GPIO_PIN(PORT_B, 5)

Definition at line 41 of file mega-xplained_pinmap.h.

◆ J1_PIN7

#define J1_PIN7   GPIO_PIN(PORT_B, 6)

Definition at line 42 of file mega-xplained_pinmap.h.

◆ J1_PIN8

#define J1_PIN8   GPIO_PIN(PORT_B, 7)

Definition at line 43 of file mega-xplained_pinmap.h.

◆ J2_PIN1

#define J2_PIN1   GPIO_PIN(PORT_A, 0)

Definition at line 45 of file mega-xplained_pinmap.h.

◆ J2_PIN2

#define J2_PIN2   GPIO_PIN(PORT_A, 1)

Definition at line 46 of file mega-xplained_pinmap.h.

◆ J2_PIN3

#define J2_PIN3   GPIO_PIN(PORT_A, 2)

Definition at line 47 of file mega-xplained_pinmap.h.

◆ J2_PIN4

#define J2_PIN4   GPIO_PIN(PORT_A, 3)

Definition at line 48 of file mega-xplained_pinmap.h.

◆ J2_PIN5

#define J2_PIN5   GPIO_PIN(PORT_A, 4)

Definition at line 49 of file mega-xplained_pinmap.h.

◆ J2_PIN6

#define J2_PIN6   GPIO_PIN(PORT_A, 5)

Definition at line 50 of file mega-xplained_pinmap.h.

◆ J2_PIN7

#define J2_PIN7   GPIO_PIN(PORT_A, 6)

Definition at line 51 of file mega-xplained_pinmap.h.

◆ J2_PIN8

#define J2_PIN8   GPIO_PIN(PORT_A, 7)

Definition at line 52 of file mega-xplained_pinmap.h.

◆ J3_PIN1

#define J3_PIN1   GPIO_PIN(PORT_B, 0)

Definition at line 54 of file mega-xplained_pinmap.h.

◆ J3_PIN2

#define J3_PIN2   GPIO_PIN(PORT_B, 1)

Definition at line 55 of file mega-xplained_pinmap.h.

◆ J3_PIN3

#define J3_PIN3   GPIO_PIN(PORT_B, 2)

Definition at line 56 of file mega-xplained_pinmap.h.

◆ J3_PIN4

#define J3_PIN4   GPIO_PIN(PORT_B, 3)

Definition at line 57 of file mega-xplained_pinmap.h.

◆ J3_PIN5

#define J3_PIN5   GPIO_PIN(PORT_D, 4)

Definition at line 58 of file mega-xplained_pinmap.h.

◆ J3_PIN6

#define J3_PIN6   GPIO_PIN(PORT_D, 5)

Definition at line 59 of file mega-xplained_pinmap.h.

◆ J3_PIN7

#define J3_PIN7   GPIO_PIN(PORT_C, 4)

Definition at line 60 of file mega-xplained_pinmap.h.

◆ J3_PIN8

#define J3_PIN8   GPIO_PIN(PORT_C, 5)

Definition at line 61 of file mega-xplained_pinmap.h.

◆ J4_PIN1

#define J4_PIN1   GPIO_PIN(PORT_C, 1)

Definition at line 63 of file mega-xplained_pinmap.h.

◆ J4_PIN2

#define J4_PIN2   GPIO_PIN(PORT_C, 0)

Definition at line 64 of file mega-xplained_pinmap.h.

◆ J4_PIN3

#define J4_PIN3   GPIO_PIN(PORT_D, 2)

Definition at line 65 of file mega-xplained_pinmap.h.

◆ J4_PIN4

#define J4_PIN4   GPIO_PIN(PORT_D, 3)

Definition at line 66 of file mega-xplained_pinmap.h.

◆ J4_PIN5

#define J4_PIN5   GPIO_PIN(PORT_D, 4)

Definition at line 67 of file mega-xplained_pinmap.h.

◆ J4_PIN6

#define J4_PIN6   GPIO_PIN(PORT_B, 5)

Definition at line 68 of file mega-xplained_pinmap.h.

◆ J4_PIN7

#define J4_PIN7   GPIO_PIN(PORT_B, 6)

Definition at line 69 of file mega-xplained_pinmap.h.

◆ J4_PIN8

#define J4_PIN8   GPIO_PIN(PORT_B, 7)

Definition at line 70 of file mega-xplained_pinmap.h.