summaryrefslogtreecommitdiff
path: root/tests/support/tusb_callback.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-06-06 10:39:37 +0700
committerhathach <[email protected]>2019-06-06 10:39:37 +0700
commit13e01c7dca1e72097be1723676b086be29d0e622 (patch)
tree699e883134aae84d54fe592346b2bb4eb92acb7c /tests/support/tusb_callback.h
parent90fea785c6aa60fdfd398fee262bb06c69a010b7 (diff)
add TU_ prefix to compiler ATTR to prevent name conflict with application
Diffstat (limited to 'tests/support/tusb_callback.h')
-rw-r--r--tests/support/tusb_callback.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/support/tusb_callback.h b/tests/support/tusb_callback.h
index 3e793dd9e..456c5d2b6 100644
--- a/tests/support/tusb_callback.h
+++ b/tests/support/tusb_callback.h
@@ -48,9 +48,9 @@
#include "usbh.h"
//------------- core -------------//
-uint8_t tusbh_device_attached_cb (tusb_desc_device_t const *p_desc_device) ATTR_WEAK;
-void tusbh_device_mount_succeed_cb (uint8_t dev_addr) ATTR_WEAK;
-void tusbh_device_mount_failed_cb(tusb_error_t error, tusb_desc_device_t const *p_desc_device) ATTR_WEAK;
+uint8_t tusbh_device_attached_cb (tusb_desc_device_t const *p_desc_device) TU_ATTR_WEAK;
+void tusbh_device_mount_succeed_cb (uint8_t dev_addr) TU_ATTR_WEAK;
+void tusbh_device_mount_failed_cb(tusb_error_t error, tusb_desc_device_t const *p_desc_device) TU_ATTR_WEAK;
#ifdef __cplusplus
}