|
@@ -270,63 +270,3 @@
|
270
|
270
|
#define SPINDLE_LASER_ENABLE_PIN 66 // K4 Pin should have a pullup!
|
271
|
271
|
#define SPINDLE_LASER_PWM_PIN 8 // H5 MUST BE HARDWARE PWM
|
272
|
272
|
#define SPINDLE_DIR_PIN 67 // K5
|
273
|
|
-
|
274
|
|
-
|
275
|
|
-
|
276
|
|
-
|
277
|
|
-// Check if all pins are defined in mega/pins_arduino.h
|
278
|
|
-#include <Arduino.h>
|
279
|
|
-static_assert(NUM_DIGITAL_PINS > MAX_PIN, "add missing pins to [arduino dir]/hardware/arduino/avr/variants/mega/pins_arduino.h based on fastio.h"
|
280
|
|
- "to digital_pin_to_port_PGM, digital_pin_to_bit_mask_PGM, digital_pin_to_timer_PGM, NUM_DIGITAL_PINS, see below");
|
281
|
|
-
|
282
|
|
-/* in [arduino dir]/hardware/arduino/avr/variants/mega/pins_arduino.h
|
283
|
|
-change:
|
284
|
|
-#define NUM_DIGITAL_PINS 70
|
285
|
|
-to:
|
286
|
|
-#define NUM_DIGITAL_PINS 80
|
287
|
|
-
|
288
|
|
-to digital_pin_to_port_PGM add at the end:
|
289
|
|
-const uint8_t PROGMEM digital_pin_to_port_PGM[] = {
|
290
|
|
-....
|
291
|
|
- PG , // PG 4 ** 70 **
|
292
|
|
- PG , // PG 3 ** 71 **
|
293
|
|
- PJ , // PJ 2 ** 72 **
|
294
|
|
- PJ , // PJ 3 ** 73 **
|
295
|
|
- PJ , // PJ 7 ** 74 **
|
296
|
|
- PJ , // PJ 4 ** 75 **
|
297
|
|
- PJ , // PJ 5 ** 76 **
|
298
|
|
- PJ , // PJ 6 ** 77 **
|
299
|
|
- PE , // PE 2 ** 78 **
|
300
|
|
- PE , // PE 6 ** 79 **
|
301
|
|
-};
|
302
|
|
-
|
303
|
|
-to digital_pin_to_bit_mask_PGM add at the end:
|
304
|
|
-const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[] = {
|
305
|
|
-....
|
306
|
|
- _BV( 4 ) , // PG 4 ** 70 **
|
307
|
|
- _BV( 3 ) , // PG 3 ** 71 **
|
308
|
|
- _BV( 2 ) , // PJ 2 ** 72 **
|
309
|
|
- _BV( 3 ) , // PJ 3 ** 73 **
|
310
|
|
- _BV( 7 ) , // PJ 7 ** 74 **
|
311
|
|
- _BV( 4 ) , // PJ 4 ** 75 **
|
312
|
|
- _BV( 5 ) , // PJ 5 ** 76 **
|
313
|
|
- _BV( 6 ) , // PJ 6 ** 77 **
|
314
|
|
- _BV( 2 ) , // PE 2 ** 78 **
|
315
|
|
- _BV( 6 ) , // PE 6 ** 79 **
|
316
|
|
-};
|
317
|
|
-
|
318
|
|
-to digital_pin_to_timer_PGM add at the end:
|
319
|
|
-const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
|
320
|
|
-....
|
321
|
|
- NOT_ON_TIMER , // PG 4 ** 70 **
|
322
|
|
- NOT_ON_TIMER , // PG 3 ** 71 **
|
323
|
|
- NOT_ON_TIMER , // PJ 2 ** 72 **
|
324
|
|
- NOT_ON_TIMER , // PJ 3 ** 73 **
|
325
|
|
- NOT_ON_TIMER , // PJ 7 ** 74 **
|
326
|
|
- NOT_ON_TIMER , // PJ 4 ** 75 **
|
327
|
|
- NOT_ON_TIMER , // PJ 5 ** 76 **
|
328
|
|
- NOT_ON_TIMER , // PJ 6 ** 77 **
|
329
|
|
- NOT_ON_TIMER , // PE 2 ** 78 **
|
330
|
|
- NOT_ON_TIMER , // PE 6 ** 79 **
|
331
|
|
-};
|
332
|
|
-*/
|