Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
7df76031
Commit
7df76031
authored
Aug 21, 2019
by
schneider
Browse files
fix(maxusb): Disable confusing message
parent
2e547c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/sdk/Libraries/MAXUSB/src/core/musbhsfc/usb.c
View file @
7df76031
...
...
@@ -45,6 +45,8 @@
#define USBHS_M31_CLOCK_RECOVERY
/* #define MAXUSB_DEBUG 1 */
typedef
enum
{
SETUP_IDLE
,
SETUP_NODATA
,
...
...
@@ -879,7 +881,9 @@ int usb_get_setup(usb_setup_pkt *sud)
MXC_USBHS
->
index
=
0
;
if
((
sud
==
NULL
)
||
!
(
MXC_USBHS
->
csr0
&
MXC_F_USBHS_CSR0_OUTPKTRDY
))
{
#if MAXUSB_DEBUG
printf
(
"MAXUSB ISSUE 3
\n
"
);
#endif
MAXUSB_EXIT_CRITICAL
();
return
-
1
;
}
...
...
@@ -1029,7 +1033,9 @@ int usb_read_endpoint(usb_req_t *req)
/* EP must be enabled (configured) and not stalled */
if
(
!
usb_is_configured
(
ep
))
{
#if MAXUSB_DEBUG
printf
(
"MAXUSB ISSUE 1
\n
"
);
#endif
MAXUSB_EXIT_CRITICAL
();
return
-
1
;
}
...
...
@@ -1104,7 +1110,9 @@ int usb_read_endpoint(usb_req_t *req)
}
}
}
else
{
#if MAXUSB_DEBUG
printf
(
"MAXUSB ISSUE 2
\n
"
);
#endif
MAXUSB_EXIT_CRITICAL
();
}
...
...
Write
Preview
Supports
Markdown
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