Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board_module.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Bas Stottelaar <basstottelaar@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
20
#ifndef BOARD_MODULE_H
21
#define BOARD_MODULE_H
22
23
#include "
periph/gpio.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
36
#define MODULE_PIN_F0 GPIO_PIN(PF, 1)
37
#define MODULE_PIN_F1 GPIO_PIN(PF, 0)
38
#define MODULE_PIN_F2 GPIO_PIN(PF, 2)
39
#define MODULE_PIN_F3 GPIO_PIN(PF, 3)
40
#define MODULE_PIN_F4 GPIO_UNDEF
41
#define MODULE_PIN_F5 GPIO_PIN(PA, 5)
42
#define MODULE_PIN_F6 GPIO_PIN(PA, 0)
43
#define MODULE_PIN_F7 GPIO_PIN(PA, 1)
44
#define MODULE_PIN_F8 GPIO_PIN(PA, 2)
45
#define MODULE_PIN_F9 GPIO_PIN(PA, 3)
46
#define MODULE_PIN_F10 GPIO_PIN(PF, 4)
47
#define MODULE_PIN_F11 GPIO_PIN(PF, 5)
48
#define MODULE_PIN_F12 GPIO_PIN(PF, 6)
49
#define MODULE_PIN_F13 GPIO_PIN(PF, 7)
50
#define MODULE_PIN_F14 GPIO_PIN(PD, 15)
51
#define MODULE_PIN_F15 GPIO_PIN(PC, 8)
52
#define MODULE_PIN_F16 GPIO_PIN(PC, 6)
53
#define MODULE_PIN_F17 GPIO_PIN(PD, 14)
54
#define MODULE_PIN_F18 GPIO_PIN(PD, 13)
55
#define MODULE_PIN_F19 GPIO_PIN(PB, 12)
56
#define MODULE_PIN_F20 GPIO_PIN(PB, 12)
57
#define MODULE_PIN_F21 GPIO_PIN(PB, 11)
58
#define MODULE_PIN_P0 GPIO_PIN(PD, 8)
59
#define MODULE_PIN_P1 GPIO_PIN(PA, 6)
60
#define MODULE_PIN_P2 GPIO_PIN(PD, 9)
61
#define MODULE_PIN_P3 GPIO_PIN(PA, 7)
62
#define MODULE_PIN_P4 GPIO_PIN(PD, 10)
63
#define MODULE_PIN_P5 GPIO_PIN(PA, 8)
64
#define MODULE_PIN_P6 GPIO_PIN(PD, 11)
65
#define MODULE_PIN_P7 GPIO_PIN(PA, 9)
66
#define MODULE_PIN_P8 GPIO_PIN(PD, 12)
67
#define MODULE_PIN_P9 GPIO_PIN(PB, 6)
68
#define MODULE_PIN_P10 GPIO_PIN(PC, 9)
69
#define MODULE_PIN_P11 GPIO_PIN(PB, 7)
70
#define MODULE_PIN_P12 GPIO_PIN(PC, 10)
71
#define MODULE_PIN_P13 GPIO_PIN(PC, 11)
72
#define MODULE_PIN_P14 GPIO_PIN(PB, 8)
73
#define MODULE_PIN_P15 GPIO_PIN(PB, 9)
74
#define MODULE_PIN_P16 GPIO_PIN(PC, 4)
75
#define MODULE_PIN_P17 GPIO_PIN(PC, 5)
76
#define MODULE_PIN_P18 GPIO_UNDEF
77
#define MODULE_PIN_P19 GPIO_UNDEF
78
#define MODULE_PIN_P20 GPIO_PIN(PF, 12)
79
#define MODULE_PIN_P21 GPIO_PIN(PF, 14)
80
#define MODULE_PIN_P22 GPIO_PIN(PF, 15)
81
#define MODULE_PIN_P23 GPIO_PIN(PI, 0)
82
#define MODULE_PIN_P24 GPIO_PIN(PI, 1)
83
#define MODULE_PIN_P25 GPIO_PIN(PI, 2)
84
#define MODULE_PIN_P26 GPIO_PIN(PI, 3)
85
#define MODULE_PIN_P27 GPIO_PIN(PJ, 14)
86
#define MODULE_PIN_P28 GPIO_PIN(PJ, 15)
87
#define MODULE_PIN_P29 GPIO_PIN(PK, 0)
88
#define MODULE_PIN_P30 GPIO_PIN(PK, 1)
89
#define MODULE_PIN_P31 GPIO_PIN(PK, 2)
90
#define MODULE_PIN_P32 GPIO_UNDEF
91
#define MODULE_PIN_P33 GPIO_PIN(PA, 0)
92
#define MODULE_PIN_P34 GPIO_PIN(PA, 1)
93
#define MODULE_PIN_P35 GPIO_PIN(PA, 2)
94
#define MODULE_PIN_P36 GPIO_PIN(PA, 3)
95
#define MODULE_PIN_P37 GPIO_PIN(PB, 10)
96
#define MODULE_PIN_P38 GPIO_UNDEF
97
#define MODULE_PIN_P39 GPIO_UNDEF
98
#define MODULE_PIN_P40 GPIO_UNDEF
99
#define MODULE_PIN_P41 GPIO_PIN(PF, 8)
100
#define MODULE_PIN_P42 GPIO_PIN(PF, 9)
101
#define MODULE_PIN_P43 GPIO_PIN(PF, 10)
102
#define MODULE_PIN_P44 GPIO_PIN(PF, 11)
103
#define MODULE_PIN_P45 GPIO_PIN(PF, 12)
106
#ifdef __cplusplus
107
}
108
#endif
109
110
#endif
/* BOARD_MODULE_H */
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sun Dec 22 2024 10:22:27 by
1.9.8