Loading...
Searching...
No Matches
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
22#ifndef MEGA_XPLAINED_PINMAP_H
23#define MEGA_XPLAINED_PINMAP_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33/*
34 * DESCRIPTION Xplained API PIN PORT PIN
35 */
36#define J1_PIN1 GPIO_PIN(PORT_C, 1)
37#define J1_PIN2 GPIO_PIN(PORT_C, 0)
38#define J1_PIN3 GPIO_PIN(PORT_D, 0)
39#define J1_PIN4 GPIO_PIN(PORT_D, 1)
40#define J1_PIN5 GPIO_PIN(PORT_B, 4)
41#define J1_PIN6 GPIO_PIN(PORT_B, 5)
42#define J1_PIN7 GPIO_PIN(PORT_B, 6)
43#define J1_PIN8 GPIO_PIN(PORT_B, 7)
44
45#define J2_PIN1 GPIO_PIN(PORT_A, 0)
46#define J2_PIN2 GPIO_PIN(PORT_A, 1)
47#define J2_PIN3 GPIO_PIN(PORT_A, 2)
48#define J2_PIN4 GPIO_PIN(PORT_A, 3)
49#define J2_PIN5 GPIO_PIN(PORT_A, 4)
50#define J2_PIN6 GPIO_PIN(PORT_A, 5)
51#define J2_PIN7 GPIO_PIN(PORT_A, 6)
52#define J2_PIN8 GPIO_PIN(PORT_A, 7)
53
54#define J3_PIN1 GPIO_PIN(PORT_B, 0)
55#define J3_PIN2 GPIO_PIN(PORT_B, 1)
56#define J3_PIN3 GPIO_PIN(PORT_B, 2)
57#define J3_PIN4 GPIO_PIN(PORT_B, 3)
58#define J3_PIN5 GPIO_PIN(PORT_D, 4)
59#define J3_PIN6 GPIO_PIN(PORT_D, 5)
60#define J3_PIN7 GPIO_PIN(PORT_C, 4)
61#define J3_PIN8 GPIO_PIN(PORT_C, 5)
62
63#define J4_PIN1 GPIO_PIN(PORT_C, 1)
64#define J4_PIN2 GPIO_PIN(PORT_C, 0)
65#define J4_PIN3 GPIO_PIN(PORT_D, 2)
66#define J4_PIN4 GPIO_PIN(PORT_D, 3)
67#define J4_PIN5 GPIO_PIN(PORT_D, 4)
68#define J4_PIN6 GPIO_PIN(PORT_B, 5)
69#define J4_PIN7 GPIO_PIN(PORT_B, 6)
70#define J4_PIN8 GPIO_PIN(PORT_B, 7)
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* MEGA_XPLAINED_PINMAP_H */