forked from grblHAL/RP2040
-
Notifications
You must be signed in to change notification settings - Fork 0
/
picobob_map.h
86 lines (67 loc) · 2.79 KB
/
picobob_map.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
picobob_map.h - driver code for RP2040 ARM processors
Part of grblHAL
Copyright (c) 2021-2023 Andrew Marles
Grbl 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.
Grbl 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 Grbl. If not, see <http://www.gnu.org/licenses/>.
*/
#if TRINAMIC_ENABLE
#error Trinamic plugin not supported!
#endif
#if N_ABC_MOTORS > 2
#error "Axis configuration is not supported!"
#endif
#define BOARD_NAME "PicoBOB"
#define BOARD_URL "https://github.com/Expatria-Technologies/PicoBOB"
// Define step pulse output pins.
#define STEP_PORT GPIO_PIO // N_AXIS pin PIO SM
#define STEP_PINS_BASE 17 // N_AXIS number of consecutive pins are used by PIO
// Define step direction output pins.
#define DIRECTION_PORT GPIO_OUTPUT
#define DIRECTION_OUTMODE GPIO_MAP
#define X_DIRECTION_PIN 9
#define Y_DIRECTION_PIN 10
#define Z_DIRECTION_PIN 11
// Define ganged axis or A axis step pulse and step direction output pins.
#if N_ABC_MOTORS > 0
#define M3_AVAILABLE
#define M3_DIRECTION_PIN 12
#define M3_LIMIT_PIN 5
#endif
//M4 pins Note that M3 and M4 must use the same limit pin.
#if N_ABC_MOTORS > 1
#define M4_AVAILABLE
#define M4_DIRECTION_PIN 13
#define M4_LIMIT_PIN 5
#endif
//Define stepper driver enable/disable output pin. This is not used on PicoBOB.
// Define homing/hard limit switch input pins. Currently configured so that X and Z limit pins are shared.
#define LIMIT_PORT GPIO_INPUT
#define X_LIMIT_PIN 2
#define Y_LIMIT_PIN 1
#define Z_LIMIT_PIN 2
// Define spindle enable and spindle direction output pins. No direction signal on the Mach3 BOB.
//Spindle relay control is shared with B direction port, only one can be enabled at a time!
#define SPINDLE_PORT GPIO_OUTPUT
#ifndef M4_DIRECTION_PIN
#define SPINDLE_ENABLE_PIN 13
#endif
// Define spindle PWM output pin.
#define SPINDLE_PWM_PORT GPIO_OUTPUT
#define SPINDLE_PWM_PIN 14
// Define user-control controls (cycle start, reset, feed hold) input pins. Only Estop is supported on the Mach3 BOB.
#define RESET_PIN 3
//Stepper enable is replaced with coolant control
#define COOLANT_PORT GPIO_OUTPUT
#define COOLANT_FLOOD_PIN 16
// Define probe switch input pin.
#define PROBE_PIN 4
#define PROBE_PORT GPIO_INPUT