forked from grblHAL/RP2040
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcitoh_cx6000_map.h
85 lines (67 loc) · 2.63 KB
/
citoh_cx6000_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
/*
citoh_cx6000_map.h - driver code for RP2040 ARM processors
Part of grblHAL
Copyright (c) 2022-2023 Terje Io
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 > 1
#error "Axis configuration is not supported!"
#endif
#undef KEYPAD_ENABLE
#define KEYPAD_ENABLE 2
#define KEYPAD_STREAM 2 // Will deliberately fail stream connect!
#define BOARD_NAME "C.ITOH CX-6000 Plotter"
#define HAS_BOARD_INIT
// Define step pulse output pins.
#define STEP_PORT GPIO_PIO_1 // Single pin PIO SM
#define X_STEP_PIN 4
#define Y_STEP_PIN 7
#define Z_STEP_PIN 12
// Define step direction output pins.
#define DIRECTION_PORT GPIO_OUTPUT
#define DIRECTION_OUTMODE GPIO_MAP
#define X_DIRECTION_PIN 3
#define Y_DIRECTION_PIN 6
#define Z_DIRECTION_PIN 15
// Define stepper driver enable/disable output pin.
#define ENABLE_PORT GPIO_OUTPUT
#define STEPPERS_ENABLE_PIN 5
// Define homing/hard limit switch input pins.
#define X_LIMIT_PIN 13
#define Y_LIMIT_PIN 11
#define Z_LIMIT_PIN 11
#define LIMIT_INMODE GPIO_MAP
// Define spindle enable and spindle direction output pins.
#define SPINDLE_PORT GPIO_OUTPUT
#define SPINDLE_ENABLE_PIN 17
#define AUXINPUT0_PIN 18 // Y-
#define AUXINPUT1_PIN 19 // Y+
#define AUXINPUT2_PIN 20 // X-
#define AUXINPUT3_PIN 21 // X+
#define AUXINPUT4_PIN 26 // Pen U/D
#define AUXINPUT5_PIN 22 // Online
#define AUXOUTPUT0_PORT GPIO_OUTPUT
#define AUXOUTPUT0_PIN 8 // Pen LED
#define AUXOUTPUT1_PORT GPIO_OUTPUT
#define AUXOUTPUT1_PIN 28 // Alert LED
#define AUXOUTPUT2_PORT GPIO_OUTPUT
#define AUXOUTPUT2_PIN 27 // Reset front panel
#define RESET_PIN 10
#define PROBE_PIN 12
#define SPINDLE_PWM_PORT GPIO_OUTPUT
#define SPINDLE_PWM_PIN 14
#if !USB_SERIAL_CDC
#define RTS_PIN 2
#endif