updated struct types to use typedefs and conform to Micael Barrs Embedded C Coding Standard

This commit is contained in:
Simen Svale Skogsrud
2011-01-25 22:51:37 +01:00
parent 4dbe7c4833
commit 25383790e2
6 changed files with 25 additions and 26 deletions

View File

@ -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();