mega-xplained_pinmap.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Matthew Blue <matthew.blue.neuro@gmail.com>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 /*
33  * DESCRIPTION Xplained API PIN PORT PIN
34  */
35 #define J1_PIN1 GPIO_PIN(PORT_C, 1)
36 #define J1_PIN2 GPIO_PIN(PORT_C, 0)
37 #define J1_PIN3 GPIO_PIN(PORT_D, 0)
38 #define J1_PIN4 GPIO_PIN(PORT_D, 1)
39 #define J1_PIN5 GPIO_PIN(PORT_B, 4)
40 #define J1_PIN6 GPIO_PIN(PORT_B, 5)
41 #define J1_PIN7 GPIO_PIN(PORT_B, 6)
42 #define J1_PIN8 GPIO_PIN(PORT_B, 7)
43 
44 #define J2_PIN1 GPIO_PIN(PORT_A, 0)
45 #define J2_PIN2 GPIO_PIN(PORT_A, 1)
46 #define J2_PIN3 GPIO_PIN(PORT_A, 2)
47 #define J2_PIN4 GPIO_PIN(PORT_A, 3)
48 #define J2_PIN5 GPIO_PIN(PORT_A, 4)
49 #define J2_PIN6 GPIO_PIN(PORT_A, 5)
50 #define J2_PIN7 GPIO_PIN(PORT_A, 6)
51 #define J2_PIN8 GPIO_PIN(PORT_A, 7)
52 
53 #define J3_PIN1 GPIO_PIN(PORT_B, 0)
54 #define J3_PIN2 GPIO_PIN(PORT_B, 1)
55 #define J3_PIN3 GPIO_PIN(PORT_B, 2)
56 #define J3_PIN4 GPIO_PIN(PORT_B, 3)
57 #define J3_PIN5 GPIO_PIN(PORT_D, 4)
58 #define J3_PIN6 GPIO_PIN(PORT_D, 5)
59 #define J3_PIN7 GPIO_PIN(PORT_C, 4)
60 #define J3_PIN8 GPIO_PIN(PORT_C, 5)
61 
62 #define J4_PIN1 GPIO_PIN(PORT_C, 1)
63 #define J4_PIN2 GPIO_PIN(PORT_C, 0)
64 #define J4_PIN3 GPIO_PIN(PORT_D, 2)
65 #define J4_PIN4 GPIO_PIN(PORT_D, 3)
66 #define J4_PIN5 GPIO_PIN(PORT_D, 4)
67 #define J4_PIN6 GPIO_PIN(PORT_B, 5)
68 #define J4_PIN7 GPIO_PIN(PORT_B, 6)
69 #define J4_PIN8 GPIO_PIN(PORT_B, 7)
72 #ifdef __cplusplus
73 }
74 #endif
75