From 1258e2cfec89200624c2e0f2d8596a6030d28f86 Mon Sep 17 00:00:00 2001 From: Rob Giseburt Date: Sun, 6 Nov 2016 16:04:10 -0600 Subject: [PATCH] gQuintic somewhat functional. (Much more testing needed.) --- g2core/board/gquintic/board_stepper.h | 4 ++-- g2core/board/gquintic/hardware.h | 4 +++- g2core/board/gquintic/motate_pin_assignments.h | 6 ------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/g2core/board/gquintic/board_stepper.h b/g2core/board/gquintic/board_stepper.h index f1b90dd3..23b8c4db 100755 --- a/g2core/board/gquintic/board_stepper.h +++ b/g2core/board/gquintic/board_stepper.h @@ -31,7 +31,7 @@ #include "hardware.h" // for MOTORS #include "tmc2130.h" -typedef Motate::SPIBus SPIBus_used_t; +typedef Motate::SPIBus SPIBus_used_t; // These are identical to board_stepper.h, except for the word "extern" and the initialization extern Trinamic2130 load_timer_type; // request load timer in stepper.c typedef ServiceCall<1> exec_timer_type; // request exec timer in stepper.cpp typedef ServiceCall<2> fwd_plan_timer_type; // request exec timer in stepper.cpp +Motate::service_call_number kSPI_ServiceCallNumber = 3; + // Pin assignments pin_number indicator_led_pin_num = Motate::kLED_USBRXPinNumber; diff --git a/g2core/board/gquintic/motate_pin_assignments.h b/g2core/board/gquintic/motate_pin_assignments.h index 713163e1..af029d31 100755 --- a/g2core/board/gquintic/motate_pin_assignments.h +++ b/g2core/board/gquintic/motate_pin_assignments.h @@ -240,12 +240,6 @@ pin_number kUnassigned4 = 251; pin_number kUnassigned3 = 252; pin_number kUnassigned2 = 253; pin_number kUnassigned1 = 254; // 254 is the max.. Do not exceed this number - -/** NOTE: When adding pin definitions here, they must be - * added to ALL board pin assignment files, even if - * they are defined as -1. - **/ - } // namespace Motate // For the SAM3X8C boards, we actually use the same NUMBERING, but have different number to pin linkages