superficial changes to stock LUFA CDC bootloader - renamed project, removed unnecessary files

This commit is contained in:
Zach Eveland 2012-01-19 20:31:35 -05:00
parent 9c0352b22a
commit 98b0491fbd
9 changed files with 240 additions and 1804 deletions

5
.gitignore vendored
View File

@ -1,5 +0,0 @@
app/bin/
app/pde.jar
build/macosx/work/
core/bin/
core/core.jar

View File

@ -1 +0,0 @@
<AVRStudio><MANAGEMENT><ProjectName>BootloaderCDC</ProjectName><Created>13-Jul-2010 14:41:25</Created><LastEdit>13-Jul-2010 14:42:12</LastEdit><ICON>241</ICON><ProjectType>0</ProjectType><Created>13-Jul-2010 14:41:25</Created><Version>4</Version><Build>4, 18, 0, 685</Build><ProjectTypeName>AVR GCC</ProjectTypeName></MANAGEMENT><CODE_CREATION><ObjectFile>BootloaderCDC.elf</ObjectFile><EntryFile></EntryFile><SaveFolder>C:\Users\Dean\Documents\Electronics\Projects\WORK\LUFAWORK\Bootloaders\CDC\</SaveFolder></CODE_CREATION><DEBUG_TARGET><CURRENT_TARGET></CURRENT_TARGET><CURRENT_PART></CURRENT_PART><BREAKPOINTS></BREAKPOINTS><IO_EXPAND><HIDE>false</HIDE></IO_EXPAND><REGISTERNAMES><Register>R00</Register><Register>R01</Register><Register>R02</Register><Register>R03</Register><Register>R04</Register><Register>R05</Register><Register>R06</Register><Register>R07</Register><Register>R08</Register><Register>R09</Register><Register>R10</Register><Register>R11</Register><Register>R12</Register><Register>R13</Register><Register>R14</Register><Register>R15</Register><Register>R16</Register><Register>R17</Register><Register>R18</Register><Register>R19</Register><Register>R20</Register><Register>R21</Register><Register>R22</Register><Register>R23</Register><Register>R24</Register><Register>R25</Register><Register>R26</Register><Register>R27</Register><Register>R28</Register><Register>R29</Register><Register>R30</Register><Register>R31</Register></REGISTERNAMES><COM></COM><COMType>0</COMType><WATCHNUM>0</WATCHNUM><WATCHNAMES><Pane0></Pane0><Pane1></Pane1><Pane2></Pane2><Pane3></Pane3></WATCHNAMES><BreakOnTrcaeFull>0</BreakOnTrcaeFull></DEBUG_TARGET><Debugger><Triggers></Triggers></Debugger><AVRGCCPLUGIN><FILES><SOURCEFILE>BootloaderCDC.c</SOURCEFILE><SOURCEFILE>Descriptors.c</SOURCEFILE><HEADERFILE>BootloaderCDC.h</HEADERFILE><HEADERFILE>Descriptors.h</HEADERFILE><OTHERFILE>makefile</OTHERFILE></FILES><CONFIGS><CONFIG><NAME>default</NAME><USESEXTERNALMAKEFILE>YES</USESEXTERNALMAKEFILE><EXTERNALMAKEFILE>makefile</EXTERNALMAKEFILE><PART>atmega128</PART><HEX>1</HEX><LIST>1</LIST><MAP>1</MAP><OUTPUTFILENAME>BootloaderCDC.elf</OUTPUTFILENAME><OUTPUTDIR>default\</OUTPUTDIR><ISDIRTY>1</ISDIRTY><OPTIONS/><INCDIRS/><LIBDIRS/><LIBS/><LINKOBJECTS/><OPTIONSFORALL>-Wall -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums</OPTIONSFORALL><LINKEROPTIONS></LINKEROPTIONS><SEGMENTS/></CONFIG></CONFIGS><LASTCONFIG>default</LASTCONFIG><USES_WINAVR>1</USES_WINAVR><GCC_LOC>C:\WinAVR-20100110\bin\avr-gcc.exe</GCC_LOC><MAKE_LOC>C:\WinAVR-20100110\utils\bin\make.exe</MAKE_LOC></AVRGCCPLUGIN><ProjectFiles><Files><Name>C:\Users\Dean\Documents\Electronics\Projects\WORK\LUFAWORK\Bootloaders\CDC\BootloaderCDC.h</Name><Name>C:\Users\Dean\Documents\Electronics\Projects\WORK\LUFAWORK\Bootloaders\CDC\Descriptors.h</Name><Name>C:\Users\Dean\Documents\Electronics\Projects\WORK\LUFAWORK\Bootloaders\CDC\BootloaderCDC.c</Name><Name>C:\Users\Dean\Documents\Electronics\Projects\WORK\LUFAWORK\Bootloaders\CDC\Descriptors.c</Name></Files></ProjectFiles><IOView><usergroups/><sort sorted="0" column="0" ordername="0" orderaddress="0" ordergroup="0"/></IOView><Files></Files><Events><Bookmarks></Bookmarks></Events><Trace><Filters></Filters></Trace></AVRStudio>

View File

@ -1,119 +0,0 @@
/** \file
*
* This file contains special DoxyGen information for the generation of the main page and other special
* documentation pages. It is not a project source file.
*/
/** \mainpage CDC Class USB AVR Bootloader
*
* \section Sec_Compat Demo Compatibility:
*
* The following list indicates what microcontrollers are compatible with this demo.
*
* - Series 7 USB AVRs (AT90USBxxx7)
* - Series 6 USB AVRs (AT90USBxxx6)
* - Series 4 USB AVRs (ATMEGAxxU4)
* - Series 2 USB AVRs (AT90USBxx2, ATMEGAxxU2)
*
* \section Sec_Info USB Information:
*
* The following table gives a rundown of the USB utilization of this demo.
*
* <table>
* <tr>
* <td><b>USB Mode:</b></td>
* <td>Device</td>
* </tr>
* <tr>
* <td><b>USB Class:</b></td>
* <td>Communications Device Class (CDC)</td>
* </tr>
* <tr>
* <td><b>USB Subclass:</b></td>
* <td>Abstract Control Model (ACM)</td>
* </tr>
* <tr>
* <td><b>Relevant Standards:</b></td>
* <td>USBIF CDC Class Standard</td>
* </tr>
* <tr>
* <td><b>Usable Speeds:</b></td>
* <td>Full Speed Mode</td>
* </tr>
* </table>
*
* \section Sec_Description Project Description:
*
* This bootloader enumerates to the host as a CDC Class device (virtual serial port), allowing for AVR109
* protocol compatible programming software to load firmware onto the AVR.
*
* Out of the box this bootloader builds for the USB1287, and will fit into 4KB of bootloader space. If
* you wish to enlarge this space and/or change the AVR model, you will need to edit the BOOT_START and MCU
* values in the accompanying makefile.
*
* When the bootloader is running, the board's LED(s) will flash at regular intervals to distinguish the
* bootloader from the normal user application.
*
* \section Sec_Installation Driver Installation
*
* After running this bootloader for the first time on a new computer, you will need to supply the .INF
* file located in this bootloader project's directory as the device's driver when running under Windows.
* This will enable Windows to use its inbuilt CDC drivers, negating the need for custom drivers for the
* device. Other Operating Systems should automatically use their own inbuilt CDC-ACM drivers.
*
* \section Sec_HostApp Host Controller Application
*
* This bootloader is compatible with the open source application AVRDUDE, Atmel's AVRPROG, or other
* applications implementing the AVR109 protocol, which is documented on the Atmel website as an application
* note.
*
* \subsection SSec_AVRDude AVRDUDE (Windows, Mac, Linux)
*
* AVRDude is a free, cross-platform and open source command line programmer for Atmel and third party AVR
* programmers. It is available on the the Windows platform as part of the "WinAVR" package, or on other systems
* either from a build from the official source code, or in many distributions as a precompiled binary package.
*
* To load a new HEX file with AVRDude, specify "AVR109" as the programmer, with the allocated COM port. On Windows
* platforms this will be a COMx port name:
* \code
* avrdude -c AVR109 -p at90usb1287 -P COM0 -U flash:w:Mouse.hex
* \endcode
*
* On Linux systems, this will typically be a /dev/ttyACMx port name:
* \code
* avrdude -c AVR109 -p at90usb1287 -P /dev/ttyACM0 -U flash:w:Mouse.hex
* \endcode
*
* Refer to the AVRDude project documentation for additional usage instructions.
*
* \section Sec_Options Project Options
*
* The following defines can be found in this demo, which can control the demo behaviour when defined, or changed in value.
*
* <table>
* <tr>
* <td>NO_BLOCK_SUPPORT</td>
* <td>Makefile LUFA_OPTS</td>
* <td>Define to disable memory block read/write support in the bootloader, requiring all reads and writes to be made
* using the byte-level commands.</td>
* </tr>
* <tr>
* <td>NO_EEPROM_BYTE_SUPPORT</td>
* <td>Makefile LUFA_OPTS</td>
* <td>Define to disable EEPROM memory byte read/write support in the bootloader, requiring all EEPROM reads and writes
* to be made using the block-level commands.</td>
* </tr>
* <tr>
* <td>NO_FLASH_BYTE_SUPPORT</td>
* <td>Makefile LUFA_OPTS</td>
* <td>Define to disable FLASH memory byte read/write support in the bootloader, requiring all FLASH reads and writes
* to be made using the block-level commands.</td>
* </tr>
* <tr>
* <td>NO_LOCK_BYTE_WRITE_SUPPORT</td>
* <td>Makefile LUFA_OPTS</td>
* <td>Define to disable lock byte write support in the bootloader, preventing the lock bits from being set programmatically.</td>
* </tr>
* </table>
*/

View File

@ -33,8 +33,8 @@
* Main source file for the CDC class bootloader. This file contains the complete bootloader logic.
*/
#define INCLUDE_FROM_BOOTLOADERCDC_C
#include "BootloaderCDC.h"
#define INCLUDE_FROM_CATERINA_C
#include "Caterina.h"
/** Contains the current baud rate and other settings of the first virtual serial port. This must be retained as some
* operating systems will not open the port unless the settings can be set successfully.

View File

@ -76,7 +76,7 @@
void EVENT_USB_Device_ConfigurationChanged(void);
#if defined(INCLUDE_FROM_BOOTLOADERCDC_C) || defined(__DOXYGEN__)
#if defined(INCLUDE_FROM_CATERINA_C) || defined(__DOXYGEN__)
#if !defined(NO_BLOCK_SUPPORT)
static void ReadWriteMemoryBlock(const uint8_t Command);
#endif

View File

@ -0,0 +1,232 @@
:1070000055C000006EC000006CC000006AC00000E7
:1070100068C0000066C0000064C0000062C00000DC
:1070200060C000005EC0000040C400005AC0000004
:1070300058C0000056C0000054C0000052C00000FC
:1070400050C000004EC000004CC000004AC000000C
:1070500049C0000046C0000044C0000042C000001B
:1070600040C000003EC000003CC000003AC000002C
:1070700038C0000036C0000034C0000032C000003C
:1070800030C000002EC000002CC000002AC000004C
:1070900028C0000026C0000024C0000022C000005C
:1070A00020C000001EC000001CC0000011241FBE34
:1070B000CFEFDAE0DEBFCDBF11E0A0E0B1E0EEEC53
:1070C000FDE702C005900D92AC38B107D9F711E089
:1070D000ACE8B1E001C01D92AA39B107E1F719D3BC
:1070E00074C68ECF1F920F920FB60F9211248F93FA
:1070F0009F938BB190E389278BB99F918F910F90CC
:107100000FBE0F901F90189584E08093E9000DC08A
:107110008091E8008B778093E80003C08EB38823CA
:1071200051F08091E80082FFF9CF8091E80085FF5F
:10713000EFCF8091F1000895982F83E08093E900CC
:107140008091E80085FD0DC08091E8008E778093E6
:10715000E80003C08EB3882331F08091E80080FFFF
:10716000F9CF9093F10008954F925F926F927F92C2
:107170008F929F92AF92BF92CF92DF92EF92FF9247
:107180000F931F93CF93DF9384E08093E900809166
:10719000E80082FF45C2B8DF182F853419F4109239
:1071A000080103C0843519F4AFDF8DE00FC28C34C1
:1071B000E1F38035D1F3843721F484E4BDDF80E04E
:1071C00005C2813611F489E501C28134B1F49CDF36
:1071D000182F9ADF90E0880F991FAA2797FDA09596
:1071E000BA2F312F330F20E0442737FD4095542F1D
:1071F000822B932BA42BB52BBAC1803711F483E5D6
:10720000E5C1833549F4C0E0D1E0899195DF21E003
:10721000C730D207D1F7DBC1863521F481E38CDF9B
:1072200080E3D4C1833731F487E886DF85E984DFE2
:107230008EE1CCC18536B9F4E0E0F0E093E085E082
:1072400090935700E89507B600FCFDCF8093570058
:10725000E89507B600FCFDCFE058FF4FA0E7E0300F
:10726000FA0771F7A2CF8C3651F44EDF809599E082
:10727000E1E0F0E0082E90935700E89596CF823732
:1072800039F4E1E0F0E089E08093570084919EC1F9
:10729000863439F4E0E0F0E089E08093570084918F
:1072A00095C18E3439F4E3E0F0E089E08093570033
:1072B00084918CC1813539F4E2E0F0E089E080937B
:1072C0005700849183C1823631F489E535DF80E04F
:1072D00033DF80E87BC1823419F0873609F0DBC0E8
:1072E00013DF082F11DFF82E0FDF682E8554823050
:1072F00008F06BC1902F80E0CF2DD0E0C82BD92BA8
:10730000173609F04BC081E180935700E895DD24E2
:10731000CC24C3943FC0E0908C01F0908D0100918B
:107320008E0110918F01B6E46B16D9F4ED2DF0E0CB
:10733000EE29FF29E4918E2FFFDEDD2081F082E02F
:1073400090E0A0E0B0E0E80EF91E0A1F1B1FE092DB
:107350008C01F0928D0100938E0110938F01DC243B
:1073600018C0D801C701B695A7959795879517D5E9
:10737000E3DE82E090E0A0E0B0E0E80EF91E0A1F34
:107380001B1FE0928C01F0928D0100938E011093EF
:107390008F012197209709F0BECF19C180908C01F1
:1073A00090908D01A0908E01B0908F0196E46916A7
:1073B00009F05DC083E0F40180935700E89507B6BB
:1073C00000FCFDCF54C0F6E46F1661F5772031F173
:1073D000E0908C01F0908D0100918E0110918F0151
:1073E00093DED82ECC24852D90E08C299D29F701A1
:1073F0000C0140925700E895112482E090E0A0E053
:10740000B0E0E80EF91E0A1F1B1FE0928C01F092FB
:107410008D0100938E0110938F0102C075DE582EEE
:10742000742423C0E0908C01F0908D0100918E01B6
:1074300010918F0116950795F794E79465DE682FF4
:10744000C701B5D480918C0190918D01A0918E01DE
:10745000B0918F010296A11DB11D80938C01909374
:107460008D01A0938E01B0938F01219704C0552404
:10747000772444244394209709F0A5CF96E4691615
:1074800009F093CE85E0F40180935700E89507B6A4
:1074900000FCFDCF8ACE833471F400918C011091F1
:1074A0008D0132DE90E021E0F8010C0120935700BD
:1074B000E89511247ACE833619F5E0908C01F0908E
:1074C0008D0100918E0110918F011EDEF701E160A8
:1074D00090E021E00C0120935700E895112482E010
:1074E00090E0A0E0B0E0E80EF91E0A1F1B1FE0923A
:1074F0008C01F0928D0100938E0110938F0155CE77
:107500008D3661F4E0918C01F0918D0185E08093DE
:107510005700E89507B600FCFDCF47CE823551F401
:10752000E0918C01F0918D0105911491812F04DE81
:10753000802F4CC0843421F5E0908C01F0908D01B7
:1075400000918E0110918F0116950795F794E7949D
:10755000DBDD682FC7012BD480918C0190918D01C8
:10756000A0918E01B0918F010296A11DB11D809353
:107570008C0190938D01A0938E01B0938F0115CE55
:10758000843609F5E0908C01F0908D0100918E0118
:1075900010918F01D801C701B695A795979587954A
:1075A000FED3CADD82E090E0A0E0B0E0E80EF91E74
:1075B0000A1F1B1FE0928C01F0928D0100938E0137
:1075C00010938F0104C08B3111F08FE3B5DD83E0A0
:1075D0008093E9009091E8008091E8008E77809395
:1075E000E80095FF04C010C08EB38823C9F08091D5
:1075F000E80080FFF9CF8091E8008E778093E80063
:1076000003C08EB3882361F08091E80080FFF9CF3A
:1076100084E08093E9008091E8008B778093E80014
:10762000DF91CF911F910F91FF90EF90DF90CF905E
:10763000BF90AF909F908F907F906F905F904F9092
:10764000089520919201822F8F77813269F58BB155
:1076500090E389278BB9809193018032A1F0813228
:1076600019F5213A09F58091E800877F8093E800B9
:1076700089E091E067E070E0C9D18091E8008B7704
:107680008093E8000895213279F48091E800877FA3
:107690008093E80089E091E067E070E01BD2809180
:1076A000E8008E778093E800089582E061EC42E084
:1076B00073D083E061E842E16FD084E060E842E1AA
:1076C0006BC01F9384B7877F84BF88E10FB6F8949F
:1076D00080936000109260000FBE80E090E020E890
:1076E0000FB6F89420936100809361000FBE11E003
:1076F00015BF82E085BFC1D08AB1806F8AB98BB1D6
:107700008F708BB910936F0083E0809381001F917D
:107710000895D7DF8BB18F7080618BB9789402C0E8
:1077200023DD2BD3809108018823D1F78091E000DD
:1077300081608093E0002CE088E190E00FB6F8943F
:10774000A895809360000FBE20936000FFCFFA01E0
:10775000923071F0933089F0913029F480E191E01A
:1077600022E130E015C080E090E020E030E010C081
:1077700082E291E02EE330E00BC0882329F480E61A
:1077800091E024E030E004C084E691E026E230E0BD
:1077900091838083C90108958093E9008091EB0073
:1077A00081608093EB001092ED006093EC004093B9
:1077B000ED008091EE00881F8827881F0895809132
:1077C000920188238CF403C08EB38823B1F080919A
:1077D000E80082FFF9CF8091E8008B778093E80082
:1077E00008958EB3882349F08091E80080FFF9CF97
:1077F0008091E8008E778093E8000895EF92FF92E1
:107800000F931F9345D04CD008ED10E0F801808114
:107810008F77808380818068808380818F7D808363
:1078200019BC1EBA1092900180EEE82EF12CF701DF
:1078300080818B7F8083F80180818160808380E0FC
:1078400060E042E0A9DFE1EEF0E080818E7F80839E
:10785000E2EEF0E0808181608083808188608083B7
:10786000F70180818E7F8083F80180818061808331
:107870001F910F91FF90EF900895E7EDF0E0808168
:10788000816080838AE482BF81E080939101B6CFDA
:10789000E8EDF0E080818E7F80831092E200089511
:1078A0001092DA001092E10008951F920F920FB625
:1078B0000F9211242F933F934F935F936F937F9376
:1078C0008F939F93AF93BF93EF93FF938091DA00D1
:1078D00080FF1BC08091D80080FF17C08091DA0024
:1078E0008E7F8093DA008091D90080FF0BC080E109
:1078F00089BD82E189BD09B400FEFDCF81E08EBB68
:107900003BD203C019BC1EBA37D28091E10080FF80
:1079100017C08091E20080FF13C08091E2008E7F4B
:107920008093E2008091E20080618093E200809188
:10793000D80080628093D80019BC85E08EBB1CD231
:107940008091E10084FF2CC08091E20084FF28C078
:1079500080E189BD82E189BD09B400FEFDCF80913F
:10796000D8008F7D8093D8008091E1008F7E809336
:10797000E1008091E2008F7E8093E2008091E2003E
:1079800081608093E20080919001882331F480919E
:10799000E30087FD02C081E001C084E08EBBECD132
:1079A0008091E10083FF21C08091E20083FF1DC030
:1079B0008091E100877F8093E10082E08EBB10928E
:1079C00090018091E1008E7F8093E1008091E20040
:1079D0008E7F8093E2008091E20080618093E200DC
:1079E00080E060E042E0D8DEC7D1FF91EF91BF9127
:1079F000AF919F918F917F916F915F914F913F9147
:107A00002F910F900FBE0F901F9018959C014091E1
:107A10009801509199014617570718F4F90190E021
:107A200044C06115710511F0AB01F8CF8091E800F9
:107A30008E778093E80040E050E0F0CF8EB388234B
:107A400009F444C0853009F443C08091E80083FF05
:107A500002C081E008958091E80082FD31C08091EC
:107A6000E80080FF22C08091F3009091F200782F0F
:107A700060E0292F30E0262B372B07C081918093BF
:107A8000F100415050402F5F3F4F4115510519F013
:107A90002830310598F390E02830310509F491E061
:107AA0008091E8008E778093E8004115510531F60A
:107AB000992321F605C08EB3882341F0853041F02B
:107AC0008091E80082FFF7CF80E0089582E008957A
:107AD00083E008959C016115710529F48091E80007
:107AE0008B778093E800F90126C08EB3882391F14B
:107AF000853091F18091E80083FF02C081E0089514
:107B00008091E80082FFF1CF06C08091F10081935F
:107B10006150704059F02091F3008091F200322FB3
:107B200020E090E0822B932B892B79F78091E8005D
:107B30008B778093E80061157105B9F605C08EB3A7
:107B4000882341F0853041F08091E80080FFF7CF35
:107B500080E0089582E0089583E008950F931F93D5
:107B6000DF93CF9300D0CDB7DEB7E2E9F1E08091AB
:107B7000F100819381E0EA39F807C9F762DD80916D
:107B8000E80083FFE4C080919201909193019530C9
:107B900009F46DC0963040F4913081F1913070F06D
:107BA000933009F0D4C02AC0983009F4A3C09930AA
:107BB00009F4B2C0963009F0CAC07CC0803809F41C
:107BC000C6C0823809F0C3C0809196018770809347
:107BD000E9008091EB001092E9002091E800277FF6
:107BE0002093E80090E025E0969587952A95E1F7A7
:107BF00081708093F1001092F10087C0882319F002
:107C0000823009F0A4C08F71823009F0A0C0809149
:107C10009401882331F520919601277009F497C0CB
:107C20002093E9008091EB0080FF1BC0933021F48A
:107C30008091EB00806213C08091EB0080618093A3
:107C4000EB0081E090E002C0880F991F2A95E2F7CF
:107C50008093EA001092EA008091EB0088608093A4
:107C6000EB001092E9008091E800877F51C08823E3
:107C700009F06DC0109194011F770FB7F8948091AF
:107C8000E800877F8093E8009ADD8091E80080FF1C
:107C9000FCCF8091E3008078812B8093E3008068A3
:107CA0008093E300112311F482E001C083E08EBBD6
:107CB0000FBF4DC08058823008F049C080919401B8
:107CC0009091950160919601AE014F5F5F4F3FDD4E
:107CD000BC01009709F43BC08091E800877F809346
:107CE000E80089819A8192DE8091E8008B77809309
:107CF000E8002DC0803859F58091E800877F809397
:107D0000E800809190018093F1008091E8008E77E7
:107D10008093E80054DD1BC08823C9F4909194013E
:107D20009230A8F48091E800877F8093E8009093D8
:107D3000900145DD80919001882331F48091E3002A
:107D400087FD02C081E001C084E08EBBAEDC809183
:107D5000E80083FF0AC08091EB0080628093EB0013
:107D60008091E800877F8093E8000F900F90CF917B
:107D7000DF911F910F91089508951F938EB388236B
:107D800061F01091E9001092E9008091E80083FF12
:107D900001C0E4DE17701093E9001F910895F9996E
:107DA000FECF92BD81BDF89A992780B50895262F00
:107DB000F999FECF1FBA92BD81BD20BD0FB6F894D0
:0E7DC000FA9AF99A0FBE01960895F894FFCF33
:107DCE004C554641434443000100000000000008AA
:107DDE001201100102000008EB034A20010000010D
:107DEE00000109023E000201008032090400000178
:107DFE0002020100052400100104240204052406D9
:107E0E000001070582030800FF09040100020A00B1
:107E1E00000007050402100001070583021000018F
:107E2E0004030904260341005600520020004300BB
:107E3E0044004300200042006F006F0074006C008D
:0C7E4E006F00610064006500720000001D
:040000030000700089
:00000001FF

File diff suppressed because it is too large Load Diff

View File

@ -1,106 +0,0 @@
;************************************************************
; Windows USB CDC ACM Setup File
; Copyright (c) 2000 Microsoft Corporation
[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%
LayoutFile=layout.inf
CatalogFile=%MFGFILENAME%.cat
DriverVer=11/15/2007,5.1.2600.0
[Manufacturer]
%MFGNAME%=DeviceList, NTamd64
[DestinationDirs]
DefaultDestDir=12
;------------------------------------------------------------------------------
; Windows 2000/XP/Vista-32bit Sections
;------------------------------------------------------------------------------
[DriverInstall.nt]
include=mdmcpq.inf
CopyFiles=DriverCopyFiles.nt
AddReg=DriverInstall.nt.AddReg
[DriverCopyFiles.nt]
usbser.sys,,,0x20
[DriverInstall.nt.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[DriverInstall.nt.Services]
AddService=usbser, 0x00000002, DriverService.nt
[DriverService.nt]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys
;------------------------------------------------------------------------------
; Vista-64bit Sections
;------------------------------------------------------------------------------
[DriverInstall.NTamd64]
include=mdmcpq.inf
CopyFiles=DriverCopyFiles.NTamd64
AddReg=DriverInstall.NTamd64.AddReg
[DriverCopyFiles.NTamd64]
%DRIVERFILENAME%.sys,,,0x20
[DriverInstall.NTamd64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[DriverInstall.NTamd64.Services]
AddService=usbser, 0x00000002, DriverService.NTamd64
[DriverService.NTamd64]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys
;------------------------------------------------------------------------------
; Vendor and Product ID Definitions
;------------------------------------------------------------------------------
; When developing your USB device, the VID and PID used in the PC side
; application program and the firmware on the microcontroller must match.
; Modify the below line to use your VID and PID. Use the format as shown below.
; Note: One INF file can be used for multiple devices with different VID and PIDs.
; For each supported device, append ",USB\VID_xxxx&PID_yyyy" to the end of the line.
;------------------------------------------------------------------------------
[SourceDisksFiles]
[SourceDisksNames]
[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_03EB&PID_204A
[DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall, USB\VID_03EB&PID_204A
;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------
;Modify these strings to customize your device
;------------------------------------------------------------------------------
[Strings]
MFGFILENAME="CDC_vista"
DRIVERFILENAME ="usbser"
MFGNAME="http://www.lufa-lib.org"
INSTDISK="LUFA CDC Bootloader Driver Installer"
DESCRIPTION="Communications Port"
SERVICE="USB RS-232 Emulation Driver"

View File

@ -48,7 +48,7 @@
# MCU name
MCU = at90usb1287
MCU = atmega32u4
# Target architecture (see library "Board Types" documentation).
@ -72,7 +72,7 @@ BOARD = USBKEY
# 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 = 8000000
F_CPU = 16000000
# Input clock frequency.
@ -94,7 +94,7 @@ F_USB = $(F_CPU)
#
# Note that the bootloader size and start address given in AVRStudio is in words and not
# bytes, and so will need to be doubled to obtain the byte address needed by AVR-GCC.
FLASH_SIZE_KB = 128
FLASH_SIZE_KB = 32
BOOT_SECTION_SIZE_KB = 4
BOOT_START = 0x$(shell echo "obase=16; ($(FLASH_SIZE_KB) - $(BOOT_SECTION_SIZE_KB)) * 1024" | bc)
@ -104,7 +104,7 @@ FORMAT = ihex
# Target file name (without extension).
TARGET = BootloaderCDC
TARGET = Caterina
# Object files directory
@ -114,7 +114,7 @@ OBJDIR = .
# Path to the LUFA library
LUFA_PATH = ../..
LUFA_PATH = ../../../../../LUFA-111009
# LUFA library compile-time options and predefined tokens