-
Notifications
You must be signed in to change notification settings - Fork 52
/
beagleg-pin-mapping.h
55 lines (48 loc) · 2.36 KB
/
beagleg-pin-mapping.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// (c) 2013, 2014 Henner Zeller <[email protected]>
//
// This file is part of BeagleG. http://github.com/hzeller/beagleg
//
// BeagleG is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// BeagleG is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with BeagleG. If not, see <http://www.gnu.org/licenses/>.
//
// see motor-interface-constants.h for available PINs
// This contains the defines the GPIO mappings for BUMPS
// https://github.com/hzeller/bumps
#define MOTOR_1_STEP_GPIO PIN_P9_18 // motor 1
#define MOTOR_2_STEP_GPIO PIN_P9_17 // motor 2
#define MOTOR_3_STEP_GPIO PIN_P9_21 // motor 3
#define MOTOR_4_STEP_GPIO PIN_P9_42 // motor 4
#define MOTOR_5_STEP_GPIO PIN_P9_22 // motor 5
#define MOTOR_6_STEP_GPIO PIN_P9_26 // (extern 6)
#define MOTOR_7_STEP_GPIO PIN_P9_24 // (extern 7)
#define MOTOR_8_STEP_GPIO PIN_P9_41 // (extern 8)
#define MOTOR_1_DIR_GPIO PIN_P8_16 // motor 1
#define MOTOR_2_DIR_GPIO PIN_P8_15 // motor 2
#define MOTOR_3_DIR_GPIO PIN_P8_11 // motor 3
#define MOTOR_4_DIR_GPIO PIN_P9_15 // motor 4
#define MOTOR_5_DIR_GPIO PIN_P8_12 // motor 5
#define MOTOR_6_DIR_GPIO PIN_P9_23 // (extern 6)
#define MOTOR_7_DIR_GPIO PIN_P9_14 // (extern 7)
#define MOTOR_8_DIR_GPIO PIN_P9_16 // (extern 8)
#define MOTOR_ENABLE_GPIO PIN_P9_12 // ENn
#define MOTOR_ENABLE_IS_ACTIVE_HIGH 0 // 1 if EN, 0 if ~EN
#define AUX_1_GPIO PIN_P9_11 // AUX_1 "Aux, Open Collector"
#define AUX_2_GPIO PIN_P9_13 // AUX_2 "Aux, Open Collector"
#define PWM_1_GPIO PIN_P8_9 // PWM_1 "Power PWM"
#define PWM_2_GPIO PIN_P8_10 // PWM_2 "Power PWM"
#define PWM_3_GPIO PIN_P8_7 // PWM_3 "PWM, Open Collector"
#define PWM_4_GPIO PIN_P8_8 // PWM_4 "PWM, Open Collector"
#define IN_1_GPIO PIN_P8_13 // END_X
#define IN_2_GPIO PIN_P8_14 // END_Y
#define IN_3_GPIO PIN_P8_17 // END_Z