我正在尝试将fpga的中断链接到zedboard中的FreeRTOS。当我写的代码:FreeRTOS中prvGetInterruptControllerInstance()函数的必需头文件是什么?
InterruptController = (XScuGic *)prvGetInterruptControllerInstance();
我从赛灵思SDK的错误说:
undefined reference to `prvGetInterruptControllerInstance'
我能知道什么是必需的包括头文件使用该功能?我试图在网上搜索和我有相同的头文件包括:
/* FreeRTOS includes. */
#include "FreeRTOS.h"
#include "FreeRTOSConfig.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
#include "semphr.h"
/* Xilinx includes. */
#include "xil_printf.h"
#include "xparameters.h"
#include <xil_io.h>
#include "xscugic.h"
#include <stdio.h>
谢谢!
看看comp Ilation输出并声明您链接到prvGetInterruptControllerInstance的定义 – 4pie0
../src/FreeRTOS_DMA.c:在函数'InitInterrupt'中: ../src/FreeRTOS_DMA.c:156:2:警告:函数的隐式声明'prvGetInterruptControllerInstance' [-Wimplicit-function-declaration] InterruptController =(XScuGic *)prvGetInterruptControllerInstance(); ^ '成品建筑:../src/FreeRTOS_DMA.c' '' – user9870
'建筑目标:FreeRTOS_DMA.elf' '调用:ARM V7 GCC接头' 臂-NONE-EABI-GCC -mcpu = cortex- a9 -mfpu = vfpv3 -mfloat-abi = hard -Wl,-build-id = none -specs = Xilinx.spec -Wl,-T -Wl,../src/lscript.ld -L ../../ FreeRTOS_DMA_bsp/ps7_cortexa9_0/lib -o“FreeRTOS_DMA.elf”./src/FreeRTOS_DMA.o -Wl, - start-group,-lxil,-lfreertos,-lgcc,-lc, - end-group – user9870