![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
para el ventilador
Diff: stepper_motor_driver.h
- Revision:
- 3:45299e7882b9
- Parent:
- 2:6f618b905d4f
- Child:
- 5:bd5fc0510e7b
--- a/stepper_motor_driver.h Thu Apr 16 13:22:16 2020 +0000 +++ b/stepper_motor_driver.h Fri Apr 17 11:22:43 2020 +0000 @@ -33,13 +33,20 @@ extern DigitalOut stepper_en; extern DigitalOut stepper_dir; +// For testing purposes only +extern Serial pc; + /* Variable declaration */ +extern volatile uint8_t stepper_parameters_update_flag; + // Tables for calculations extern const float sigma_ramp[RAMP_STEPS]; +extern const float short_sigma_ramp[SHORT_RAMP_STEPS]; extern uint32_t calibration_period_rise_ramp_us[RAMP_STEPS]; extern uint32_t inspiration_period_rise_ramp_us[RAMP_STEPS]; extern uint32_t expiration_period_rise_ramp_us[RAMP_STEPS]; +extern uint32_t expiration_period_short_rise_ramp_us[SHORT_RAMP_STEPS]; // These parameters are configurer through the graphic interface */ extern uint32_t inspiration_stepper_pulses_setpoint;