summaryrefslogtreecommitdiff
path: root/tinyusb/device/dcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-12-02 11:07:59 +0700
committerhathach <[email protected]>2012-12-02 11:07:59 +0700
commitb36a85ad3625596ce57f1a9fc2ddde2ea98b33d8 (patch)
treed73d19e9d96075369ffdb3f20a6878fdde0d51d6 /tinyusb/device/dcd.h
parenta636d75fc6c8af025a5f5a6229bd02334f82e976 (diff)
add extern "C" for cpp
start to work on hal layer
Diffstat (limited to 'tinyusb/device/dcd.h')
-rw-r--r--tinyusb/device/dcd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/device/dcd.h b/tinyusb/device/dcd.h
index 2db802e70..79d646f9b 100644
--- a/tinyusb/device/dcd.h
+++ b/tinyusb/device/dcd.h
@@ -51,6 +51,9 @@
#ifndef _TUSB_DCD_H_
#define _TUSB_DCD_H_
+#ifdef __cplusplus
+ extern "C" {
+#endif
#include "common/common.h"
@@ -60,9 +63,6 @@
#define USBD_API ((*(ROM **)(0x1FFF1FF8))->pUSBD) // TODO HAL
#endif
-#ifdef __cplusplus
- extern "C" {
-#endif
/** \brief Initialize DCD
*