add extern "C" for cpp

start to work on hal layer
This commit is contained in:
hathach
2012-12-02 11:07:59 +07:00
parent a636d75fc6
commit b36a85ad36
10 changed files with 60 additions and 51 deletions

View File

@@ -49,6 +49,10 @@
#ifndef _TUSB_ERRORS_H_
#define _TUSB_ERRORS_H_
#ifdef __cplusplus
extern "C" {
#endif
/** \enum TUSB_Error_t
* \brief Error Code returned
*/
@@ -60,10 +64,6 @@ typedef enum {
ERROR_COUNT
}TUSB_Error_t;
#ifdef __cplusplus
extern "C" {
#endif
/// Enum to String for debugging purposes. Only available if \ref CFG_TUSB_DEBUG_LEVEL > 0
extern char const* const TUSB_ErrorStr[];