New revision Benito hardware will be 16MHz, and use the ATMEGA32U2. Change makefile...
authorDean Camera <dean@fourwalledcubicle.com>
Thu, 21 Jan 2010 06:25:07 +0000 (06:25 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Thu, 21 Jan 2010 06:25:07 +0000 (06:25 +0000)
Projects/Benito/Benito.c
Projects/Benito/makefile

index 414994a..86da27a 100644 (file)
@@ -145,9 +145,6 @@ void SetupHardware(void)
        MCUSR &= ~(1 << WDRF);\r
        wdt_disable();\r
 \r
        MCUSR &= ~(1 << WDRF);\r
        wdt_disable();\r
 \r
-       /* Disable clock division */\r
-       clock_prescale_set(clock_div_1);\r
-\r
        /* Hardware Initialization */\r
        Serial_Init(9600, false);\r
        LEDs_Init();\r
        /* Hardware Initialization */\r
        Serial_Init(9600, false);\r
        LEDs_Init();\r
@@ -252,7 +249,7 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t* const C
 {\r
        bool CurrentDTRState = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR);\r
 \r
 {\r
        bool CurrentDTRState = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR);\r
 \r
-       /* Check if the DTR line has been de-asserted - if so, start the target AVR's reset pulse */\r
+       /* Check if the DTR line has been asserted - if so, start the target AVR's reset pulse */\r
        if (!(PreviousDTRState) && CurrentDTRState)\r
        {\r
                LEDs_SetAllLEDs(LEDMASK_BUSY);\r
        if (!(PreviousDTRState) && CurrentDTRState)\r
        {\r
                LEDs_SetAllLEDs(LEDMASK_BUSY);\r
index 9d898e5..2f00403 100644 (file)
@@ -60,7 +60,7 @@
 \r
 \r
 # MCU name\r
 \r
 \r
 # MCU name\r
-MCU = at90usb162\r
+MCU = atmega32u2\r
 \r
 \r
 # Target board (see library "Board Types" documentation, USER or blank for projects not requiring\r
 \r
 \r
 # Target board (see library "Board Types" documentation, USER or blank for projects not requiring\r
@@ -80,7 +80,7 @@ BOARD  = USER
 #     does not *change* the processor frequency - it should merely be updated to\r
 #     reflect the processor speed set externally so that the code can use accurate\r
 #     software delays.\r
 #     does not *change* the processor frequency - it should merely be updated to\r
 #     reflect the processor speed set externally so that the code can use accurate\r
 #     software delays.\r
-F_CPU = 8000000\r
+F_CPU = 16000000\r
 \r
 \r
 # Input clock frequency.\r
 \r
 \r
 # Input clock frequency.\r