updated struct types to use typedefs and conform to Micael Barrs Embedded C Coding Standard
This commit is contained in:
parent
4dbe7c4833
commit
25383790e2
6 changed files with 25 additions and 26 deletions
6
config.h
6
config.h
|
|
@ -63,7 +63,7 @@
|
|||
#define SETTINGS_VERSION 2
|
||||
|
||||
// Current global settings (persisted in EEPROM from byte 1 onwards)
|
||||
struct Settings {
|
||||
typedef struct {
|
||||
double steps_per_mm[3];
|
||||
uint8_t microsteps;
|
||||
uint8_t pulse_microseconds;
|
||||
|
|
@ -73,8 +73,8 @@ struct Settings {
|
|||
double mm_per_arc_segment;
|
||||
double acceleration;
|
||||
double max_jerk;
|
||||
};
|
||||
extern struct Settings settings;
|
||||
} settings_t;
|
||||
extern settings_t settings;
|
||||
|
||||
// Initialize the configuration subsystem (load settings from EEPROM)
|
||||
void config_init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue