Added software timers
Accessory state machine framework functional
This commit is contained in:
@@ -92,7 +92,7 @@ uint8_t Dds_Pot_Val[2]; // 2 byte Data for SPI
|
||||
extern uint8_t Cur_Mode,Taps_Flag, Bat_Type;
|
||||
extern volatile uint8_t BC_Duty_Cycle;
|
||||
extern volatile bool PWM_Update_Flag;
|
||||
extern uint16_t Sys_Chk_tmr,Taps_adjust_timer;
|
||||
extern uint16_t Taps_adjust_timer;
|
||||
extern uint8_t Bat_Type;
|
||||
REGULATE_t reg;
|
||||
|
||||
@@ -413,7 +413,7 @@ void Request_Current_Change(void)
|
||||
SPI0_SendBytes(Dds_Pot_Val, 2, AMPLITUDE);
|
||||
|
||||
|
||||
Sys_Chk_tmr= DELAY_500MS; // Allow system settling before checking measurements
|
||||
//Sys_Chk_tmr= DELAY_500MS; // Allow system settling before checking measurements
|
||||
Taps_Flag = false;
|
||||
Taps_adjust_timer = DELAY_2S;
|
||||
catch_up_flag = true;
|
||||
|
||||
Reference in New Issue
Block a user