Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
mega-xplained_pinmap.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2018 Matthew Blue <matthew.blue.neuro@gmail.com>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
/*
30
* DESCRIPTION Xplained API PIN PORT PIN
31
*/
32
#define J1_PIN1 GPIO_PIN(PORT_C, 1)
33
#define J1_PIN2 GPIO_PIN(PORT_C, 0)
34
#define J1_PIN3 GPIO_PIN(PORT_D, 0)
35
#define J1_PIN4 GPIO_PIN(PORT_D, 1)
36
#define J1_PIN5 GPIO_PIN(PORT_B, 4)
37
#define J1_PIN6 GPIO_PIN(PORT_B, 5)
38
#define J1_PIN7 GPIO_PIN(PORT_B, 6)
39
#define J1_PIN8 GPIO_PIN(PORT_B, 7)
40
41
#define J2_PIN1 GPIO_PIN(PORT_A, 0)
42
#define J2_PIN2 GPIO_PIN(PORT_A, 1)
43
#define J2_PIN3 GPIO_PIN(PORT_A, 2)
44
#define J2_PIN4 GPIO_PIN(PORT_A, 3)
45
#define J2_PIN5 GPIO_PIN(PORT_A, 4)
46
#define J2_PIN6 GPIO_PIN(PORT_A, 5)
47
#define J2_PIN7 GPIO_PIN(PORT_A, 6)
48
#define J2_PIN8 GPIO_PIN(PORT_A, 7)
49
50
#define J3_PIN1 GPIO_PIN(PORT_B, 0)
51
#define J3_PIN2 GPIO_PIN(PORT_B, 1)
52
#define J3_PIN3 GPIO_PIN(PORT_B, 2)
53
#define J3_PIN4 GPIO_PIN(PORT_B, 3)
54
#define J3_PIN5 GPIO_PIN(PORT_D, 4)
55
#define J3_PIN6 GPIO_PIN(PORT_D, 5)
56
#define J3_PIN7 GPIO_PIN(PORT_C, 4)
57
#define J3_PIN8 GPIO_PIN(PORT_C, 5)
58
59
#define J4_PIN1 GPIO_PIN(PORT_C, 1)
60
#define J4_PIN2 GPIO_PIN(PORT_C, 0)
61
#define J4_PIN3 GPIO_PIN(PORT_D, 2)
62
#define J4_PIN4 GPIO_PIN(PORT_D, 3)
63
#define J4_PIN5 GPIO_PIN(PORT_D, 4)
64
#define J4_PIN6 GPIO_PIN(PORT_B, 5)
65
#define J4_PIN7 GPIO_PIN(PORT_B, 6)
66
#define J4_PIN8 GPIO_PIN(PORT_B, 7)
69
#ifdef __cplusplus
70
}
71
#endif
72
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1