Cat1 open开发的程序入口注意点

Lte-Cat.1/Cat.4/Cat.M设备,NB-IoT设备等
Post Reply
东皇007
Posts: 45

int appimg_enter(void *param)
{
//本程序入口,尽量不减少业务代码,以防止卡住底层的设备初始化
//建议在这里创建线程,业务代码初始化放到该线程中。
}

Code: Select all

如:
int appimg_enter(void *param)
{
	THREAD_CFG_T cfg;
	OPERATE_RET ret;

tuya_cniot_init();
tuya_cniot_start_cellular();
tuya_cniot_start_tuyaos();
TAL_PR_NOTICE("[APPDEMO]: init system success");
// 关闭低电压关机功能,用户根据硬件选择。系统默认开启,用户外部可以关闭
tal_cellular_vbat_low_volt_poweroff_enable(FALSE);
/* 创建 hello 线程 */
cfg.priority = THREAD_PRIO_2;
cfg.stackDepth = 1024 * 8;
cfg.thrdname = "helloworld";
ret = tal_thread_create_and_start(&helloworld, NULL, NULL,
                                  helloworld_task, NULL, &cfg);
if (OPRT_OK != ret) {
    TAL_PR_ERR("[APPDEMO]: create helloworld_task task failed: %d", ret);
    return -1;
} else {
	TAL_PR_NOTICE("[APPDEMO]: create helloworld_task task success");
}

return 0;
}
Last edited by 东皇007 on 2022年 Sep 16日 18:43, edited 2 times in total.
niezheyuan
Posts: 61

Re: Cat1 open开发的程序入口注意点

业务能手,为表敬意,手动点赞

huatuo
Posts: 3

Re: Cat1 open开发的程序入口注意点

好啊

富土康
Posts: 3

Re: Cat1 open开发的程序入口注意点

666

yangjianyou
Posts: 4

Re: Cat1 open开发的程序入口注意点

666

User avatar
TheThingX
Posts: 65
Location: TheThingX
Contact:

Re: Cat1 open开发的程序入口注意点

🐮
抓紧学习,缩小差距

[][TheThingX.com]
Post Reply