#include "sr_sunrise.h"

#ifdef  SR_AUTOINIT_TEST // 自动初始化测试函数
static int bsp_init0(void)
{
 SR_LOG(INFO,"bsp_init0 Enter...\n");
 return 0;
}
SR_INIT_BSP_EXPORT(bsp_init0,SR_PRIORITY_0);

static int bsp_init1(void)
{
 SR_LOG(INFO,"bsp_init1 Enter...\n");
 return 0;
}
SR_INIT_BSP_EXPORT(bsp_init1,SR_PRIORITY_1);

static int bsp_init2(void)
{
 SR_LOG(INFO,"bsp_init2 Enter...\n");
 return 0;
}
SR_INIT_BSP_EXPORT(bsp_init2,SR_PRIORITY_2);



static int cmpt_init0(void)
{
 SR_LOG(INFO,"cmpt_init0 Enter...\n");
 return 0;
}
SR_INIT_COMPONENT_EXPORT(cmpt_init0,SR_PRIORITY_0);

static int cmpt_init1(void)
{
 SR_LOG(INFO,"cmpt_init1 Enter...\n");
 return 0;
}
SR_INIT_COMPONENT_EXPORT(cmpt_init1,SR_PRIORITY_1);

static int cmpt_init2(void)
{
 SR_LOG(INFO,"cmpt_init2 Enter...\n");
 return 0;
}
SR_INIT_COMPONENT_EXPORT(cmpt_init2,SR_PRIORITY_2);



static int app_init0(void)
{
 SR_LOG(INFO,"app_init0 Enter...\n");
 return 0;
}
SR_INIT_APP_EXPORT(app_init0,SR_PRIORITY_0);

static int app_init1(void)
{
 SR_LOG(INFO,"app_init1 Enter...\n");
 return 0;
}
SR_INIT_APP_EXPORT(app_init1,SR_PRIORITY_1);

static int app_init2(void)
{
 SR_LOG(INFO,"app_init2 Enter...\n");
 return 0;
}
SR_INIT_APP_EXPORT(app_init2,SR_PRIORITY_2);


void poll1(void)
{
  SR_LOG(INFO,"poll1 Enter...gTickCnt(%d) pLastTick(%d) periodMs(%d)\n",gTickCnt,pLastTick,periodMs);

}
SR_POLL_TASK_EXPORT(poll1,200,SR_PRIORITY_0);


void poll2(void)
{
  SR_LOG(INFO,"poll2 Enter...\n");

}
SR_POLL_TASK_EXPORT(poll2,10,SR_PRIORITY_1);


void poll3(void)
{
  SR_LOG(INFO,"poll3 Enter...\n");

}
SR_POLL_TASK_EXPORT(poll3,10,SR_PRIORITY_2);

#endif

