reducing magic constants
This commit is contained in:
parent
c6ada3360c
commit
b637757e57
|
@ -336,6 +336,7 @@ typedef enum {
|
|||
TV_RISE = 1
|
||||
} trigger_value_e;
|
||||
|
||||
// see also PWM_PHASE_MAX_WAVE_PER_PWM
|
||||
// todo: better names?
|
||||
typedef enum {
|
||||
T_PRIMARY = 0,
|
||||
|
@ -345,6 +346,7 @@ typedef enum {
|
|||
T_NONE = 15
|
||||
} trigger_wheel_e;
|
||||
|
||||
// see also 'HW_EVENT_TYPES'
|
||||
typedef enum {
|
||||
SHAFT_PRIMARY_FALLING = 0,
|
||||
SHAFT_PRIMARY_RISING = 1,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef CONTROLLERS_GENERATED_TRIGGER_CENTRAL_GENERATED_H
|
||||
#define CONTROLLERS_GENERATED_TRIGGER_CENTRAL_GENERATED_H
|
||||
#include "rusefi_types.h"
|
||||
#define HW_EVENT_TYPES 6
|
||||
#define HW_EVENT_TYPES (2 * PWM_PHASE_MAX_WAVE_PER_PWM)
|
||||
// start of trigger_central_s
|
||||
struct trigger_central_s {
|
||||
trigger_central_s();
|
||||
|
|
Loading…
Reference in New Issue