mirror of
https://github.com/synthetos/g2.git
synced 2026-09-23 04:03:47 +08:00
gQuintic somewhat functional. (Much more testing needed.)
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#include "hardware.h" // for MOTORS
|
||||
#include "tmc2130.h"
|
||||
|
||||
typedef Motate::SPIBus<Motate::kSPI_MISOPinNumber, Motate::kSPI_MOSIPinNumber, Motate::kSPI_SCKPinNumber> SPIBus_used_t;
|
||||
typedef Motate::SPIBus<Motate::kSPI_MISOPinNumber, Motate::kSPI_MOSIPinNumber, Motate::kSPI_SCKPinNumber, kSPI_ServiceCallNumber> SPIBus_used_t;
|
||||
|
||||
// These are identical to board_stepper.h, except for the word "extern" and the initialization
|
||||
extern Trinamic2130<SPIBus_used_t::SPIBusDevice,
|
||||
@@ -64,4 +64,4 @@ extern Stepper* Motors[MOTORS];
|
||||
|
||||
void board_stepper_init();
|
||||
|
||||
#endif // BOARD_STEPPER_H_ONCE
|
||||
#endif // BOARD_STEPPER_H_ONCE
|
||||
|
||||
@@ -119,7 +119,7 @@ using Motate::OutputPin;
|
||||
/**** Stepper DDA and dwell timer settings ****/
|
||||
|
||||
//#define FREQUENCY_DDA 200000UL // Hz step frequency. Interrupts actually fire at 2x (400 KHz)
|
||||
#define FREQUENCY_DDA 150000UL // Hz step frequency. Interrupts actually fire at 2x (300 KHz)
|
||||
#define FREQUENCY_DDA 300000UL // Hz step frequency. Interrupts actually fire at 2x (300 KHz)
|
||||
#define FREQUENCY_DWELL 1000UL
|
||||
#define FREQUENCY_SGI 200000UL // 200,000 Hz means software interrupts will fire 5 uSec after being called
|
||||
|
||||
@@ -132,6 +132,8 @@ typedef ServiceCall<0> 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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user