附录h
#define PIC_APPSECTOR_START_ADDRESS 0x700
#define PIC_APPSECTOR_SIZE 0x900
#define PIC_APPSECTOR_CURRENT_VERSION 0x5
extern const unsigned char ucPICAppsectorFirmware[];
#include "app.h"
const unsigned char ucPICAppsectorFirmware[] =
{
0x93,0x2b,0xff,0x3f, 0xff,0x3f,0xff,0x3f,
0x83,0x31,0x27,0x00, 0x93,0x1e,0x8e,0x2b,
0x20,0x00,0x8e,0x16, 0x4b,0x08,0x95,0x00,
0x27,0x00,0x93,0x12, 0x0b,0x1d,0x09,0x00,
0x40,0x26,0x0b,0x11, 0x09,0x00,0x94,0x2b,
0x22,0x30,0x84,0x00, 0x00,0x30,0x85,0x00,
0x2d,0x30,
};
我想从usb\u test.c访问ucpicappsector固件[],并执行闪烁。所以,我补充道
#include "app.h"
在usb测试中
obj-m += usb_test.o
usb_test-objs := app.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
WARNING: "ucPICAppsectorFirmware" [USB_Driver/usb_test.ko] undefined!
如何解决这个问题。我可以将数组复制到app.h中,它就可以工作了。但我想要一个能与app.c中的数组而不是app.h中的数组一起工作的解决方案