-
-
Save rajivr/25ba9904edc93c2e5fd527251f61ca70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove `TU_ATTR_WEAK` | |
From: Rajiv Ranganath <rajiv.ranganath@atihita.com> | |
Signed-off-by: Rajiv Ranganath <rajiv.ranganath@atihita.com> | |
--- | |
src/class/vendor/vendor_device.h | 2 +- | |
src/device/usbd.h | 10 +++++----- | |
2 files changed, 6 insertions(+), 6 deletions(-) | |
diff --git a/src/class/vendor/vendor_device.h b/src/class/vendor/vendor_device.h | |
index 30fe94c3..5705a336 100644 | |
--- a/src/class/vendor/vendor_device.h | |
+++ b/src/class/vendor/vendor_device.h | |
@@ -69,7 +69,7 @@ static inline uint32_t tud_vendor_write_available (void); | |
//--------------------------------------------------------------------+ | |
// Invoked when received new data | |
-TU_ATTR_WEAK void tud_vendor_rx_cb(uint8_t itf); | |
+void tud_vendor_rx_cb(uint8_t itf); | |
//--------------------------------------------------------------------+ | |
// Inline Functions | |
diff --git a/src/device/usbd.h b/src/device/usbd.h | |
index 847251ca..8326bfed 100644 | |
--- a/src/device/usbd.h | |
+++ b/src/device/usbd.h | |
@@ -83,7 +83,7 @@ uint8_t const * tud_descriptor_device_cb(void); | |
// Invoked when received GET BOS DESCRIPTOR request | |
// Application return pointer to descriptor | |
-TU_ATTR_WEAK uint8_t const * tud_descriptor_bos_cb(void); | |
+uint8_t const * tud_descriptor_bos_cb(void); | |
// Invoked when received GET CONFIGURATION DESCRIPTOR request | |
// Application return pointer to descriptor, whose contents must exist long enough for transfer to complete | |
@@ -94,10 +94,10 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index); | |
uint16_t const* tud_descriptor_string_cb(uint8_t index); | |
// Invoked when device is mounted (configured) | |
-TU_ATTR_WEAK void tud_mount_cb(void); | |
+void tud_mount_cb(void); | |
// Invoked when device is unmounted | |
-TU_ATTR_WEAK void tud_umount_cb(void); | |
+void tud_umount_cb(void); | |
// Invoked when usb bus is suspended | |
// Within 7ms, device must draw an average of current less than 2.5 mA from bus | |
@@ -107,8 +107,8 @@ TU_ATTR_WEAK void tud_suspend_cb(bool remote_wakeup_en); | |
TU_ATTR_WEAK void tud_resume_cb(void); | |
// Invoked when received control request with VENDOR TYPE | |
-TU_ATTR_WEAK bool tud_vendor_control_request_cb(uint8_t rhport, tusb_control_request_t const * request); | |
-TU_ATTR_WEAK bool tud_vendor_control_complete_cb(uint8_t rhport, tusb_control_request_t const * request); | |
+bool tud_vendor_control_request_cb(uint8_t rhport, tusb_control_request_t const * request); | |
+bool tud_vendor_control_complete_cb(uint8_t rhport, tusb_control_request_t const * request); | |
//--------------------------------------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment