add extern "C" for cpp
start to work on hal layer
This commit is contained in:
@@ -51,6 +51,10 @@
|
||||
#ifndef _TUSB_COMMON_H_
|
||||
#define _TUSB_COMMON_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
@@ -89,6 +93,10 @@
|
||||
|
||||
#define ASSERT_ERROR(sts) ASSERT_ERROR_MESSAGE(sts, NULL)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _TUSB_COMMON_H_ */
|
||||
|
||||
/** @} */
|
||||
|
Reference in New Issue
Block a user