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
41ad6bd6
Commit
41ad6bd6
authored
Jan 21, 2010
by
Dean Camera
Browse files
New revision Benito hardware will be 16MHz, and use the ATMEGA32U2. Change makefile to suit.
parent
36dec204
Changes
2
Hide whitespace changes
Inline
Side-by-side
Projects/Benito/Benito.c
View file @
41ad6bd6
...
...
@@ -145,9 +145,6 @@ void SetupHardware(void)
MCUSR
&=
~
(
1
<<
WDRF
);
wdt_disable
();
/* Disable clock division */
clock_prescale_set
(
clock_div_1
);
/* Hardware Initialization */
Serial_Init
(
9600
,
false
);
LEDs_Init
();
...
...
@@ -252,7 +249,7 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t* const C
{
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 asserted - if so, start the target AVR's reset pulse */
if
(
!
(
PreviousDTRState
)
&&
CurrentDTRState
)
{
LEDs_SetAllLEDs
(
LEDMASK_BUSY
);
...
...
Projects/Benito/makefile
View file @
41ad6bd6
...
...
@@ -60,7 +60,7 @@
# MCU name
MCU
=
at
90usb16
2
MCU
=
at
mega32u
2
# Target board (see library "Board Types" documentation, USER or blank for projects not requiring
...
...
@@ -80,7 +80,7 @@ BOARD = USER
# does not *change* the processor frequency - it should merely be updated to
# reflect the processor speed set externally so that the code can use accurate
# software delays.
F_CPU
=
8
000000
F_CPU
=
16
000000
# Input clock frequency.
...
...
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