Limit the usage of hidGetReportDescriptor() to C only

This commit is contained in:
mbanth
2021-06-04 15:15:05 +01:00
parent b871b4c046
commit 4446ab89c0

View File

@@ -71,9 +71,15 @@ typedef struct
* It returns NULL if the Report descriptor has not been prepared, * It returns NULL if the Report descriptor has not been prepared,
* i.e., no one has called \c hidPrepareReportDescriptor(). * i.e., no one has called \c hidPrepareReportDescriptor().
* *
* @note An XC-callable version of this function has not been provided.
* XC requires explicit declaration of the kind of pointer returned,
* hence an XC implementation of the function.
*
* @return A pointer to a list of unsigned char containing the Report descriptor * @return A pointer to a list of unsigned char containing the Report descriptor
*/ */
#if !defined(__XC__)
unsigned char* hidGetReportDescriptor( void ); unsigned char* hidGetReportDescriptor( void );
#endif
/** /**
* @brief Get the length of the HID Report descriptor * @brief Get the length of the HID Report descriptor