[Mod] 禁用led_task, 与CMT2310 冲突
This commit is contained in:
@ -114,6 +114,8 @@ OF SUCH DAMAGE.
|
|||||||
#define ALICLOUD_TASK_PRIO TASK_PRIO_APP_BASE
|
#define ALICLOUD_TASK_PRIO TASK_PRIO_APP_BASE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//#define CONFIG_TASK_LED
|
||||||
|
|
||||||
#ifdef CONFIG_IPERF_TEST
|
#ifdef CONFIG_IPERF_TEST
|
||||||
#define IPERF_TASK_MAX 1
|
#define IPERF_TASK_MAX 1
|
||||||
|
|
||||||
|
|||||||
@ -82,7 +82,7 @@ void do_ram_code_copy(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (CONFIG_GY3513)
|
#if defined (CONFIG_TASK_LED)
|
||||||
static int32_t led_init(void)
|
static int32_t led_init(void)
|
||||||
{
|
{
|
||||||
gd_eval_led_init(LED1);
|
gd_eval_led_init(LED1);
|
||||||
@ -104,7 +104,7 @@ void led_task(void *p_arg)
|
|||||||
|
|
||||||
sys_task_delete(NULL);
|
sys_task_delete(NULL);
|
||||||
}
|
}
|
||||||
#endif // CONFIG_GY3513
|
#endif // CONFIG_TASK_LED
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief initialize application
|
\brief initialize application
|
||||||
@ -168,14 +168,14 @@ void start_task(void *p_arg)
|
|||||||
*/
|
*/
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
#if defined (CONFIG_GY3513)
|
#if defined (CONFIG_TASK_LED)
|
||||||
TaskHandle_t *stTaskHndl_led = NULL;
|
TaskHandle_t *stTaskHndl_led = NULL;
|
||||||
#endif // CONFIG_GY3513
|
#endif // CONFIG_TASK_LED
|
||||||
|
|
||||||
platform_init();
|
platform_init();
|
||||||
#if defined (CONFIG_GY3513)
|
#if defined (CONFIG_TASK_LED)
|
||||||
led_init();
|
led_init();
|
||||||
#endif // CONFIG_GY3513
|
#endif // CONFIG_TASK_LED
|
||||||
|
|
||||||
DEBUGPRINT("SDK git revision: "WIFI_GIT_REVISION" \r\n");
|
DEBUGPRINT("SDK git revision: "WIFI_GIT_REVISION" \r\n");
|
||||||
DEBUGPRINT("SDK version: V%d.%d.%d\r\n", (RE_NSPE_VERSION >> 24), ((RE_NSPE_VERSION & 0xFF0000) >> 16), (RE_NSPE_VERSION & 0xFFFF));
|
DEBUGPRINT("SDK version: V%d.%d.%d\r\n", (RE_NSPE_VERSION >> 24), ((RE_NSPE_VERSION & 0xFF0000) >> 16), (RE_NSPE_VERSION & 0xFFFF));
|
||||||
@ -187,7 +187,7 @@ int main(void)
|
|||||||
|
|
||||||
systick_delay_init();
|
systick_delay_init();
|
||||||
|
|
||||||
#if defined (CONFIG_GY3513)
|
#if defined (CONFIG_TASK_LED)
|
||||||
#define LED_TASK_STK_SIZE 256
|
#define LED_TASK_STK_SIZE 256
|
||||||
#define LED_TASK_PRIO (TASK_PRIO_APP_BASE + TASK_PRIO_HIGHER(1))
|
#define LED_TASK_PRIO (TASK_PRIO_APP_BASE + TASK_PRIO_HIGHER(1))
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ int main(void)
|
|||||||
if (stTaskHndl_led == NULL) {
|
if (stTaskHndl_led == NULL) {
|
||||||
DEBUG_ERROR("Error, task create failed.\r\n");
|
DEBUG_ERROR("Error, task create failed.\r\n");
|
||||||
}
|
}
|
||||||
#endif // CONFIG_GY3513
|
#endif // CONFIG_TASK_LED
|
||||||
|
|
||||||
if (NULL == sys_task_create(NULL, (const uint8_t *)"sub1g_task", NULL, START_TASK_STK_SIZE, 0, START_TASK_PRIO, sub1g_task, NULL)) {
|
if (NULL == sys_task_create(NULL, (const uint8_t *)"sub1g_task", NULL, START_TASK_STK_SIZE, 0, START_TASK_PRIO, sub1g_task, NULL)) {
|
||||||
DEBUGPRINT("ERROR: create start task failed\r\n");
|
DEBUGPRINT("ERROR: create start task failed\r\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user