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