Beispiel #1
0
static uint8_t _abort_handler(void)
{
	if (sig.sig_abort == false) { return (TG_NOOP);}
	sig.sig_abort = false;
	tg_reset();							// stop all activity and reset
	return (TG_EAGAIN);					// best to restart the control loop
}
Beispiel #2
0
static uint8_t _reset_handler(void)
{
	if (sig.sig_reset == false) { return (TG_NOOP);}
//	sig.sig_reset = false;				// why bother?
	tg_reset();							// hard reset - identical to hitting RESET button
	return (TG_EAGAIN);
}
Beispiel #3
0
static stat_t _reset_handler(void)
{
	if (tg.reset_requested == false) { return (STAT_NOOP);}
	tg_reset();							// hard reset - identical to hitting RESET button
	return (STAT_EAGAIN);
}