Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By longinus
#13076 First off, thanks for all this work guys... it's awesome!!!

Second, it seems the right way to include the header file is doing...

Code: Select allextern "C" {
  #include "user_interface.h"
}


Is that right?
It seems to work fine when I tried using the deep sleep code, but just making sure...
User avatar
By igrr
#13088 Yes that's the correct way.
I think I will patch those SDK header files to add c++ guards, as in
Code: Select all#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif

so that people don't stumble upon these issues.
User avatar
By reaper7
#13096 @igrr - you plan to add support for second serial?
something like for eg:
https://github.com/energia/Energia/blob ... reSerial.h

with extern HardwareSerial Serial1;