更新SDK到 SR_Light_Hilink_14.2.1.312_20250704
This commit is contained in:
@ -183,10 +183,16 @@ static int USER_FUNC uart_recv_callback(uint32_t event,char *data,uint32_t len,u
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
void user_app_init(void)
|
||||
{
|
||||
u_printf("user app init\r\n");
|
||||
}
|
||||
void hfwifi_product_callback(HFWIFI_STATE state)
|
||||
{
|
||||
u_printf("wifi state:%d\r\n",state);
|
||||
}
|
||||
#define APPVER "1.0.0"
|
||||
int hf_atcmd_appver(pat_session_t s,int argc,char *argv[],char *rsp,int len)
|
||||
{
|
||||
@ -197,15 +203,6 @@ int hf_atcmd_appver(pat_session_t s,int argc,char *argv[],char *rsp,int len)
|
||||
}
|
||||
return -3;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SPOTLIGHT_UT
|
||||
extern int hf_atcmd_pwm(pat_session_t s, int argc, char *argv[], char *rsp, int len);
|
||||
extern int hf_atcmd_pwm_query(pat_session_t s, int argc, char *argv[], char *rsp, int len);
|
||||
extern int hf_atcmd_light(pat_session_t s, int argc, char *argv[], char *rsp, int len);
|
||||
extern int hf_atcmd_light_query(pat_session_t s, int argc, char *argv[], char *rsp, int len);
|
||||
extern int hf_atcmd_reset(pat_session_t s, int argc, char *argv[], char *rsp, int len);
|
||||
extern int hf_atcmd_reset_factory(pat_session_t s, int argc, char *argv[], char *rsp, int len);
|
||||
#endif
|
||||
const hfat_cmd_t user_define_at_cmds_table[]=
|
||||
{
|
||||
{"APPVER", hf_atcmd_appver, "AT+APPVER: get version. \r\n",NULL},
|
||||
@ -214,15 +211,7 @@ const hfat_cmd_t user_define_at_cmds_table[]=
|
||||
{"MCUVER", hf_atcmd_mcuver, "AT+MCUVER: get mcu version. \r\n",NULL},
|
||||
{"OTAWAITTIME", hf_atcmd_ota_wait_time, "AT+OTAWAITTIME: set/get uart send mcu ota time\r\n", NULL},
|
||||
#endif
|
||||
#ifdef CONFIG_SPOTLIGHT_UT
|
||||
{"RESET", hf_atcmd_reset, "AT+RESET: reset. \r\n",NULL},
|
||||
{"FACTORY", hf_atcmd_reset_factory, "AT+FACTORY: factory. \r\n",NULL},
|
||||
{"UTPWM", hf_atcmd_pwm, "AT+PWM=<channel>,<duty>: Set PWM duty cycle (0-1000)\r\n", NULL},
|
||||
{"UTLIGHT", hf_atcmd_light, "AT+LIGHT=<brightness>,<cct>: Set brightness(0-1000) and CCT(2700-6000)\r\n", NULL},
|
||||
{"UTPWMQ", NULL, "AT+PWMQ=<channel>,<duty>: Set PWM duty cycle (0-1000)\r\n", hf_atcmd_pwm_query},
|
||||
{"UTLIGHTQ", NULL, "AT+LIGHTQ=<brightness>,<cct>: Set brightness(0-1000) and CCT(2700-6000)\r\n", hf_atcmd_light_query},
|
||||
#endif
|
||||
{NULL, NULL, NULL, NULL} //the last item must be null
|
||||
{NULL, NULL, NULL, NULL} //the last item must be null
|
||||
};
|
||||
|
||||
int USER_FUNC user_app_main(void)
|
||||
|
Reference in New Issue
Block a user