在线时间0 小时
UID318898
ST金币0
蝴蝶豆0
注册时间2011-9-20
新手上路
- 最后登录
- 1970-1-1
|
a0a.1 0b0c
我要用USB送資料給PC,程式碼如下
void USB_Send(u8* data_buffer, u8 len)
{
u8 count_in=len;
//UserToPMABufferCopy(data_buffer, ENDP1_TXADDR, count_in);
//SetEPTxCount(ENDP1, count_in);
//SetEPTxValid(ENDP1);
USB_SIL_Write(EP1_IN, data_buffer, count_in);
SetEPTxValid(ENDP1);
}
我不管用UserToPMABufferCopy還是USB_SIL_Write都說我no definition,可是我明明就有把USB_SIL包進去USB_LIB裡面,為什麼會no definition
請大大幫我解答
Error[Li005]: no definition for "USB_SIL_Write" [referenced from C:\Documents and Settings\Administrator\桌面\stm32f10x_stdperiph_lib\
STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Template\EWARM\STM3210C-EVAL\Obj\USB.o] |
|