|
移植时出现如图错误 无法解决 大师看看
Error[Li005]: no definition for "xTaskCreate" [referenced from G:\1\PMU_DeepSleep_GPIO唤醒\EWARM\Debug\Obj\main.o]
Error[Li005]: no definition for "vTaskStartScheduler" [referenced from G:\1\PMU_DeepSleep_GPIO唤醒\EWARM\Debug\Obj\main.o]
Error[Li005]: no definition for "vTaskDelay" [referenced from G:\1\PMU_DeepSleep_GPIO唤醒\EWARM\Debug\Obj\main.o]
#include "main.h"
#include "user_init.h"
#include "FreeRTOS.h"
#include "TaskSystem.h"
#include "task.h"
#include "semphr.h"
#include "queue.h"
#define TASK_LED_PRIORITY (tskIDLE_PRIORITY + 1)
#define TASK_ADC_PRIORITY (tskIDLE_PRIORITY + 1)
#define TASK_UART_PRIORITY (tskIDLE_PRIORITY + 1)
uint8_t TestRxData[100];
QueueHandle_t ADC_QueueHandle;
QueueHandle_t dmaSemaphore;
void HardFault_Handler(void)
{
printf("hardfault\n");
}
void LedTask(void *pvParameters)
{
pvParameters = pvParameters;
while (1)
{
vTaskDelay(1000);
}
}
int main(void)
{
/* Reset of all peripherals, Initializes the Flash inte**ce and the Systick. */
/* SHOULD BE KEPT!!! */
MF_Clock_Init();
/* Configure the system clock */
/* SHOULD BE KEPT!!! */
MF_SystemClock_Config();
/* Initialize all configured peripherals */
/* SHOULD BE KEPT!!! */
MF_Config_Init();
UserInit();
LptimInit();
GPIO_interrupt_init();
xTaskCreate(LedTask, "Led", configMINIMAL_STACK_SIZE, NULL, TASK_LED_PRIORITY, NULL);
vTaskStartScheduler();
while(1)
{
}
}
void vApplicationIdleHook(void)
{
// TODO: 空闲任务
}
|
|