Unverified Commit 9406f8e4 authored by chegewara's avatar chegewara Committed by GitHub

Weaken tinyusb callbacks (#5475)

parent 65eafd16
...@@ -263,7 +263,7 @@ static tinyusb_endpoints_usage_t tinyusb_endpoints; ...@@ -263,7 +263,7 @@ static tinyusb_endpoints_usage_t tinyusb_endpoints;
/** /**
* @brief Invoked when received GET CONFIGURATION DESCRIPTOR. * @brief Invoked when received GET CONFIGURATION DESCRIPTOR.
*/ */
uint8_t const *tud_descriptor_configuration_cb(uint8_t index) __attribute__ ((weak)) uint8_t const *tud_descriptor_configuration_cb(uint8_t index)
{ {
//log_d("%u", index); //log_d("%u", index);
return tinyusb_config_descriptor; return tinyusb_config_descriptor;
...@@ -272,7 +272,7 @@ uint8_t const *tud_descriptor_configuration_cb(uint8_t index) ...@@ -272,7 +272,7 @@ uint8_t const *tud_descriptor_configuration_cb(uint8_t index)
/** /**
* @brief Invoked when received GET DEVICE DESCRIPTOR. * @brief Invoked when received GET DEVICE DESCRIPTOR.
*/ */
uint8_t const *tud_descriptor_device_cb(void) __attribute__ ((weak)) uint8_t const *tud_descriptor_device_cb(void)
{ {
//log_d(""); //log_d("");
return (uint8_t const *)&tinyusb_device_descriptor; return (uint8_t const *)&tinyusb_device_descriptor;
...@@ -281,7 +281,7 @@ uint8_t const *tud_descriptor_device_cb(void) ...@@ -281,7 +281,7 @@ uint8_t const *tud_descriptor_device_cb(void)
/** /**
* @brief Invoked when received GET STRING DESCRIPTOR request. * @brief Invoked when received GET STRING DESCRIPTOR request.
*/ */
uint16_t const *tud_descriptor_string_cb(uint8_t index, uint16_t langid) __attribute__ ((weak)) uint16_t const *tud_descriptor_string_cb(uint8_t index, uint16_t langid)
{ {
//log_d("%u (0x%x)", index, langid); //log_d("%u (0x%x)", index, langid);
static uint16_t _desc_str[127]; static uint16_t _desc_str[127];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment