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

@@ -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_ */
/** @} */