Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
36dec204
Commit
36dec204
authored
Jan 21, 2010
by
Dean Camera
Browse files
Update Benito project -- device should be reset when DTR is *asserted* not deasserted.
parent
5a4197a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Projects/Benito/Benito.c
View file @
36dec204
...
@@ -253,7 +253,7 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t* const C
...
@@ -253,7 +253,7 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t* const C
bool
CurrentDTRState
=
(
CDCInterfaceInfo
->
State
.
ControlLineStates
.
HostToDevice
&
CDC_CONTROL_LINE_OUT_DTR
);
bool
CurrentDTRState
=
(
CDCInterfaceInfo
->
State
.
ControlLineStates
.
HostToDevice
&
CDC_CONTROL_LINE_OUT_DTR
);
/* Check if the DTR line has been de-asserted - if so, start the target AVR's reset pulse */
/* Check if the DTR line has been de-asserted - if so, start the target AVR's reset pulse */
if
(
PreviousDTRState
&&
!
(
CurrentDTRState
)
)
if
(
!
(
PreviousDTRState
)
&&
CurrentDTRState
)
{
{
LEDs_SetAllLEDs
(
LEDMASK_BUSY
);
LEDs_SetAllLEDs
(
LEDMASK_BUSY
);
...
...
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