注释inf

This commit is contained in:
james 2024-08-06 15:04:31 +08:00
parent 95010c4aa6
commit 28ebf7d2c1
2 changed files with 17 additions and 18 deletions

View File

@ -39,7 +39,6 @@ void myir_entry(void *parameter)
rt_pin_write(PIN_LED_R, PIN_LOW);
LOG_I("RECEIVE OK: addr:0x%02X key:0x%02X repeat:%d", infrared_data.data.nec.addr,
infrared_data.data.nec.key, infrared_data.data.nec.repeat);
rt_kprintf("RECEIVE OK\n");
}
rt_thread_mdelay(10);

View File

@ -50,12 +50,12 @@ float brightness;
int lcd_y;
int int_tmp;
extern void myir_entry(void *parameter);
// extern void myir_entry(void *parameter);
void ath_init(void);
void mqt_init(void);
int ap3_init(void);
void inf_init(void);
// void inf_init(void);
#define EXAMPLE_TRACE(fmt, ...) \
@ -305,7 +305,7 @@ static void mqtt_example_main(void *parameter)
rt_thread_t MQTT_Thread = RT_NULL;
rt_thread_t Snake_Thread = RT_NULL;
rt_thread_t Infrared_Thread = RT_NULL;
// rt_thread_t Infrared_Thread = RT_NULL;
void ath_init(void)
{
@ -361,20 +361,20 @@ MSH_CMD_EXPORT_ALIAS(snk_init, snake, "snake game");
// return 0;
// }
void inf_init(void)
{
Infrared_Thread = rt_thread_create("Infrared_Thread", myir_entry, RT_NULL, THREAD_STACK_SIZE, THREAD_PRIORITY, THREAD_TIMESLICE);
// void inf_init(void)
// {
// Infrared_Thread = rt_thread_create("Infrared_Thread", myir_entry, RT_NULL, THREAD_STACK_SIZE, THREAD_PRIORITY, THREAD_TIMESLICE);
if (Infrared_Thread != RT_NULL)
{
rt_thread_startup(Infrared_Thread);
}
else
{
rt_kprintf("Infrared Thread Create Failed!\n");
}
}
MSH_CMD_EXPORT_ALIAS(inf_init, inf, "Infrared");
// if (Infrared_Thread != RT_NULL)
// {
// rt_thread_startup(Infrared_Thread);
// }
// else
// {
// rt_kprintf("Infrared Thread Create Failed!\n");
// }
// }
// MSH_CMD_EXPORT_ALIAS(inf_init, inf, "Infrared");
void my_project(void)
{
ath_init();
@ -383,6 +383,6 @@ void my_project(void)
ap3_init();
inf_init();
// inf_init();
}
MSH_CMD_EXPORT_ALIAS(my_project, myproject, run my project);