// 线程2,将线程间隔改为3秒
#define EVENT_2_USER_LOCAL_SCANF (VSFSM_EVT_USER_LOCAL + 1)
static struct vsfsm_state_t *
event_2_handler(struct vsfsm_t *sm, vsfsm_evt_t evt);
struct vsfsm_t event_2_sm =
{
{event_2_handler},
};
static struct vsftimer_timer_t event_2_timer =
{
3000,
&event_2_sm,
EVENT_2_USER_LOCAL_SCANF,
};
|