Part Number: CC2564MODA
Other Parts Discussed in Thread: CC2564
Hello,
We have a custom board using STM32F4 and CC2564. We need to port the HCI to dma for application. We started out from the sources in the hcitrans.dma of the BlueTopia stack. We have noticed one inconsistency in teh sources:
The callback routine passed as argument to HCITR_COMOpen() is indicated as returning a value (which seems logical in order to implement some sort of flow control) in the comments above the function:
/* The following function is responsible for opening the HCI */
/* Transport layer that will be used by Bluetopia to send and receive*/
/* COM (Serial) data. This function must be successfully issued in */
/* order for Bluetopia to function. This function accepts as its */
/* parameter the HCI COM Transport COM Information that is to be used*/
/* to open the port. The final two parameters specify the HCI */
/* Transport Data Callback and Callback Parameter (respectively) that*/
/* is to be called when data is received from the UART. A successful*/
/* call to this function will return a non-zero, positive value which*/
/* specifies the HCITransportID that is used with the remaining */
/* transport functions in this module. This function returns a */
/* negative return value to signify an error. */
int BTPSAPI HCITR_COMOpen(HCI_COMMDriverInformation_t *COMMDriverInformation,
HCITR_COMDataCallback_t COMDataCallback, unsigned long CallbackParameter)
However it really is declared as "typedef void (BTPSAPI *HCITR_COMDataCallback_t)(unsigned int HCITransportID, unsigned int DataLength, unsigned char *DataBuffer, unsigned long CallbackParameter);" in file HCITRANS.h
What am I missing out here ?
Thank you for your help,
L.CHENU
