Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change enum identifiers for C++ compatibility #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tmc2130.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ typedef enum {

typedef uint8_t tmc2130_regaddr_t;

enum tmc2130_regaddr_t {
enum tmc2130_regaddr {
TMC2130Reg_GCONF = 0x00,
TMC2130Reg_GSTAT = 0x01,
TMC2130Reg_IOIN = 0x04,
Expand Down
2 changes: 1 addition & 1 deletion tmc2209.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ typedef enum {

typedef uint8_t tmc2209_regaddr_t;

enum tmc2209_regaddr_t {
enum tmc2209_regaddr {
TMC2209Reg_GCONF = 0x00,
TMC2209Reg_GSTAT = 0x01,
TMC2209Reg_IFCNT = 0x02,
Expand Down
2 changes: 1 addition & 1 deletion tmc2660.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ typedef enum {
typedef uint8_t tmc2660_regaddr_t;

//adresses are 3 bits.
enum tmc2660_regaddr_t {
enum tmc2660_regaddr {
TMC2660Reg_DRVCTRL = 0b000, // only ever going to use step/dir mode.
TMC2660Reg_CHOPCONF = 0b100,
TMC2660Reg_SMARTEN = 0b101, // Coolstep control register.
Expand Down
2 changes: 1 addition & 1 deletion tmc5160.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ typedef enum {

typedef uint8_t tmc5160_regaddr_t;

enum tmc5160_regaddr_t {
enum tmc5160_regaddr {
TMC5160Reg_GCONF = 0x00,
TMC5160Reg_GSTAT = 0x01,
TMC5160Reg_IFCNT = 0x02,
Expand Down