Content originally posted in LPCWare by Noirim on Wed Jan 22 00:44:55 MST 2014
Hi,
thanks for your post.
According to NXP, the USB lib already contains declaration that allows using it in c++ code (extern C that you have mentionned). I have verify and in all declaration #if de __cplusplus is used.
The issue for me is that for an obscur reason, some declaration in usb.h is not "correctly handled" when I compile the code. It seems to be compatibility declaration.
example from when I includes USB.H code :
first error occurs in "endianness.h"
static inline uint16_t SwapEndian_16(const uint16_t Word) ATTR_WARN_UNUSED_RESULT ATTR_CONST;
static inline uint16_t SwapEndian_16(const uint16_t Word)
{
...
this type of declaration is supposed, if i'm right, to manage ascending compatibility of the software.
I don't understand why you mentionned "clock" at the end. For now I didn't manage to build my software so for now I have no clock issue because no execution is possible.
Thanks.