25 #ifndef CONF_GENERAL_H_
26 #define CONF_GENERAL_H_
29 #define FW_VERSION_MAJOR 1
30 #define FW_VERSION_MINOR 12
37 #define AUTO_PRINT_FAULTS 0
38 #define SYSTEM_CORE_CLOCK 168000000
54 #define HW_VERSION_46 // Also for 4.7
62 #define MCCONF_OUTRUNNER2
76 #define ENCODER_ENABLE 0
77 #define ENCODER_COUNTS 14400
88 #define LED_EXT_BATT_LOW 28.0
89 #define LED_EXT_BATT_HIGH 33.0
96 #define WS2811_ENABLE 0
98 #define WS2811_CLK_HZ 800000
99 #define WS2811_LED_NUM 14
100 #define WS2811_USE_CH2 1 // 0: CH1 (PB6) 1: CH2 (PB7)
105 #ifndef SERVO_OUT_ENABLE
106 #define SERVO_OUT_ENABLE 0 // Enable servo output
108 #define SERVO_OUT_SIMPLE 1 // Use simple HW-based driver (recommended)
109 #define SERVO_OUT_PULSE_MIN_US 1000 // Minimum pulse length in microseconds
110 #define SERVO_OUT_PULSE_MAX_US 2000 // Maximum pulse length in microseconds
111 #define SERVO_OUT_RATE_HZ 50 // Update rate in Hz
114 #define VDIV_CORR ((VIN_R2 / (VIN_R2 + VIN_R1)) / (2.2 / (2.2 + 33.0)))
127 float *int_limit,
float *bemf_coupling_k, int8_t *hall_table,
int *hall_res);
void conf_general_init(void)
Definition: conf_general.c:144
void conf_general_read_mc_configuration(mc_configuration *conf)
Definition: conf_general.c:282
Definition: datatypes.h:246
bool conf_general_store_mc_configuration(mc_configuration *conf)
Definition: conf_general.c:375
void conf_general_read_app_configuration(app_configuration *conf)
Definition: conf_general.c:169
bool conf_general_detect_motor_param(float current, float min_rpm, float low_duty, float *int_limit, float *bemf_coupling_k, int8_t *hall_table, int *hall_res)
Definition: conf_general.c:405
bool conf_general_store_app_configuration(app_configuration *conf)
Definition: conf_general.c:246
Definition: datatypes.h:91