speeduino/speeduino/auxiliaries.h

32 lines
847 B
C
Raw Permalink Normal View History

2016-10-06 23:34:27 -07:00
#ifndef AUX_H
#define AUX_H
2016-10-06 23:34:27 -07:00
void initialiseAuxPWM();
void boostControl();
void vvtControl();
2016-10-25 07:04:37 -07:00
void initialiseFan();
volatile byte *boost_pin_port;
volatile byte boost_pin_mask;
volatile byte *vvt_pin_port;
volatile byte vvt_pin_mask;
volatile bool boost_pwm_state;
unsigned int boost_pwm_max_count; //Used for variable PWM frequency
2015-09-26 23:41:07 -07:00
volatile unsigned int boost_pwm_cur_value;
2016-05-15 04:05:49 -07:00
long boost_pwm_target_value;
long boost_cl_target_boost;
byte boostCounter;
2017-02-14 21:51:01 -08:00
//Boost control uses a scaling factor of 100 on the MAP reading and MAP target in order to have a reasonable response time
//These are the values that are passed to the PID controller
long MAPx100;
long boostTargetx100;
volatile bool vvt_pwm_state;
unsigned int vvt_pwm_max_count; //Used for variable PWM frequency
2015-09-26 23:41:07 -07:00
volatile unsigned int vvt_pwm_cur_value;
2016-05-15 04:05:49 -07:00
long vvt_pwm_target_value;
2017-02-14 21:51:01 -08:00
2016-10-06 23:34:27 -07:00
#endif