File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ static tinyusb_endpoints_usage_t tinyusb_endpoints;
259
259
/**
260
260
* @brief Invoked when received GET CONFIGURATION DESCRIPTOR.
261
261
*/
262
- uint8_t const * tud_descriptor_configuration_cb (uint8_t index )
262
+ __attribute__ (( weak )) uint8_t const * tud_descriptor_configuration_cb (uint8_t index )
263
263
{
264
264
//log_d("%u", index);
265
265
return tinyusb_config_descriptor ;
@@ -268,7 +268,7 @@ uint8_t const *tud_descriptor_configuration_cb(uint8_t index)
268
268
/**
269
269
* @brief Invoked when received GET DEVICE DESCRIPTOR.
270
270
*/
271
- uint8_t const * tud_descriptor_device_cb (void )
271
+ __attribute__ (( weak )) uint8_t const * tud_descriptor_device_cb (void )
272
272
{
273
273
//log_d("");
274
274
return (uint8_t const * )& tinyusb_device_descriptor ;
@@ -277,7 +277,7 @@ uint8_t const *tud_descriptor_device_cb(void)
277
277
/**
278
278
* @brief Invoked when received GET STRING DESCRIPTOR request.
279
279
*/
280
- uint16_t const * tud_descriptor_string_cb (uint8_t index , uint16_t langid )
280
+ __attribute__ (( weak )) uint16_t const * tud_descriptor_string_cb (uint8_t index , uint16_t langid )
281
281
{
282
282
//log_d("%u (0x%x)", index, langid);
283
283
static uint16_t _desc_str [127 ];
You can’t perform that action at this time.
0 commit comments