Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
9406f8e4
Unverified
Commit
9406f8e4
authored
Jul 29, 2021
by
chegewara
Committed by
GitHub
Jul 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Weaken tinyusb callbacks (#5475)
parent
65eafd16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cores/esp32/esp32-hal-tinyusb.c
cores/esp32/esp32-hal-tinyusb.c
+3
-3
No files found.
cores/esp32/esp32-hal-tinyusb.c
View file @
9406f8e4
...
@@ -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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment