Initial commit
This commit is contained in:
24
Clean_TMC2209/lib/tmc/helpers/Constants.h
Normal file
24
Clean_TMC2209/lib/tmc/helpers/Constants.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2018 TRINAMIC Motion Control GmbH & Co. KG
|
||||
* (now owned by Analog Devices Inc.),
|
||||
*
|
||||
* Copyright © 2023 Analog Devices Inc. All Rights Reserved. This software is
|
||||
* proprietary & confidential to Analog Devices, Inc. and its licensors.
|
||||
*******************************************************************************/
|
||||
|
||||
|
||||
#ifndef TMC_HELPERS_CONSTANTS_H_
|
||||
#define TMC_HELPERS_CONSTANTS_H_
|
||||
|
||||
#define TMC_WRITE_BIT 0x80
|
||||
|
||||
#define TMC_ADDRESS_MASK 0x7F
|
||||
|
||||
#define TMC_DEFAULT_MOTOR 0
|
||||
|
||||
//#define TMC_DIRECTION_RIGHT TRUE
|
||||
//#define TMC_DIRECTION_LEFT FALSE
|
||||
|
||||
#define TMC_REGISTER_COUNT 128 // Default register count
|
||||
|
||||
#endif /* TMC_HELPERS_CONSTANTS_H_ */
|
||||
Reference in New Issue
Block a user