diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/boards.txt b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/boards.txt deleted file mode 100644 index 46c23128aa..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/boards.txt +++ /dev/null @@ -1,258 +0,0 @@ -# See: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification - -############################################################## - -menu.cpu=Processor - -######################################## -## RAMBo -######################################## -rambo.name=RAMBo - -rambo.upload.tool=arduino:avrdude -rambo.upload.protocol=wiring -rambo.upload.maximum_size=258048 -rambo.upload.speed=115200 - -rambo.bootloader.low_fuses=0xFF -rambo.bootloader.high_fuses=0xD8 -rambo.bootloader.extended_fuses=0xFD -rambo.bootloader.path=stk500v2 -rambo.bootloader.file=stk500boot_v2_mega2560.hex -rambo.bootloader.unlock_bits=0x3F -rambo.bootloader.lock_bits=0x0F - -rambo.build.mcu=atmega2560 -rambo.build.f_cpu=16000000L -rambo.build.board=AVR_RAMBO -rambo.build.core=arduino:arduino -rambo.build.variant=rambo - -######################################## -## Sanguino -######################################## -sanguino.name=Sanguino - -sanguino.upload.tool=arduino:avrdude -sanguino.upload.protocol=stk500 -sanguino.upload.maximum_size=131072 -sanguino.upload.speed=57600 - -sanguino.bootloader.low_fuses=0xD6 -sanguino.bootloader.high_fuses=0xDA -sanguino.bootloader.extended_fuses=0xFD -sanguino.bootloader.path=atmega -sanguino.bootloader.unlock_bits=0x3F -sanguino.bootloader.lock_bits=0x0F - -sanguino.build.mcu=atmega1284p -sanguino.build.f_cpu=16000000L -sanguino.build.board=AVR_SANGUINO -sanguino.build.core=arduino:arduino -sanguino.build.variant=sanguino - -sanguino.menu.cpu.atmega644=ATmega644P -sanguino.menu.cpu.atmega644.upload.maximum_size=63488 -sanguino.menu.cpu.atmega644.bootloader.low_fuses=0xFF -sanguino.menu.cpu.atmega644.bootloader.high_fuses=0x9A -sanguino.menu.cpu.atmega644.bootloader.extended_fuses=0xFF -sanguino.menu.cpu.atmega644.bootloader.file=ATmegaBOOT_168_atmega644p.hex -sanguino.menu.cpu.atmega644.build.mcu=atmega644p - -sanguino.menu.cpu.atmega12848m=ATmega1284p 8MHz -sanguino.menu.cpu.atmega12848m.upload.speed=19200 -sanguino.menu.cpu.atmega12848m.bootloader.file=ATmegaBOOT_168_atmega1284p_8m.hex -sanguino.menu.cpu.atmega12848m.build.f_cpu=8000000L - -sanguino.menu.cpu.atmega1284=ATmega1284p 16MHz -sanguino.menu.cpu.atmega1284.bootloader.file=ATmegaBOOT_168_atmega1284p.hex - -sanguino.menu.cpu.atmega1284m=ATmega1284p 20MHz -sanguino.menu.cpu.atmega1284m.bootloader.file=ATmegaBOOT_168_atmega1284p.hex -sanguino.menu.cpu.atmega1284m.build.f_cpu=20000000L - - -######################################## -## Gen7 -######################################## - -Gen7-644-16.name=Gen7 with ATmega644 and 16 MHz -Gen7-644-16.upload.tool= -Gen7-644-16.upload.protocol=stk500v2 -Gen7-644-16.upload.maximum_size=63488 -Gen7-644-16.upload.speed=115200 - -Gen7-644-16.bootloader.low_fuses=0xF7 -Gen7-644-16.bootloader.high_fuses=0xDC -Gen7-644-16.bootloader.extended_fuses=0xFC -Gen7-644-16.bootloader.path=Gen7 -Gen7-644-16.bootloader.file=bootloader-644-16MHz.hex -Gen7-644-16.bootloader.unlock_bits=0x3F -Gen7-644-16.bootloader.lock_bits=0x0F - -Gen7-644-16.build.mcu=atmega644 -Gen7-644-16.build.f_cpu=16000000L -Gen7-644-16.build.board= -Gen7-644-16.build.core=arduino -Gen7-644-16.build.variant=gen7 - -*** - -Gen7-644-20.name=Gen7 with ATmega644 and 20 MHz -Gen7-644-20.upload.tool= -Gen7-644-20.upload.protocol=stk500v2 -Gen7-644-20.upload.maximum_size=63488 -Gen7-644-20.upload.speed=115200 - -Gen7-644-20.bootloader.low_fuses=0xF7 -Gen7-644-20.bootloader.high_fuses=0xDC -Gen7-644-20.bootloader.extended_fuses=0xFC -Gen7-644-20.bootloader.path=Gen7 -Gen7-644-20.bootloader.file=bootloader-644-20MHz.hex -Gen7-644-20.bootloader.unlock_bits=0x3F -Gen7-644-20.bootloader.lock_bits=0x0F - -Gen7-644-20.build.mcu=atmega644 -Gen7-644-20.build.f_cpu=20000000L -Gen7-644-20.build.board= -Gen7-644-20.build.core=arduino -Gen7-644-20.build.variant=gen7 - -*** - -Gen7-644P-16.name=Gen7 with ATmega644P and 16 MHz -Gen7-644P-16.upload.tool= -Gen7-644P-16.upload.protocol=stk500v2 -Gen7-644P-16.upload.maximum_size=63488 -Gen7-644P-16.upload.speed=115200 - -Gen7-644P-16.bootloader.low_fuses=0xF7 -Gen7-644P-16.bootloader.high_fuses=0xDC -Gen7-644P-16.bootloader.extended_fuses=0xFC -Gen7-644P-16.bootloader.path=Gen7 -Gen7-644P-16.bootloader.file=bootloader-644P-16MHz.hex -Gen7-644P-16.bootloader.unlock_bits=0x3F -Gen7-644P-16.bootloader.lock_bits=0x0F - -Gen7-644P-16.build.mcu=atmega644p -Gen7-644P-16.build.f_cpu=16000000L -Gen7-644P-16.build.board= -Gen7-644P-16.build.core=arduino -Gen7-644P-16.build.variant=gen7 - -*** - -Gen7-644P-20.name=Gen7 with ATmega644P and 20 MHz -Gen7-644P-20.upload.tool= -Gen7-644P-20.upload.protocol=stk500v2 -Gen7-644P-20.upload.maximum_size=63488 -Gen7-644P-20.upload.speed=115200 - -Gen7-644P-20.bootloader.low_fuses=0xF7 -Gen7-644P-20.bootloader.high_fuses=0xDC -Gen7-644P-20.bootloader.extended_fuses=0xFC -Gen7-644P-20.bootloader.path=Gen7 -Gen7-644P-20.bootloader.file=bootloader-644P-20MHz.hex -Gen7-644P-20.bootloader.unlock_bits=0x3F -Gen7-644P-20.bootloader.lock_bits=0x0F - -Gen7-644P-20.build.mcu=atmega644p -Gen7-644P-20.build.f_cpu=20000000L -Gen7-644P-20.build.board= -Gen7-644P-20.build.core=arduino -Gen7-644P-20.build.variant=gen7 - -*** - -Gen7-1284P-16.name=Gen7 with ATmega1284P and 16 MHz -Gen7-1284P-16.upload.tool= -Gen7-1284P-16.upload.protocol=stk500v2 -Gen7-1284P-16.upload.maximum_size=129024 -Gen7-1284P-16.upload.speed=115200 - -Gen7-1284P-16.bootloader.low_fuses=0xF7 -Gen7-1284P-16.bootloader.high_fuses=0xDC -Gen7-1284P-16.bootloader.extended_fuses=0xFC -Gen7-1284P-16.bootloader.path=Gen7 -Gen7-1284P-16.bootloader.file=bootloader-1284P-16MHz.hex -Gen7-1284P-16.bootloader.unlock_bits=0x3F -Gen7-1284P-16.bootloader.lock_bits=0x0F - -Gen7-1284P-16.build.mcu=atmega1284p -Gen7-1284P-16.build.f_cpu=16000000L -Gen7-1284P-16.build.board= -Gen7-1284P-16.build.core=arduino -Gen7-1284P-16.build.variant=gen7 - -*** - -Gen7-1284P-20.name=Gen7 with ATmega1284P and 20 MHz -Gen7-1284P-20.upload.tool= -Gen7-1284P-20.upload.protocol=stk500v2 -Gen7-1284P-20.upload.maximum_size=129024 -Gen7-1284P-20.upload.speed=115200 - -Gen7-1284P-20.bootloader.low_fuses=0xF7 -Gen7-1284P-20.bootloader.high_fuses=0xDC -Gen7-1284P-20.bootloader.extended_fuses=0xFC -Gen7-1284P-20.bootloader.path=Gen7 -Gen7-1284P-20.bootloader.file=bootloader-1284P-20MHz.hex -Gen7-1284P-20.bootloader.unlock_bits=0x3F -Gen7-1284P-20.bootloader.lock_bits=0x0F - -Gen7-1284P-20.build.mcu=atmega1284p -Gen7-1284P-20.build.f_cpu=20000000L -Gen7-1284P-20.build.board= -Gen7-1284P-20.build.core=arduino -Gen7-1284P-20.build.variant=gen7 - -######################################## -## Melzi W/ ATmega1284p 16mhz -######################################## - -melzi1284.name=Melzi W/ ATmega1284p 16mhz -melzi1284.upload.tool= -melzi1284.upload.protocol=arduino -melzi1284.upload.maximum_size=129024 -melzi1284.upload.speed=57600 - -melzi1284.bootloader.low_fuses=0xD6 -melzi1284.bootloader.high_fuses=0xD4 -melzi1284.bootloader.extended_fuses=0xFD -melzi1284.bootloader.path=atmega644p -melzi1284.bootloader.file=ATmegaBOOT_1284P.hex -melzi1284.bootloader.unlock_bits=0x3F -melzi1284.bootloader.lock_bits=0x0F - -melzi1284.build.mcu=atmega1284p -melzi1284.build.f_cpu=16000000L -melzi1284.build.board= -melzi1284.build.core=arduino -melzi1284.build.variant=Melzi - -######################################## -## OMC with Atmega644 at 20Mhz -######################################## - -omc.name=OMC with Atmega644 at 20Mhz -omc.name.upload.tool= -omc.upload.protocol=stk500v2 -omc.upload.maximum_size=63488 -omc.upload.maximum_data_size=4096 -omc.upload.speed=115200 - -omc.bootloader.low_fuses=0xE7 -omc.bootloader.high_fuses=0xD4 -omc.bootloader.extended_fuses=0xFC -omc.bootloader.path=OMC -omc.bootloader.file=bootloader-644-20MHz.hex -omc.bootloader.unlock_bits=0x3F -omc.bootloader.lock_bits=0x0F - -omc.build.mcu=atmega644 -omc.build.f_cpu=20000000L -omc.build.board=AVR_OMC -omc.build.core=arduino:arduino -omc.build.variant=omc - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-1284P-16MHz.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-1284P-16MHz.hex deleted file mode 100644 index 93df372ca3..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-1284P-16MHz.hex +++ /dev/null @@ -1,113 +0,0 @@ -:020000021000EC -:10F8000011241FBE8FEF90E49EBF8DBF01C32F92C6 -:10F810003F924F925F926F927F928F929F92AF92A0 -:10F82000BF92CF92DF92EF92FF920F931F93DF93DD -:10F83000CF93CDB7DEB7C252D1400FB6F894DEBF3A -:10F840000FBECDBF44245524DD24C25EDE4F188296 -:10F85000CE51D1408824992454013AC20E9428FFF5 -:10F86000282F133059F1143028F4113081F0123060 -:10F8700000F507C0153081F1153030F1163071F701 -:10F880003DC08B3159F711E05BE1D52EE7CF8130D8 -:10F8900041F0C25EDE4F3881CE51D140831709F06E -:10F8A00019C2D226C25EDE4F2883CE51D14012E06B -:10F8B000D5CFF82EEE24D82613E0D0CF90E0E82A5A -:10F8C000F92AD22614E0CACF8E3009F003C2D82616 -:10F8D00015E044245524C2CFE1E0F0E0EC0FFD1F19 -:10F8E000E40DF51D80830894411C511CD8264E144C -:10F8F0005F0409F0B3CF720116E0B0CF8D1509F0A7 -:10F90000E9C1EAC1CC2447C08D81803311F090E079 -:10F910000AC08F81882311F49EE105C0813011F067 -:10F9200095E001C097E91A821B828D818C838E81BC -:10F930008D839E831F8247E0E42EF12C88C11A82BA -:10F9400068E06B8383E58C8394E59D83EBE4EE8331 -:10F9500085E38F8380E3888789878FE58A8782E3C1 -:10F960008B873BE0E32EF12C72C18A81813941F013 -:10F97000823941F0803911F48FE005C080E003C086 -:10F9800082E001C08AE01A828B8323E0E22EF12C10 -:10F990005EC1CC24C3941A8292E0E92EF12C58C1A6 -:10F9A0008D81882311F48EE128C0813011F085E02B -:10F9B00024C087E922C01A8229E0E1E0F0E0209328 -:10F9C000570084911BC08B81803589F48C818830ED -:10F9D00039F439E0E2E0F0E03093570084910DC053 -:10F9E00069E0E0E0F0E060935700849106C099E0A0 -:10F9F000E3E0F0E09093570084911A828B831C829D -:10FA000084E0E82EF12C23C18A8190E0A0E0B0E0F0 -:10FA1000B82EAA24992488248B8190E0A0E0B0E03D -:10FA2000DC0199278827882A992AAA2ABB2A8D814E -:10FA300090E0A0E0B0E0882A992AAA2ABB2A8C810B -:10FA400090E0A0E0B0E0BA2FA92F982F8827882A4D -:10FA5000992AAA2ABB2A88C0EA81C05EDE4FE883C1 -:10FA6000C052D140C15EDE4F1882CF51D1408B8150 -:10FA7000A82FB0E0C15EDE4F28813981CF51D1403F -:10FA8000A22BB32B933109F042C075016401CC0C59 -:10FA9000DD1CEE1CFF1C33E0F601E0925B003093AE -:10FAA0005700E89507B600FCFDCF8E01055F1F4F9C -:10FAB000F801808161810E5F1F4FA5019401220F23 -:10FAC000331F441F551F362E222490E0822993298C -:10FAD00061E00C01F90140935B0060935700E895E9 -:10FAE00011240894811C911CA11CB11C129701F7D0 -:10FAF00085E0F601E0925B0080935700E89507B639 -:10FB000000FCFDCF81E180935700E8952DC0FE01F8 -:10FB10003B9620E030E040E050E011977D0100E0AE -:10FB200010E00894E11CF11C011D111D6081F99980 -:10FB3000FECF1FBAC901880D991D92BD81BD60BD60 -:10FB40000FB6F894FA9AF99A0FBE2F5F3F4F4F4FB6 -:10FB50005F4F2E153F054007510711F03196E6CF54 -:10FB6000820E931EA41EB51E1A826EC09A81CE5DAF -:10FB7000DE4F9883C252D140CF5DDE4F1882C15212 -:10FB8000D1408B81C82EDD24CF5DDE4FE881F98125 -:10FB9000C152D140CE2ADF2A1A8289818431E1F410 -:10FBA0009601BE016D5F7F4FD501C401880F991F7B -:10FBB000AA1FBB1FABBFFC0187919691FB018083FD -:10FBC00091836E5F7F4F0894811C911CA11CB11C16 -:10FBD0002250304049F72EC0BE016D5F7F4F20E0BC -:10FBE00030E040E050E00894C108D108760100E020 -:10FBF00010E00894C11CD11C0894E11CF11C011DEB -:10FC0000111DF999FECFC901880D991D92BD81BDC5 -:10FC1000F89A80B5FB018193BF012F5F3F4F4F4F93 -:10FC20005F4F2E153F054007510759F7820E931E6F -:10FC3000A41EB51E23E0E22EF12CEC0CFD1CFB01F2 -:10FC4000108205C080EC8A8392E0E92EF12CCC244E -:10FC50008BE10E94C7FEC25EDE4F8881CE51D1404B -:10FC60000E94C7FE8F2D0E94C7FE8E2D0E94C7FEE8 -:10FC70008EE00E94C7FE85E1D82EC25EDE4FF8817D -:10FC8000CE51D140DF26DE24DF243E010894611CE2 -:10FC9000711C0AC0F30111913F01812F0E94C7FE20 -:10FCA000D1260894E108F108E114F10499F78D2DAB -:10FCB0000E94C7FECC2009F044C0C25EDE4FF8812E -:10FCC000CE51D140FF5FC25EDE4FF883CE51D140AE -:10FCD000EE24FF2410E0C2CD9981933109F4BCCE0B -:10FCE0009431B0F4933009F440CE943038F491302C -:10FCF00009F425CE923009F0A5CF04CE903109F455 -:10FD000001CE913109F445CE963009F09BCF7CCEDF -:10FD1000983109F458CE993150F4953109F49CCEBC -:10FD2000953108F423CF963109F08CCF1FCF9B314A -:10FD300009F436CE9D3109F4E7CD9A3109F082CF2E -:10FD40003ACECE5DDE4F0FB6F894DEBF0FBECDBF0C -:10FD5000CF91DF911F910F91FF90EF90DF90CF90A7 -:10FD6000BF90AF909F908F907F906F905F904F90DB -:10FD70003F902F9008958091C00087FFFCCF089599 -:10FD80008091C00087FFFCCF8091C6000895982F16 -:10FD90008091C00085FFFCCF9093C60008959B0121 -:10FDA000AC0197FF11C08091C00082608093C000B9 -:10FDB00050954095309521953F4F4F4F5F4F60E0F4 -:10FDC00074E284EF90E009C08091C0008D7F809341 -:10FDD000C00060E072E18AE790E00E9447FF2C5F7C -:10FDE0003F4F4F4F5F4F83E0569547953795279587 -:10FDF0008A95D1F7215030403093C5002093C4003C -:10FE0000089518B817B81F921F921F920895FFCF38 -:10FE100084B714BE90E083709070892B39F418B8C1 -:10FE200017B81F921F921F920895FFCF88E1809309 -:10FE3000C10060E07EE38EEF9FEF0E94CFFE0E9444 -:10FE400007FC18B817B81F921F921F920895FFCF92 -:10FE500020E030E040E050E013C02F5F3F4F4F4FB5 -:10FE60005F4F21308AE6380788E1480780E058076D -:10FE700039F418B817B81F921F921F920895FFCF38 -:10FE80008091C00087FFE9CF0E94C0FE0895A1E2E3 -:10FE90001A2EAA1BBB1BFD010DC0AA1FBB1FEE1F04 -:10FEA000FF1FA217B307E407F50720F0A21BB30B4F -:10FEB000E40BF50B661F771F881F991F1A9469F7CB -:10FEC00060957095809590959B01AC01BD01CF0127 -:02FED000089593 -:040000031000F800F1 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644-16MHz.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644-16MHz.hex deleted file mode 100644 index 58098693d6..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644-16MHz.hex +++ /dev/null @@ -1,75 +0,0 @@ -:10F800008FEF90E19EBF8DBF11241FBE5A9A00C09A -:10F81000CDB7DEB7CD51D140DEBFCDBF1092C50010 -:10F8200088E08093C40088E18093C100EE24FF2427 -:10F8300020E0552400E010E039E0432E9BE0292E23 -:10F84000312C2C0E3D1ECFC14150504060407040C5 -:10F8500011F43FE206C08091C00087FFF5CF3091E0 -:10F86000C600933021F1943028F4913099F0923011 -:10F87000C8F407C0953049F1953000F19630D1F5C4 -:10F8800035C03B3119F491E02BE134C03F3291F5A2 -:10F890003983BBC1313011F0351559F52327532E6B -:10F8A00092E028C0B32FA0E0232793E023C0832F4A -:10F8B00090E0A82BB92B232794E01CC03E30C9F45C -:10F8C000232795E0EE24FF2415C0E1E0F0E0EC0FE3 -:10F8D000FD1FEE0DFF1D30830894E11CF11C232752 -:10F8E000EA16FB0639F4D70196E004C0321709F492 -:10F8F0008CC190E044E755E962E470E0ACCF90E061 -:10F9000044C08D81803311F090E00AC08F8188233C -:10F9100011F49EE105C0813011F099E001C096E933 -:10F920001A821B828D818C838E818D839E831F82A0 -:10F9300047E050E0F4C01A8288E08B8381E48C8336 -:10F9400086E58D8382E58E8389E48F8383E58887CE -:10F9500080E589878FE58A8782E38B874BE050E0DB -:10F96000DEC08A81813941F0823941F0803911F459 -:10F970008FE005C080E003C082E001C08AE01A8207 -:10F980008B8343E050E0CBC091E01A8242E050E02C -:10F99000C7C08D81882311F48EE124C0813011F01D -:10F9A00089E020C086E91EC01A82E1E0F0E04092C2 -:10F9B0005700849118C08B81803579F48C81883010 -:10F9C00031F4E2E0F0E04092570084910BC0E0E0B7 -:10F9D000F0E040925700849105C0E3E0F0E04092EF -:10F9E000570084911A828B831C8244E050E097C0B8 -:10F9F000BC80AA248D81082F10E00A291B29000F42 -:10FA0000111F1A828AC09A8088248B81682F70E027 -:10FA100068297929933109F033C0F7EF0F3F1F07A9 -:10FA200010F0A8013FC023E0F80120935700E895AB -:10FA300007B600FCFDCFA801D1018C9111962C9145 -:10FA400011971296D22ECC2490E08C299D2921E08A -:10FA5000FA010C0120935700E89511244E5F5F4F87 -:10FA60006250704051F725E0F80120935700E89567 -:10FA700007B600FCFDCF81E180935700E89512C0E6 -:10FA8000A801FB01D10141BD52BD4F5F5F4F8D9178 -:10FA900080BDFA9AF99AF999FECF3197A1F7A8019A -:10FAA000460F571F1A828A0138C07A8066248B81DC -:10FAB000A82FB0E0A629B7291A828981843191F450 -:10FAC000BD019E012D5F3F4FF80185919491F90191 -:10FAD000808391832E5F3F4F0E5F1F4F62507040B7 -:10FAE00099F713C0A801BD019E012D5F3F4F41BD95 -:10FAF00052BD4F5F5F4FF89A80B5F90181939F0126 -:10FB000061507040A1F70A0F1B1FAD014D5F5F4FA1 -:10FB1000F901108204C080EC8A8342E050E090E05A -:10FB2000FBE1F093C6008091C00086FFFCCF80917E -:10FB3000C00080648093C0005092C6008091C000D5 -:10FB400086FFFCCF8091C00080648093C000652F49 -:10FB50005093C6008091C00086FFFCCF8091C0000A -:10FB600080648093C000342F4093C6008091C00011 -:10FB700086FFFCCF8091C00080648093C0008EE03F -:10FB80008093C6008091C00086FFFCCF8091C000AA -:10FB900080648093C00025E1252523272627FE01C8 -:10FBA000319610C030813093C6008091C00086FF2E -:10FBB000FCCF31968091C00080648093C0002327E1 -:10FBC000415050404115510569F72093C60080917E -:10FBD000C00086FFFCCF8091C00080648093C0008D -:10FBE000992349F4539444E755E962E470E090E0C6 -:10FBF000A0E0B0E030CE5A9881E180935700E895BC -:10FC000011241F921F920895FFCF9981933109F417 -:10FC1000FACE9431C8F4963009F4EACE973050F415 -:10FC2000923009F46CCE933009F49BCE913009F0F8 -:10FC300072CF81CE913109F4A7CE923108F0E1CE96 -:10FC4000903109F068CF5BCE983109F4B4CE993188 -:10FC500050F4953109F4D7CE953108F426CF96317A -:10FC600009F059CF22CF9B3109F493CE9C3120F477 -:10FC70009A3109F050CF98CE9D3109F442CE9F328F -:06FC800009F049CFB8CFE6 -:040000030000F80001 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644-20MHz.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644-20MHz.hex deleted file mode 100644 index d216c65f9b..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644-20MHz.hex +++ /dev/null @@ -1,75 +0,0 @@ -:10F800008FEF90E19EBF8DBF11241FBE5A9A00C09A -:10F81000CDB7DEB7CD51D140DEBFCDBF1092C50010 -:10F820008AE08093C40088E18093C100EE24FF2425 -:10F8300020E0552400E010E039E0432E9BE0292E23 -:10F84000312C2C0E3D1ECFC14150504060407040C5 -:10F8500011F43FE206C08091C00087FFF5CF3091E0 -:10F86000C600933021F1943028F4913099F0923011 -:10F87000C8F407C0953049F1953000F19630D1F5C4 -:10F8800035C03B3119F491E02BE134C03F3291F5A2 -:10F890003983BBC1313011F0351559F52327532E6B -:10F8A00092E028C0B32FA0E0232793E023C0832F4A -:10F8B00090E0A82BB92B232794E01CC03E30C9F45C -:10F8C000232795E0EE24FF2415C0E1E0F0E0EC0FE3 -:10F8D000FD1FEE0DFF1D30830894E11CF11C232752 -:10F8E000EA16FB0639F4D70196E004C0321709F492 -:10F8F0008CC190E041ED5AE363E570E0ACCF90E05D -:10F9000044C08D81803311F090E00AC08F8188233C -:10F9100011F49EE105C0813011F099E001C096E933 -:10F920001A821B828D818C838E818D839E831F82A0 -:10F9300047E050E0F4C01A8288E08B8381E48C8336 -:10F9400086E58D8382E58E8389E48F8383E58887CE -:10F9500080E589878FE58A8782E38B874BE050E0DB -:10F96000DEC08A81813941F0823941F0803911F459 -:10F970008FE005C080E003C082E001C08AE01A8207 -:10F980008B8343E050E0CBC091E01A8242E050E02C -:10F99000C7C08D81882311F48EE124C0813011F01D -:10F9A00089E020C086E91EC01A82E1E0F0E04092C2 -:10F9B0005700849118C08B81803579F48C81883010 -:10F9C00031F4E2E0F0E04092570084910BC0E0E0B7 -:10F9D000F0E040925700849105C0E3E0F0E04092EF -:10F9E000570084911A828B831C8244E050E097C0B8 -:10F9F000BC80AA248D81082F10E00A291B29000F42 -:10FA0000111F1A828AC09A8088248B81682F70E027 -:10FA100068297929933109F033C0F7EF0F3F1F07A9 -:10FA200010F0A8013FC023E0F80120935700E895AB -:10FA300007B600FCFDCFA801D1018C9111962C9145 -:10FA400011971296D22ECC2490E08C299D2921E08A -:10FA5000FA010C0120935700E89511244E5F5F4F87 -:10FA60006250704051F725E0F80120935700E89567 -:10FA700007B600FCFDCF81E180935700E89512C0E6 -:10FA8000A801FB01D10141BD52BD4F5F5F4F8D9178 -:10FA900080BDFA9AF99AF999FECF3197A1F7A8019A -:10FAA000460F571F1A828A0138C07A8066248B81DC -:10FAB000A82FB0E0A629B7291A828981843191F450 -:10FAC000BD019E012D5F3F4FF80185919491F90191 -:10FAD000808391832E5F3F4F0E5F1F4F62507040B7 -:10FAE00099F713C0A801BD019E012D5F3F4F41BD95 -:10FAF00052BD4F5F5F4FF89A80B5F90181939F0126 -:10FB000061507040A1F70A0F1B1FAD014D5F5F4FA1 -:10FB1000F901108204C080EC8A8342E050E090E05A -:10FB2000FBE1F093C6008091C00086FFFCCF80917E -:10FB3000C00080648093C0005092C6008091C000D5 -:10FB400086FFFCCF8091C00080648093C000652F49 -:10FB50005093C6008091C00086FFFCCF8091C0000A -:10FB600080648093C000342F4093C6008091C00011 -:10FB700086FFFCCF8091C00080648093C0008EE03F -:10FB80008093C6008091C00086FFFCCF8091C000AA -:10FB900080648093C00025E1252523272627FE01C8 -:10FBA000319610C030813093C6008091C00086FF2E -:10FBB000FCCF31968091C00080648093C0002327E1 -:10FBC000415050404115510569F72093C60080917E -:10FBD000C00086FFFCCF8091C00080648093C0008D -:10FBE000992349F4539441ED5AE363E570E090E0C2 -:10FBF000A0E0B0E030CE5A9881E180935700E895BC -:10FC000011241F921F920895FFCF9981933109F417 -:10FC1000FACE9431C8F4963009F4EACE973050F415 -:10FC2000923009F46CCE933009F49BCE913009F0F8 -:10FC300072CF81CE913109F4A7CE923108F0E1CE96 -:10FC4000903109F068CF5BCE983109F4B4CE993188 -:10FC500050F4953109F4D7CE953108F426CF96317A -:10FC600009F059CF22CF9B3109F493CE9C3120F477 -:10FC70009A3109F050CF98CE9D3109F442CE9F328F -:06FC800009F049CFB8CFE6 -:040000030000F80001 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644P-16MHz.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644P-16MHz.hex deleted file mode 100644 index a9105a2217..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644P-16MHz.hex +++ /dev/null @@ -1,75 +0,0 @@ -:10F800008FEF90E19EBF8DBF11241FBE5A9A00C09A -:10F81000CDB7DEB7CD51D140DEBFCDBF1092C50010 -:10F8200088E08093C40088E18093C100EE24FF2427 -:10F8300020E0552400E010E039E0432E93E0292E2B -:10F84000312C2C0E3D1ECDC14150504060407040C7 -:10F8500011F43FE206C08091C00087FFF5CF3091E0 -:10F86000C600933021F1943028F4913099F0923011 -:10F87000C8F407C0953049F1953000F19630D1F5C4 -:10F8800035C03B3119F491E02BE134C03F3291F5A2 -:10F890003983B9C1313011F0351559F52327532E6D -:10F8A00092E028C0B32FA0E0232793E023C0832F4A -:10F8B00090E0A82BB92B232794E01CC03E30C9F45C -:10F8C000232795E0EE24FF2415C0E1E0F0E0EC0FE3 -:10F8D000FD1FEE0DFF1D30830894E11CF11C232752 -:10F8E000EA16FB0639F4D70196E004C0321709F492 -:10F8F0008AC190E044E755E962E470E0ACCF90E063 -:10F9000044C08D81803311F090E00AC08F8188233C -:10F9100011F49EE105C0813011F09AE001C096E932 -:10F920001A821B828D818C838E818D839E831F82A0 -:10F9300047E050E0F2C01A8288E08B8381E48C8338 -:10F9400086E58D8382E58E8389E48F8383E58887CE -:10F9500080E589878FE58A8782E38B874BE050E0DB -:10F96000DCC08A81813941F0823941F0803911F45B -:10F970008FE005C080E003C082E001C08AE01A8207 -:10F980008B8343E050E0C9C091E01A8242E050E02E -:10F99000C5C08D81882311F48EE124C0813011F01F -:10F9A0008AE020C086E91EC01A82E1E0F0E04092C1 -:10F9B0005700849118C08B81803579F48C81883010 -:10F9C00031F4E2E0F0E04092570084910BC0E0E0B7 -:10F9D000F0E040925700849105C0E3E0F0E04092EF -:10F9E000570084911A828B831C8244E050E095C0BA -:10F9F000BC80AA248D81082F10E00A291B29000F42 -:10FA0000111F1A8288C09A8088248B81682F70E029 -:10FA100068297929933109F034C0F7EF0F3F1F07A8 -:10FA200010F0A80141C023E0F80120935700E895A9 -:10FA300007B600FCFDCFA801DE011B968C91119644 -:10FA40002C9111971296D22ECC2490E08C299D29CE -:10FA500021E0FA010C0120935700E89511244E5F34 -:10FA60005F4F6250704051F725E0F8012093570036 -:10FA7000E89507B600FCFDCF81E180935700E8953B -:10FA800013C0A801FB01DE011B9641BD52BD4F5FB3 -:10FA90005F4F8D9180BDFA9AF99AF999FECF31970F -:10FAA000A1F7A801460F571F1A828A0134C07A8035 -:10FAB00066248B81A82FB0E0A629B7291A828981F4 -:10FAC000843181F4BD019101F80185919491F9018E -:10FAD000808391832E5F3F4F0E5F1F4F62507040B7 -:10FAE00099F711C0A801BD01910141BD52BD4F5F01 -:10FAF0005F4FF89A80B5F90181939F016150704082 -:10FB0000A1F70A0F1B1FAD014D5F5F4FF901108276 -:10FB100004C080EC8A8342E050E090E0FBE1F09387 -:10FB2000C6008091C00086FFFCCF8091C000806439 -:10FB30008093C0005092C6008091C00086FFFCCF29 -:10FB40008091C00080648093C000652F5093C600F0 -:10FB50008091C00086FFFCCF8091C00080648093BC -:10FB6000C000342F4093C6008091C00086FFFCCFB8 -:10FB70008091C00080648093C0008EE08093C600B6 -:10FB80008091C00086FFFCCF8091C000806480938C -:10FB9000C00025E1252523272627FE01319610C028 -:10FBA00030813093C6008091C00086FFFCCF319633 -:10FBB0008091C00080648093C00023274150504052 -:10FBC0004115510569F72093C6008091C00086FF5A -:10FBD000FCCF8091C00080648093C000992349F4D9 -:10FBE000539444E755E962E470E090E0A0E0B0E0AF -:10FBF00032CE5A9881E180935700E89511241F92E4 -:10FC00001F920895FFCF9981933109F4FCCE94316E -:10FC1000C8F4963009F4ECCE973050F4923009F4E1 -:10FC20006ECE933009F49DCE913009F072CF83CE21 -:10FC3000913109F4A9CE923108F0E3CE903109F068 -:10FC400068CF5DCE983109F4B6CE993150F4953134 -:10FC500009F4D9CE953108F42ACF963109F059CF5D -:10FC600026CF9B3109F495CE9C3120F49A3109F0CE -:10FC700050CF9ACE9D3109F444CE9F3209F049CF3E -:02FC8000B8CFFB -:040000030000F80001 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644P-20MHz.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644P-20MHz.hex deleted file mode 100644 index 4ee0c6b1fc..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/Gen7/bootloader-644P-20MHz.hex +++ /dev/null @@ -1,75 +0,0 @@ -:10F800008FEF90E19EBF8DBF11241FBE5A9A00C09A -:10F81000CDB7DEB7CD51D140DEBFCDBF1092C50010 -:10F820008AE08093C40088E18093C100EE24FF2425 -:10F8300020E0552400E010E039E0432E93E0292E2B -:10F84000312C2C0E3D1ECDC14150504060407040C7 -:10F8500011F43FE206C08091C00087FFF5CF3091E0 -:10F86000C600933021F1943028F4913099F0923011 -:10F87000C8F407C0953049F1953000F19630D1F5C4 -:10F8800035C03B3119F491E02BE134C03F3291F5A2 -:10F890003983B9C1313011F0351559F52327532E6D -:10F8A00092E028C0B32FA0E0232793E023C0832F4A -:10F8B00090E0A82BB92B232794E01CC03E30C9F45C -:10F8C000232795E0EE24FF2415C0E1E0F0E0EC0FE3 -:10F8D000FD1FEE0DFF1D30830894E11CF11C232752 -:10F8E000EA16FB0639F4D70196E004C0321709F492 -:10F8F0008AC190E041ED5AE363E570E0ACCF90E05F -:10F9000044C08D81803311F090E00AC08F8188233C -:10F9100011F49EE105C0813011F09AE001C096E932 -:10F920001A821B828D818C838E818D839E831F82A0 -:10F9300047E050E0F2C01A8288E08B8381E48C8338 -:10F9400086E58D8382E58E8389E48F8383E58887CE -:10F9500080E589878FE58A8782E38B874BE050E0DB -:10F96000DCC08A81813941F0823941F0803911F45B -:10F970008FE005C080E003C082E001C08AE01A8207 -:10F980008B8343E050E0C9C091E01A8242E050E02E -:10F99000C5C08D81882311F48EE124C0813011F01F -:10F9A0008AE020C086E91EC01A82E1E0F0E04092C1 -:10F9B0005700849118C08B81803579F48C81883010 -:10F9C00031F4E2E0F0E04092570084910BC0E0E0B7 -:10F9D000F0E040925700849105C0E3E0F0E04092EF -:10F9E000570084911A828B831C8244E050E095C0BA -:10F9F000BC80AA248D81082F10E00A291B29000F42 -:10FA0000111F1A8288C09A8088248B81682F70E029 -:10FA100068297929933109F034C0F7EF0F3F1F07A8 -:10FA200010F0A80141C023E0F80120935700E895A9 -:10FA300007B600FCFDCFA801DE011B968C91119644 -:10FA40002C9111971296D22ECC2490E08C299D29CE -:10FA500021E0FA010C0120935700E89511244E5F34 -:10FA60005F4F6250704051F725E0F8012093570036 -:10FA7000E89507B600FCFDCF81E180935700E8953B -:10FA800013C0A801FB01DE011B9641BD52BD4F5FB3 -:10FA90005F4F8D9180BDFA9AF99AF999FECF31970F -:10FAA000A1F7A801460F571F1A828A0134C07A8035 -:10FAB00066248B81A82FB0E0A629B7291A828981F4 -:10FAC000843181F4BD019101F80185919491F9018E -:10FAD000808391832E5F3F4F0E5F1F4F62507040B7 -:10FAE00099F711C0A801BD01910141BD52BD4F5F01 -:10FAF0005F4FF89A80B5F90181939F016150704082 -:10FB0000A1F70A0F1B1FAD014D5F5F4FF901108276 -:10FB100004C080EC8A8342E050E090E0FBE1F09387 -:10FB2000C6008091C00086FFFCCF8091C000806439 -:10FB30008093C0005092C6008091C00086FFFCCF29 -:10FB40008091C00080648093C000652F5093C600F0 -:10FB50008091C00086FFFCCF8091C00080648093BC -:10FB6000C000342F4093C6008091C00086FFFCCFB8 -:10FB70008091C00080648093C0008EE08093C600B6 -:10FB80008091C00086FFFCCF8091C000806480938C -:10FB9000C00025E1252523272627FE01319610C028 -:10FBA00030813093C6008091C00086FFFCCF319633 -:10FBB0008091C00080648093C00023274150504052 -:10FBC0004115510569F72093C6008091C00086FF5A -:10FBD000FCCF8091C00080648093C000992349F4D9 -:10FBE000539441ED5AE363E570E090E0A0E0B0E0AB -:10FBF00032CE5A9881E180935700E89511241F92E4 -:10FC00001F920895FFCF9981933109F4FCCE94316E -:10FC1000C8F4963009F4ECCE973050F4923009F4E1 -:10FC20006ECE933009F49DCE913009F072CF83CE21 -:10FC3000913109F4A9CE923108F0E3CE903109F068 -:10FC400068CF5DCE983109F4B6CE993150F4953134 -:10FC500009F4D9CE953108F42ACF963109F059CF5D -:10FC600026CF9B3109F495CE9C3120F49A3109F0CE -:10FC700050CF9ACE9D3109F444CE9F3209F049CF3E -:02FC8000B8CFFB -:040000030000F80001 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/OMC/bootloader-644-20MHz.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/OMC/bootloader-644-20MHz.hex deleted file mode 100644 index d216c65f9b..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/OMC/bootloader-644-20MHz.hex +++ /dev/null @@ -1,75 +0,0 @@ -:10F800008FEF90E19EBF8DBF11241FBE5A9A00C09A -:10F81000CDB7DEB7CD51D140DEBFCDBF1092C50010 -:10F820008AE08093C40088E18093C100EE24FF2425 -:10F8300020E0552400E010E039E0432E9BE0292E23 -:10F84000312C2C0E3D1ECFC14150504060407040C5 -:10F8500011F43FE206C08091C00087FFF5CF3091E0 -:10F86000C600933021F1943028F4913099F0923011 -:10F87000C8F407C0953049F1953000F19630D1F5C4 -:10F8800035C03B3119F491E02BE134C03F3291F5A2 -:10F890003983BBC1313011F0351559F52327532E6B -:10F8A00092E028C0B32FA0E0232793E023C0832F4A -:10F8B00090E0A82BB92B232794E01CC03E30C9F45C -:10F8C000232795E0EE24FF2415C0E1E0F0E0EC0FE3 -:10F8D000FD1FEE0DFF1D30830894E11CF11C232752 -:10F8E000EA16FB0639F4D70196E004C0321709F492 -:10F8F0008CC190E041ED5AE363E570E0ACCF90E05D -:10F9000044C08D81803311F090E00AC08F8188233C -:10F9100011F49EE105C0813011F099E001C096E933 -:10F920001A821B828D818C838E818D839E831F82A0 -:10F9300047E050E0F4C01A8288E08B8381E48C8336 -:10F9400086E58D8382E58E8389E48F8383E58887CE -:10F9500080E589878FE58A8782E38B874BE050E0DB -:10F96000DEC08A81813941F0823941F0803911F459 -:10F970008FE005C080E003C082E001C08AE01A8207 -:10F980008B8343E050E0CBC091E01A8242E050E02C -:10F99000C7C08D81882311F48EE124C0813011F01D -:10F9A00089E020C086E91EC01A82E1E0F0E04092C2 -:10F9B0005700849118C08B81803579F48C81883010 -:10F9C00031F4E2E0F0E04092570084910BC0E0E0B7 -:10F9D000F0E040925700849105C0E3E0F0E04092EF -:10F9E000570084911A828B831C8244E050E097C0B8 -:10F9F000BC80AA248D81082F10E00A291B29000F42 -:10FA0000111F1A828AC09A8088248B81682F70E027 -:10FA100068297929933109F033C0F7EF0F3F1F07A9 -:10FA200010F0A8013FC023E0F80120935700E895AB -:10FA300007B600FCFDCFA801D1018C9111962C9145 -:10FA400011971296D22ECC2490E08C299D2921E08A -:10FA5000FA010C0120935700E89511244E5F5F4F87 -:10FA60006250704051F725E0F80120935700E89567 -:10FA700007B600FCFDCF81E180935700E89512C0E6 -:10FA8000A801FB01D10141BD52BD4F5F5F4F8D9178 -:10FA900080BDFA9AF99AF999FECF3197A1F7A8019A -:10FAA000460F571F1A828A0138C07A8066248B81DC -:10FAB000A82FB0E0A629B7291A828981843191F450 -:10FAC000BD019E012D5F3F4FF80185919491F90191 -:10FAD000808391832E5F3F4F0E5F1F4F62507040B7 -:10FAE00099F713C0A801BD019E012D5F3F4F41BD95 -:10FAF00052BD4F5F5F4FF89A80B5F90181939F0126 -:10FB000061507040A1F70A0F1B1FAD014D5F5F4FA1 -:10FB1000F901108204C080EC8A8342E050E090E05A -:10FB2000FBE1F093C6008091C00086FFFCCF80917E -:10FB3000C00080648093C0005092C6008091C000D5 -:10FB400086FFFCCF8091C00080648093C000652F49 -:10FB50005093C6008091C00086FFFCCF8091C0000A -:10FB600080648093C000342F4093C6008091C00011 -:10FB700086FFFCCF8091C00080648093C0008EE03F -:10FB80008093C6008091C00086FFFCCF8091C000AA -:10FB900080648093C00025E1252523272627FE01C8 -:10FBA000319610C030813093C6008091C00086FF2E -:10FBB000FCCF31968091C00080648093C0002327E1 -:10FBC000415050404115510569F72093C60080917E -:10FBD000C00086FFFCCF8091C00080648093C0008D -:10FBE000992349F4539441ED5AE363E570E090E0C2 -:10FBF000A0E0B0E030CE5A9881E180935700E895BC -:10FC000011241F921F920895FFCF9981933109F417 -:10FC1000FACE9431C8F4963009F4EACE973050F415 -:10FC2000923009F46CCE933009F49BCE913009F0F8 -:10FC300072CF81CE913109F4A7CE923108F0E1CE96 -:10FC4000903109F068CF5BCE983109F4B4CE993188 -:10FC500050F4953109F4D7CE953108F426CF96317A -:10FC600009F059CF22CF9B3109F493CE9C3120F477 -:10FC70009A3109F050CF98CE9D3109F442CE9F328F -:06FC800009F049CFB8CFE6 -:040000030000F80001 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168.c b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168.c deleted file mode 100644 index 09ef8e7acc..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168.c +++ /dev/null @@ -1,1071 +0,0 @@ -/**********************************************************/ -/* Serial Bootloader for Atmel megaAVR Controllers */ -/* */ -/* tested with ATmega8, ATmega128 and ATmega168 */ -/* should work with other mega's, see code for details */ -/* */ -/* ATmegaBOOT.c */ -/* */ -/* */ -/* 20090308: integrated Mega changes into main bootloader */ -/* source by D. Mellis */ -/* 20080930: hacked for Arduino Mega (with the 1280 */ -/* processor, backwards compatible) */ -/* by D. Cuartielles */ -/* 20070626: hacked for Arduino Diecimila (which auto- */ -/* resets when a USB connection is made to it) */ -/* by D. Mellis */ -/* 20060802: hacked for Arduino by D. Cuartielles */ -/* based on a previous hack by D. Mellis */ -/* and D. Cuartielles */ -/* */ -/* Monitor and debug functions were added to the original */ -/* code by Dr. Erik Lins, chip45.com. (See below) */ -/* */ -/* Thanks to Karl Pitrich for fixing a bootloader pin */ -/* problem and more informative LED blinking! */ -/* */ -/* For the latest version see: */ -/* http://www.chip45.com/ */ -/* */ -/* ------------------------------------------------------ */ -/* */ -/* based on stk500boot.c */ -/* Copyright (c) 2003, Jason P. Kyle */ -/* All rights reserved. */ -/* see avr1.org for original file and information */ -/* */ -/* This program is free software; you can redistribute it */ -/* and/or modify it under the terms of the GNU General */ -/* Public License as published by the Free Software */ -/* Foundation; either version 2 of the License, or */ -/* (at your option) any later version. */ -/* */ -/* This program is distributed in the hope that it will */ -/* be useful, but WITHOUT ANY WARRANTY; without even the */ -/* implied warranty of MERCHANTABILITY or FITNESS FOR A */ -/* PARTICULAR PURPOSE. See the GNU General Public */ -/* License for more details. */ -/* */ -/* You should have received a copy of the GNU General */ -/* Public License along with this program; if not, write */ -/* to the Free Software Foundation, Inc., */ -/* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* */ -/* Licence can be viewed at */ -/* http://www.fsf.org/licenses/gpl.txt */ -/* */ -/* Target = Atmel AVR m128,m64,m32,m16,m8,m162,m163,m169, */ -/* m8515,m8535. ATmega161 has a very small boot block so */ -/* isn't supported. */ -/* */ -/* Tested with m168 */ -/**********************************************************/ - -/* $Id$ */ - - -/* some includes */ -#include -#include -#include -#include -#include -#include - -/* the current avr-libc eeprom functions do not support the ATmega168 */ -/* own eeprom write/read functions are used instead */ -#if !defined(__AVR_ATmega168__) || !defined(__AVR_ATmega328P__) -#include -#endif - -/* Use the F_CPU defined in Makefile */ - -/* 20060803: hacked by DojoCorp */ -/* 20070626: hacked by David A. Mellis to decrease waiting time for auto-reset */ -/* set the waiting time for the bootloader */ -/* get this from the Makefile instead */ -/* #define MAX_TIME_COUNT (F_CPU>>4) */ - -/* 20070707: hacked by David A. Mellis - after this many errors give up and launch application */ -#define MAX_ERROR_COUNT 5 - -/* set the UART baud rate */ -/* 20060803: hacked by DojoCorp */ -//#define BAUD_RATE 115200 -#ifndef BAUD_RATE -#define BAUD_RATE 19200 -#endif - - -/* SW_MAJOR and MINOR needs to be updated from time to time to avoid warning message from AVR Studio */ -/* never allow AVR Studio to do an update !!!! */ -#define HW_VER 0x02 -#define SW_MAJOR 0x01 -#define SW_MINOR 0x10 - - -/* Adjust to suit whatever pin your hardware uses to enter the bootloader */ -/* ATmega128 has two UARTS so two pins are used to enter bootloader and select UART */ -/* ATmega1280 has four UARTS, but for Arduino Mega, we will only use RXD0 to get code */ -/* BL0... means UART0, BL1... means UART1 */ -#ifdef __AVR_ATmega128__ -#define BL_DDR DDRF -#define BL_PORT PORTF -#define BL_PIN PINF -#define BL0 PINF7 -#define BL1 PINF6 -#elif defined __AVR_ATmega1280__ -/* we just don't do anything for the MEGA and enter bootloader on reset anyway*/ -#elif defined __AVR_ATmega1284P_ || defined __AVR_ATmega644P__ - -#else -/* other ATmegas have only one UART, so only one pin is defined to enter bootloader */ -#define BL_DDR DDRD -#define BL_PORT PORTD -#define BL_PIN PIND -#define BL PIND6 -#endif - - -/* onboard LED is used to indicate, that the bootloader was entered (3x flashing) */ -/* if monitor functions are included, LED goes on after monitor was entered */ -#if defined __AVR_ATmega128__ || defined __AVR_ATmega1280__ -/* Onboard LED is connected to pin PB7 (e.g. Crumb128, PROBOmega128, Savvy128, Arduino Mega) */ -#define LED_DDR DDRB -#define LED_PORT PORTB -#define LED_PIN PINB -#define LED PINB7 -#elif defined __AVR_ATmega1284P__ || defined __AVR_ATmega644P__ -#define LED_DDR DDRB -#define LED_PORT PORTB -#define LED_PIN PINB -#define LED PINB0 -#else -/* Onboard LED is connected to pin PB5 in Arduino NG, Diecimila, and Duomilanuove */ -/* other boards like e.g. Crumb8, Crumb168 are using PB2 */ -#define LED_DDR DDRB -#define LED_PORT PORTB -#define LED_PIN PINB -#define LED PINB5 -#endif - - -/* monitor functions will only be compiled when using ATmega128, due to bootblock size constraints */ -#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__) -#define MONITOR 1 -#endif - - -/* define various device id's */ -/* manufacturer byte is always the same */ -#define SIG1 0x1E // Yep, Atmel is the only manufacturer of AVR micros. Single source :( - -#if defined __AVR_ATmega1280__ -#define SIG2 0x97 -#define SIG3 0x03 -#define PAGE_SIZE 0x80U //128 words - -#elif defined __AVR_ATmega1284P__ -#define SIG2 0x97 -#define SIG3 0x05 -#define PAGE_SIZE 0x080U //128 words - -#elif defined __AVR_ATmega1281__ -#define SIG2 0x97 -#define SIG3 0x04 -#define PAGE_SIZE 0x80U //128 words - -#elif defined __AVR_ATmega644P__ -#define SIG2 0x96 -#define SIG3 0x0A -#define PAGE_SIZE 0x080U //128 words - -#elif defined __AVR_ATmega128__ -#define SIG2 0x97 -#define SIG3 0x02 -#define PAGE_SIZE 0x80U //128 words - -#elif defined __AVR_ATmega64__ -#define SIG2 0x96 -#define SIG3 0x02 -#define PAGE_SIZE 0x80U //128 words - -#elif defined __AVR_ATmega32__ -#define SIG2 0x95 -#define SIG3 0x02 -#define PAGE_SIZE 0x40U //64 words - -#elif defined __AVR_ATmega16__ -#define SIG2 0x94 -#define SIG3 0x03 -#define PAGE_SIZE 0x40U //64 words - -#elif defined __AVR_ATmega8__ -#define SIG2 0x93 -#define SIG3 0x07 -#define PAGE_SIZE 0x20U //32 words - -#elif defined __AVR_ATmega88__ -#define SIG2 0x93 -#define SIG3 0x0a -#define PAGE_SIZE 0x20U //32 words - -#elif defined __AVR_ATmega168__ -#define SIG2 0x94 -#define SIG3 0x06 -#define PAGE_SIZE 0x40U //64 words - -#elif defined __AVR_ATmega328P__ -#define SIG2 0x95 -#define SIG3 0x0F -#define PAGE_SIZE 0x40U //64 words - -#elif defined __AVR_ATmega162__ -#define SIG2 0x94 -#define SIG3 0x04 -#define PAGE_SIZE 0x40U //64 words - -#elif defined __AVR_ATmega163__ -#define SIG2 0x94 -#define SIG3 0x02 -#define PAGE_SIZE 0x40U //64 words - -#elif defined __AVR_ATmega169__ -#define SIG2 0x94 -#define SIG3 0x05 -#define PAGE_SIZE 0x40U //64 words - -#elif defined __AVR_ATmega8515__ -#define SIG2 0x93 -#define SIG3 0x06 -#define PAGE_SIZE 0x20U //32 words - -#elif defined __AVR_ATmega8535__ -#define SIG2 0x93 -#define SIG3 0x08 -#define PAGE_SIZE 0x20U //32 words -#endif - - -/* function prototypes */ -void putch(char); -char getch(void); -void getNch(uint8_t); -void byte_response(uint8_t); -void nothing_response(void); -char gethex(void); -void puthex(char); -void flash_led(uint8_t); - -/* some variables */ -union address_union { - uint16_t word; - uint8_t byte[2]; -} address; - -union length_union { - uint16_t word; - uint8_t byte[2]; -} length; - -struct flags_struct { - unsigned eeprom : 1; - unsigned rampz : 1; -} flags; - -uint8_t buff[256]; -uint8_t address_high; - -uint8_t pagesz=0x80; - -uint8_t i; -uint8_t bootuart = 0; - -uint8_t error_count = 0; - -void (*app_start)(void) = 0x0000; - - -/* main program starts here */ -int main(void) -{ - uint8_t ch,ch2; - uint16_t w; - -#ifdef WATCHDOG_MODS - ch = MCUSR; - MCUSR = 0; - - WDTCSR |= _BV(WDCE) | _BV(WDE); - WDTCSR = 0; - - // Check if the WDT was used to reset, in which case we dont bootload and skip straight to the code. woot. - if (! (ch & _BV(EXTRF))) // if it's a not an external reset... - app_start(); // skip bootloader -#else - asm volatile("nop\n\t"); -#endif - - /* set pin direction for bootloader pin and enable pullup */ - /* for ATmega128, two pins need to be initialized */ -#ifdef __AVR_ATmega128__ - BL_DDR &= ~_BV(BL0); - BL_DDR &= ~_BV(BL1); - BL_PORT |= _BV(BL0); - BL_PORT |= _BV(BL1); -#else - /* We run the bootloader regardless of the state of this pin. Thus, don't - put it in a different state than the other pins. --DAM, 070709 - This also applies to Arduino Mega -- DC, 080930 - BL_DDR &= ~_BV(BL); - BL_PORT |= _BV(BL); - */ -#endif - - -#ifdef __AVR_ATmega128__ - /* check which UART should be used for booting */ - if(bit_is_clear(BL_PIN, BL0)) { - bootuart = 1; - } - else if(bit_is_clear(BL_PIN, BL1)) { - bootuart = 2; - } -#endif - -#if defined __AVR_ATmega1280__ || defined __AVR_ATmega1284P__ || defined __AVR_ATmega644P__ - /* the mega1280 chip has four serial ports ... we could eventually use any of them, or not? */ - /* however, we don't wanna confuse people, to avoid making a mess, we will stick to RXD0, TXD0 */ - bootuart = 1; -#endif - - /* check if flash is programmed already, if not start bootloader anyway */ - if(pgm_read_byte_near(0x0000) != 0xFF) { - -#ifdef __AVR_ATmega128__ - /* no UART was selected, start application */ - if(!bootuart) { - app_start(); - } -#else - /* check if bootloader pin is set low */ - /* we don't start this part neither for the m8, nor m168 */ - //if(bit_is_set(BL_PIN, BL)) { - // app_start(); - // } -#endif - } - -#ifdef __AVR_ATmega128__ - /* no bootuart was selected, default to uart 0 */ - if(!bootuart) { - bootuart = 1; - } -#endif - - - /* initialize UART(s) depending on CPU defined */ -#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__) - if(bootuart == 1) { - UBRR0L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); - UBRR0H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; - UCSR0A = 0x00; - UCSR0C = 0x06; - UCSR0B = _BV(TXEN0)|_BV(RXEN0); - } - if(bootuart == 2) { - UBRR1L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); - UBRR1H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; - UCSR1A = 0x00; - UCSR1C = 0x06; - UCSR1B = _BV(TXEN1)|_BV(RXEN1); - } -#elif defined __AVR_ATmega163__ - UBRR = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); - UBRRHI = (F_CPU/(BAUD_RATE*16L)-1) >> 8; - UCSRA = 0x00; - UCSRB = _BV(TXEN)|_BV(RXEN); -#elif defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) - -#ifdef DOUBLE_SPEED - UCSR0A = (1<> 8; -#else - UBRR0L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); - UBRR0H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; -#endif - - UCSR0B = (1<>8; // set baud rate - UBRRL = (((F_CPU/BAUD_RATE)/16)-1); - UCSRB = (1<> 8; - UCSRA = 0x00; - UCSRC = 0x06; - UCSRB = _BV(TXEN)|_BV(RXEN); -#endif - -#if defined __AVR_ATmega1280__ - /* Enable internal pull-up resistor on pin D0 (RX), in order - to supress line noise that prevents the bootloader from - timing out (DAM: 20070509) */ - /* feature added to the Arduino Mega --DC: 080930 */ - DDRE &= ~_BV(PINE0); - PORTE |= _BV(PINE0); -#endif - - - /* set LED pin as output */ - LED_DDR |= _BV(LED); - - - /* flash onboard LED to signal entering of bootloader */ -#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__) - // 4x for UART0, 5x for UART1 - flash_led(NUM_LED_FLASHES + bootuart); -#else - flash_led(NUM_LED_FLASHES); -#endif - - /* 20050803: by DojoCorp, this is one of the parts provoking the - system to stop listening, cancelled from the original */ - //putch('\0'); - - /* forever loop */ - for (;;) { - - /* get character from UART */ - ch = getch(); - - /* A bunch of if...else if... gives smaller code than switch...case ! */ - - /* Hello is anyone home ? */ - if(ch=='0') { - nothing_response(); - } - - - /* Request programmer ID */ - /* Not using PROGMEM string due to boot block in m128 being beyond 64kB boundry */ - /* Would need to selectively manipulate RAMPZ, and it's only 9 characters anyway so who cares. */ - else if(ch=='1') { - if (getch() == ' ') { - putch(0x14); - putch('A'); - putch('V'); - putch('R'); - putch(' '); - putch('I'); - putch('S'); - putch('P'); - putch(0x10); - } else { - if (++error_count == MAX_ERROR_COUNT) - app_start(); - } - } - - - /* AVR ISP/STK500 board commands DON'T CARE so default nothing_response */ - else if(ch=='@') { - ch2 = getch(); - if (ch2>0x85) getch(); - nothing_response(); - } - - - /* AVR ISP/STK500 board requests */ - else if(ch=='A') { - ch2 = getch(); - if(ch2==0x80) byte_response(HW_VER); // Hardware version - else if(ch2==0x81) byte_response(SW_MAJOR); // Software major version - else if(ch2==0x82) byte_response(SW_MINOR); // Software minor version - else if(ch2==0x98) byte_response(0x03); // Unknown but seems to be required by avr studio 3.56 - else byte_response(0x00); // Covers various unnecessary responses we don't care about - } - - - /* Device Parameters DON'T CARE, DEVICE IS FIXED */ - else if(ch=='B') { - getNch(20); - nothing_response(); - } - - - /* Parallel programming stuff DON'T CARE */ - else if(ch=='E') { - getNch(5); - nothing_response(); - } - - - /* P: Enter programming mode */ - /* R: Erase device, don't care as we will erase one page at a time anyway. */ - else if(ch=='P' || ch=='R') { - nothing_response(); - } - - - /* Leave programming mode */ - else if(ch=='Q') { - nothing_response(); -#ifdef WATCHDOG_MODS - // autoreset via watchdog (sneaky!) - WDTCSR = _BV(WDE); - while (1); // 16 ms -#endif - } - - - /* Set address, little endian. EEPROM in bytes, FLASH in words */ - /* Perhaps extra address bytes may be added in future to support > 128kB FLASH. */ - /* This might explain why little endian was used here, big endian used everywhere else. */ - else if(ch=='U') { - address.byte[0] = getch(); - address.byte[1] = getch(); - nothing_response(); - } - - - /* Universal SPI programming command, disabled. Would be used for fuses and lock bits. */ - else if(ch=='V') { - if (getch() == 0x30) { - getch(); - ch = getch(); - getch(); - if (ch == 0) { - byte_response(SIG1); - } else if (ch == 1) { - byte_response(SIG2); - } else { - byte_response(SIG3); - } - } else { - getNch(3); - byte_response(0x00); - } - } - - - /* Write memory, length is big endian and is in bytes */ - else if(ch=='d') { - length.byte[1] = getch(); - length.byte[0] = getch(); - flags.eeprom = 0; - if (getch() == 'E') flags.eeprom = 1; - for (w=0;w127) address_high = 0x01; //Only possible with m128, m256 will need 3rd address byte. FIXME - else address_high = 0x00; -#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega1284P__) - RAMPZ = address_high; -#endif - address.word = address.word << 1; //address * 2 -> byte location - /* if ((length.byte[0] & 0x01) == 0x01) length.word++; //Even up an odd number of bytes */ - if ((length.byte[0] & 0x01)) length.word++; //Even up an odd number of bytes - cli(); //Disable interrupts, just to be sure -#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__) - while(bit_is_set(EECR,EEPE)); //Wait for previous EEPROM writes to complete -#else - while(bit_is_set(EECR,EEWE)); //Wait for previous EEPROM writes to complete -#endif - asm volatile( - "clr r17 \n\t" //page_word_count - "lds r30,address \n\t" //Address of FLASH location (in bytes) - "lds r31,address+1 \n\t" - "ldi r28,lo8(buff) \n\t" //Start of buffer array in RAM - "ldi r29,hi8(buff) \n\t" - "lds r24,length \n\t" //Length of data to be written (in bytes) - "lds r25,length+1 \n\t" - "length_loop: \n\t" //Main loop, repeat for number of words in block - "cpi r17,0x00 \n\t" //If page_word_count=0 then erase page - "brne no_page_erase \n\t" - "wait_spm1: \n\t" - "lds r16,%0 \n\t" //Wait for previous spm to complete - "andi r16,1 \n\t" - "cpi r16,1 \n\t" - "breq wait_spm1 \n\t" - "ldi r16,0x03 \n\t" //Erase page pointed to by Z - "sts %0,r16 \n\t" - "spm \n\t" -#ifdef __AVR_ATmega163__ - ".word 0xFFFF \n\t" - "nop \n\t" -#endif - "wait_spm2: \n\t" - "lds r16,%0 \n\t" //Wait for previous spm to complete - "andi r16,1 \n\t" - "cpi r16,1 \n\t" - "breq wait_spm2 \n\t" - - "ldi r16,0x11 \n\t" //Re-enable RWW section - "sts %0,r16 \n\t" - "spm \n\t" -#ifdef __AVR_ATmega163__ - ".word 0xFFFF \n\t" - "nop \n\t" -#endif - "no_page_erase: \n\t" - "ld r0,Y+ \n\t" //Write 2 bytes into page buffer - "ld r1,Y+ \n\t" - - "wait_spm3: \n\t" - "lds r16,%0 \n\t" //Wait for previous spm to complete - "andi r16,1 \n\t" - "cpi r16,1 \n\t" - "breq wait_spm3 \n\t" - "ldi r16,0x01 \n\t" //Load r0,r1 into FLASH page buffer - "sts %0,r16 \n\t" - "spm \n\t" - - "inc r17 \n\t" //page_word_count++ - "cpi r17,%1 \n\t" - "brlo same_page \n\t" //Still same page in FLASH - "write_page: \n\t" - "clr r17 \n\t" //New page, write current one first - "wait_spm4: \n\t" - "lds r16,%0 \n\t" //Wait for previous spm to complete - "andi r16,1 \n\t" - "cpi r16,1 \n\t" - "breq wait_spm4 \n\t" -#ifdef __AVR_ATmega163__ - "andi r30,0x80 \n\t" // m163 requires Z6:Z1 to be zero during page write -#endif - "ldi r16,0x05 \n\t" //Write page pointed to by Z - "sts %0,r16 \n\t" - "spm \n\t" -#ifdef __AVR_ATmega163__ - ".word 0xFFFF \n\t" - "nop \n\t" - "ori r30,0x7E \n\t" // recover Z6:Z1 state after page write (had to be zero during write) -#endif - "wait_spm5: \n\t" - "lds r16,%0 \n\t" //Wait for previous spm to complete - "andi r16,1 \n\t" - "cpi r16,1 \n\t" - "breq wait_spm5 \n\t" - "ldi r16,0x11 \n\t" //Re-enable RWW section - "sts %0,r16 \n\t" - "spm \n\t" -#ifdef __AVR_ATmega163__ - ".word 0xFFFF \n\t" - "nop \n\t" -#endif - "same_page: \n\t" - "adiw r30,2 \n\t" //Next word in FLASH - "sbiw r24,2 \n\t" //length-2 - "breq final_write \n\t" //Finished - "rjmp length_loop \n\t" - "final_write: \n\t" - "cpi r17,0 \n\t" - "breq block_done \n\t" - "adiw r24,2 \n\t" //length+2, fool above check on length after short page write - "rjmp write_page \n\t" - "block_done: \n\t" - "clr __zero_reg__ \n\t" //restore zero register -#if defined __AVR_ATmega168__ || __AVR_ATmega328P__ || __AVR_ATmega128__ || __AVR_ATmega1280__ || __AVR_ATmega1281__ || __AVR_ATmega1284P__ || __AVR_ATmega644P__ - : "=m" (SPMCSR) : "M" (PAGE_SIZE) : "r0","r16","r17","r24","r25","r28","r29","r30","r31" -#else - : "=m" (SPMCR) : "M" (PAGE_SIZE) : "r0","r16","r17","r24","r25","r28","r29","r30","r31" -#endif - ); - /* Should really add a wait for RWW section to be enabled, don't actually need it since we never */ - /* exit the bootloader without a power cycle anyhow */ - } - putch(0x14); - putch(0x10); - } else { - if (++error_count == MAX_ERROR_COUNT) - app_start(); - } - } - - - /* Read memory block mode, length is big endian. */ - else if(ch=='t') { - length.byte[1] = getch(); - length.byte[0] = getch(); -#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__) - if (address.word>0x7FFF) flags.rampz = 1; // No go with m256, FIXME - else flags.rampz = 0; -#endif - address.word = address.word << 1; // address * 2 -> byte location - if (getch() == 'E') flags.eeprom = 1; - else flags.eeprom = 0; - if (getch() == ' ') { // Command terminator - putch(0x14); - for (w=0;w < length.word;w++) { // Can handle odd and even lengths okay - if (flags.eeprom) { // Byte access EEPROM read -#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) - while(EECR & (1<= 'a') { - return (a - 'a' + 0x0a); - } else if(a >= '0') { - return(a - '0'); - } - return a; -} - - -char gethex(void) { - return (gethexnib() << 4) + gethexnib(); -} - - -void puthex(char ch) { - char ah; - - ah = ch >> 4; - if(ah >= 0x0a) { - ah = ah - 0x0a + 'a'; - } else { - ah += '0'; - } - - ch &= 0x0f; - if(ch >= 0x0a) { - ch = ch - 0x0a + 'a'; - } else { - ch += '0'; - } - - putch(ah); - putch(ch); -} - - -void putch(char ch) -{ -#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__) - if(bootuart == 1) { - while (!(UCSR0A & _BV(UDRE0))); - UDR0 = ch; - } - else if (bootuart == 2) { - while (!(UCSR1A & _BV(UDRE1))); - UDR1 = ch; - } -#elif defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) - while (!(UCSR0A & _BV(UDRE0))); - UDR0 = ch; -#else - /* m8,16,32,169,8515,8535,163 */ - while (!(UCSRA & _BV(UDRE))); - UDR = ch; -#endif -} - - -char getch(void) -{ -#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__) - uint32_t count = 0; - if(bootuart == 1) { - while(!(UCSR0A & _BV(RXC0))) { - /* 20060803 DojoCorp:: Addon coming from the previous Bootloader*/ - /* HACKME:: here is a good place to count times*/ - count++; - if (count > MAX_TIME_COUNT) - app_start(); - } - - return UDR0; - } - else if(bootuart == 2) { - while(!(UCSR1A & _BV(RXC1))) { - /* 20060803 DojoCorp:: Addon coming from the previous Bootloader*/ - /* HACKME:: here is a good place to count times*/ - count++; - if (count > MAX_TIME_COUNT) - app_start(); - } - - return UDR1; - } - return 0; -#elif defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) - uint32_t count = 0; - while(!(UCSR0A & _BV(RXC0))){ - /* 20060803 DojoCorp:: Addon coming from the previous Bootloader*/ - /* HACKME:: here is a good place to count times*/ - count++; - if (count > MAX_TIME_COUNT) - app_start(); - } - return UDR0; -#else - /* m8,16,32,169,8515,8535,163 */ - uint32_t count = 0; - while(!(UCSRA & _BV(RXC))){ - /* 20060803 DojoCorp:: Addon coming from the previous Bootloader*/ - /* HACKME:: here is a good place to count times*/ - count++; - if (count > MAX_TIME_COUNT) - app_start(); - } - return UDR; -#endif -} - - -void getNch(uint8_t count) -{ - while(count--) { -#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__) - if(bootuart == 1) { - while(!(UCSR0A & _BV(RXC0))); - UDR0; - } - else if(bootuart == 2) { - while(!(UCSR1A & _BV(RXC1))); - UDR1; - } -#elif defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) - getch(); -#else - /* m8,16,32,169,8515,8535,163 */ - /* 20060803 DojoCorp:: Addon coming from the previous Bootloader*/ - //while(!(UCSRA & _BV(RXC))); - //UDR; - getch(); // need to handle time out -#endif - } -} - - -void byte_response(uint8_t val) -{ - if (getch() == ' ') { - putch(0x14); - putch(val); - putch(0x10); - } else { - if (++error_count == MAX_ERROR_COUNT) - app_start(); - } -} - - -void nothing_response(void) -{ - if (getch() == ' ') { - putch(0x14); - putch(0x10); - } else { - if (++error_count == MAX_ERROR_COUNT) - app_start(); - } -} - -void flash_led(uint8_t count) -{ - while (count--) { - LED_PORT |= _BV(LED); - _delay_ms(100); - LED_PORT &= ~_BV(LED); - _delay_ms(100); - } -} - - -/* end of file ATmegaBOOT.c */ diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168_atmega1284p.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168_atmega1284p.hex deleted file mode 100644 index 36b6e13eac..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168_atmega1284p.hex +++ /dev/null @@ -1,130 +0,0 @@ -:020000021000EC -:10F000000C9446F80C9465F80C9465F80C9465F82B -:10F010000C9465F80C9465F80C9465F80C9465F8FC -:10F020000C9465F80C9465F80C9465F80C9465F8EC -:10F030000C9465F80C9465F80C9465F80C9465F8DC -:10F040000C9465F80C9465F80C9465F80C9465F8CC -:10F050000C9465F80C9465F80C9465F80C9465F8BC -:10F060000C9465F80C9465F80C9465F80C9465F8AC -:10F070000C9465F80C9465F80C9465F80C9465F89C -:10F080000C9465F80C9465F80C9465F811241FBE77 -:10F09000CFEFD0E4DEBFCDBF11E0A0E0B1E0E8EDFE -:10F0A000F7EF01E00BBF02C007900D92A230B1074D -:10F0B000D9F712E0A2E0B1E001C01D92AD30B10776 -:10F0C000E1F70E947EF90C94EAFB0C9400F8909111 -:10F0D0000201913019F0923041F008959091C000F2 -:10F0E00095FFFCCF8093C60008959091C80095FFCE -:10F0F000FCCF8093CE0008951F93982F95959595FA -:10F1000095959595905D182F1F701A304CF4105DF1 -:10F11000892F0E9467F8812F0E9467F81F91089538 -:10F12000195A892F0E9467F8812F0E9467F81F9152 -:10F130000895EF92FF920F931F9380910201813007 -:10F1400069F1823031F080E01F910F91FF90EF90D4 -:10F150000895EE24FF2487018091C80087FD17C021 -:10F160000894E11CF11C011D111D81E4E81682E4E4 -:10F17000F8068FE0080780E0180770F3E0910401BB -:10F18000F091050109958091C80087FFE9CF809132 -:10F19000CE001F910F91FF90EF900895EE24FF2471 -:10F1A00087018091C00087FD17C00894E11CF11C05 -:10F1B000011D111D81E4E81682E4F8068FE00807BE -:10F1C00080E0180770F3E0910401F09105010995C2 -:10F1D0008091C00087FFE9CF8091C6001F910F91F9 -:10F1E000FF90EF9008951F930E9499F8182F0E94A6 -:10F1F00067F8113634F410330CF01053812F1F913F -:10F2000008951755812F1F9108951F930E94F3F8B9 -:10F21000182F0E94F3F81295107F810F1F91089507 -:10F2200020910201882339F0213031F0223061F041 -:10F2300081508823C9F708959091C00097FFFCCFB3 -:10F240009091C6008150F5CF9091C80097FFFCCFF8 -:10F250009091CE008150EDCF1F93182F0E9499F806 -:10F26000803281F0809103018F5F809303018530AC -:10F2700011F01F910895E0910401F09105010995A5 -:10F280001F91089584E10E9467F8812F0E9467F81A -:10F2900080E10E9467F8EDCF0E9499F8803271F00A -:10F2A000809103018F5F80930301853009F00895F9 -:10F2B000E0910401F09105010995089584E10E940F -:10F2C00067F880E10E9467F8089515C0289A2FEF2B -:10F2D00031EE44E0215030404040E1F700C00000F2 -:10F2E00028982FEF31EE44E0215030404040E1F7C4 -:10F2F00000C000008150882349F70895EF92FF92E3 -:10F300000F931F93CF93DF93000081E0809302015E -:10F3100080E18093C4001092C5001092C00086E086 -:10F320008093C20088E18093C100209A81E00E940E -:10F3300065F90E9499F88033B1F18133B9F18034D5 -:10F3400009F454C0813409F45AC0823409F469C004 -:10F35000853409F46CC0803531F1823521F1813575 -:10F3600011F1853509F469C0863509F471C0843618 -:10F3700009F47AC0843709F4E1C0853709F43FC144 -:10F38000863709F44AC0809103018F5F809303019F -:10F39000853079F6E0910401F091050109950E940C -:10F3A00099F8803351F60E944CF9C3CF0E9499F826 -:10F3B000803249F784E10E9467F881E40E9467F88F -:10F3C00086E50E9467F882E50E9467F880E20E9465 -:10F3D00067F889E40E9467F883E50E9467F880E592 -:10F3E0000E9467F880E10E9467F8A3CF0E9499F815 -:10F3F0008638C8F20E9499F80E944CF99ACF0E9470 -:10F4000099F8803809F414C1813809F415C182389B -:10F4100009F416C1883909F407C180E00E942CF96B -:10F4200088CF84E10E9410F90E944CF982CF85E0D8 -:10F430000E9410F90E944CF97CCF0E9499F88093A9 -:10F4400006010E9499F8809307010E944CF971CF40 -:10F450000E9499F8803309F405C183E00E9410F9F5 -:10F4600080E00E942CF965CF0E9499F880930902F0 -:10F470000E9499F88093080280910C028E7F8093FD -:10F480000C020E9499F8853409F4FDC080910802AD -:10F49000909109020097A1F068E0E62E61E0F62E57 -:10F4A00000E010E00E9499F8F70181937F010F5F5F -:10F4B0001F4F80910802909109020817190790F3D5 -:10F4C0000E9499F8803209F05ECF80910C0280FF93 -:10F4D000ECC08091060190910701880F991F9093CD -:10F4E000070180930601209108023091090221153D -:10F4F0003105E9F048E0E42E41E0F42E00E010E0B0 -:10F50000F70161917F010E94DCFB809106019091DF -:10F510000701019690930701809306010F5F1F4F2B -:10F5200020910802309109020217130748F384E181 -:10F530000E9467F880E10E9467F8FBCE0E9499F86C -:10F54000809309020E9499F8809308028091060135 -:10F550009091070197FDA3C020910C022D7F20936D -:10F560000C02880F991F90930701809306010E9457 -:10F5700099F8853409F48DC080910C028E7F8093B8 -:10F580000C020E9499F8803209F0D3CE84E10E94E7 -:10F5900067F88091080290910902009709F440C031 -:10F5A00000E010E0809106019091070116C0FC0177 -:10F5B00084910E9467F8809106019091070101965D -:10F5C00090930701809306010F5F1F4F209108025F -:10F5D000309109020217130718F520910C0220FD43 -:10F5E00033C021FFE4CFA0E0B0E080509040AF4FA7 -:10F5F000BF4FABBFFC0187910E9467F8DCCF0E9430 -:10F6000099F8803209F0BFCE84E10E9467F88EE15C -:10F610000E9467F887E90E9467F885E00E9467F812 -:10F6200080E10E9467F885CE83E00E942CF981CEAC -:10F6300082E00E942CF97DCE81E00E942CF979CEE7 -:10F6400080E10E942CF975CE0E94D4FB0E9467F8DD -:10F650008091060190910701019690930701809394 -:10F660000601B2CF0E9499F80E9499F8082F0E94D3 -:10F6700099F8002309F48BC0013009F48CC085E0AF -:10F680000E942CF956CE80910C02816080930C026E -:10F69000FDCE80910C02816080930C0272CF20918C -:10F6A0000C02226020930C025CCF8091070187FD41 -:10F6B00076C010920B0280E08BBF80910601909182 -:10F6C0000701880F991F909307018093060180918D -:10F6D000080280FF09C080910802909109020196FA -:10F6E0009093090280930802F894F999FECF1127AC -:10F6F000E0910601F0910701C8E0D1E08091080295 -:10F7000090910902103091F400915700017001307E -:10F71000D9F303E000935700E8950091570001707A -:10F720000130D9F301E100935700E8950990199051 -:10F730000091570001700130D9F301E000935700A8 -:10F74000E8951395103898F0112700915700017033 -:10F750000130D9F305E000935700E8950091570078 -:10F7600001700130D9F301E100935700E89532961A -:10F77000029709F0C7CF103011F00296E5CF11249F -:10F7800084E10E9467F880E10E9467F8D2CD8EE1A3 -:10F790000E942CF9CECD87E90E942CF9CACDF1E068 -:10F7A000F0930B0281E088CFF999FECF92BD81BD25 -:10F7B000F89A992780B50895262FF999FECF1FBA98 -:10F7C00092BD81BD20BD0FB6F894FA9AF99A0FBE8A -:08F7D00001960895F894FFCFA3 -:02F7D8008000AF -:040000031000F000F9 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168_atmega1284p_8m.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168_atmega1284p_8m.hex deleted file mode 100644 index a897b67556..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168_atmega1284p_8m.hex +++ /dev/null @@ -1,130 +0,0 @@ -:020000021000EC -:10F000000C9446F80C9465F80C9465F80C9465F82B -:10F010000C9465F80C9465F80C9465F80C9465F8FC -:10F020000C9465F80C9465F80C9465F80C9465F8EC -:10F030000C9465F80C9465F80C9465F80C9465F8DC -:10F040000C9465F80C9465F80C9465F80C9465F8CC -:10F050000C9465F80C9465F80C9465F80C9465F8BC -:10F060000C9465F80C9465F80C9465F80C9465F8AC -:10F070000C9465F80C9465F80C9465F80C9465F89C -:10F080000C9465F80C9465F80C9465F811241FBE77 -:10F09000CFEFD0E4DEBFCDBF11E0A0E0B1E0E8EDFE -:10F0A000F7EF01E00BBF02C007900D92A230B1074D -:10F0B000D9F712E0A2E0B1E001C01D92AD30B10776 -:10F0C000E1F70E947EF90C94EAFB0C9400F8909111 -:10F0D0000201913019F0923041F008959091C000F2 -:10F0E00095FFFCCF8093C60008959091C80095FFCE -:10F0F000FCCF8093CE0008951F93982F95959595FA -:10F1000095959595905D182F1F701A304CF4105DF1 -:10F11000892F0E9467F8812F0E9467F81F91089538 -:10F12000195A892F0E9467F8812F0E9467F81F9152 -:10F130000895EF92FF920F931F9380910201813007 -:10F1400069F1823031F080E01F910F91FF90EF90D4 -:10F150000895EE24FF2487018091C80087FD17C021 -:10F160000894E11CF11C011D111D81E2E81681EAE1 -:10F17000F80687E0080780E0180770F3E0910401C3 -:10F18000F091050109958091C80087FFE9CF809132 -:10F19000CE001F910F91FF90EF900895EE24FF2471 -:10F1A00087018091C00087FD17C00894E11CF11C05 -:10F1B000011D111D81E2E81681EAF80687E00807C3 -:10F1C00080E0180770F3E0910401F09105010995C2 -:10F1D0008091C00087FFE9CF8091C6001F910F91F9 -:10F1E000FF90EF9008951F930E9499F8182F0E94A6 -:10F1F00067F8113634F410330CF01053812F1F913F -:10F2000008951755812F1F9108951F930E94F3F8B9 -:10F21000182F0E94F3F81295107F810F1F91089507 -:10F2200020910201882339F0213031F0223061F041 -:10F2300081508823C9F708959091C00097FFFCCFB3 -:10F240009091C6008150F5CF9091C80097FFFCCFF8 -:10F250009091CE008150EDCF1F93182F0E9499F806 -:10F26000803281F0809103018F5F809303018530AC -:10F2700011F01F910895E0910401F09105010995A5 -:10F280001F91089584E10E9467F8812F0E9467F81A -:10F2900080E10E9467F8EDCF0E9499F8803271F00A -:10F2A000809103018F5F80930301853009F00895F9 -:10F2B000E0910401F09105010995089584E10E940F -:10F2C00067F880E10E9467F8089515C0289A2FEF2B -:10F2D00030E742E0215030404040E1F700C00000FC -:10F2E00028982FEF30E742E0215030404040E1F7CE -:10F2F00000C000008150882349F70895EF92FF92E3 -:10F300000F931F93CF93DF93000081E0809302015E -:10F3100089E18093C4001092C5001092C00086E07D -:10F320008093C20088E18093C100209A81E00E940E -:10F3300065F90E9499F88033B1F18133B9F18034D5 -:10F3400009F454C0813409F45AC0823409F469C004 -:10F35000853409F46CC0803531F1823521F1813575 -:10F3600011F1853509F469C0863509F471C0843618 -:10F3700009F47AC0843709F4E1C0853709F43FC144 -:10F38000863709F44AC0809103018F5F809303019F -:10F39000853079F6E0910401F091050109950E940C -:10F3A00099F8803351F60E944CF9C3CF0E9499F826 -:10F3B000803249F784E10E9467F881E40E9467F88F -:10F3C00086E50E9467F882E50E9467F880E20E9465 -:10F3D00067F889E40E9467F883E50E9467F880E592 -:10F3E0000E9467F880E10E9467F8A3CF0E9499F815 -:10F3F0008638C8F20E9499F80E944CF99ACF0E9470 -:10F4000099F8803809F414C1813809F415C182389B -:10F4100009F416C1883909F407C180E00E942CF96B -:10F4200088CF84E10E9410F90E944CF982CF85E0D8 -:10F430000E9410F90E944CF97CCF0E9499F88093A9 -:10F4400006010E9499F8809307010E944CF971CF40 -:10F450000E9499F8803309F405C183E00E9410F9F5 -:10F4600080E00E942CF965CF0E9499F880930902F0 -:10F470000E9499F88093080280910C028E7F8093FD -:10F480000C020E9499F8853409F4FDC080910802AD -:10F49000909109020097A1F068E0E62E61E0F62E57 -:10F4A00000E010E00E9499F8F70181937F010F5F5F -:10F4B0001F4F80910802909109020817190790F3D5 -:10F4C0000E9499F8803209F05ECF80910C0280FF93 -:10F4D000ECC08091060190910701880F991F9093CD -:10F4E000070180930601209108023091090221153D -:10F4F0003105E9F048E0E42E41E0F42E00E010E0B0 -:10F50000F70161917F010E94DCFB809106019091DF -:10F510000701019690930701809306010F5F1F4F2B -:10F5200020910802309109020217130748F384E181 -:10F530000E9467F880E10E9467F8FBCE0E9499F86C -:10F54000809309020E9499F8809308028091060135 -:10F550009091070197FDA3C020910C022D7F20936D -:10F560000C02880F991F90930701809306010E9457 -:10F5700099F8853409F48DC080910C028E7F8093B8 -:10F580000C020E9499F8803209F0D3CE84E10E94E7 -:10F5900067F88091080290910902009709F440C031 -:10F5A00000E010E0809106019091070116C0FC0177 -:10F5B00084910E9467F8809106019091070101965D -:10F5C00090930701809306010F5F1F4F209108025F -:10F5D000309109020217130718F520910C0220FD43 -:10F5E00033C021FFE4CFA0E0B0E080509040AF4FA7 -:10F5F000BF4FABBFFC0187910E9467F8DCCF0E9430 -:10F6000099F8803209F0BFCE84E10E9467F88EE15C -:10F610000E9467F887E90E9467F885E00E9467F812 -:10F6200080E10E9467F885CE83E00E942CF981CEAC -:10F6300082E00E942CF97DCE81E00E942CF979CEE7 -:10F6400080E10E942CF975CE0E94D4FB0E9467F8DD -:10F650008091060190910701019690930701809394 -:10F660000601B2CF0E9499F80E9499F8082F0E94D3 -:10F6700099F8002309F48BC0013009F48CC085E0AF -:10F680000E942CF956CE80910C02816080930C026E -:10F69000FDCE80910C02816080930C0272CF20918C -:10F6A0000C02226020930C025CCF8091070187FD41 -:10F6B00076C010920B0280E08BBF80910601909182 -:10F6C0000701880F991F909307018093060180918D -:10F6D000080280FF09C080910802909109020196FA -:10F6E0009093090280930802F894F999FECF1127AC -:10F6F000E0910601F0910701C8E0D1E08091080295 -:10F7000090910902103091F400915700017001307E -:10F71000D9F303E000935700E8950091570001707A -:10F720000130D9F301E100935700E8950990199051 -:10F730000091570001700130D9F301E000935700A8 -:10F74000E8951395103898F0112700915700017033 -:10F750000130D9F305E000935700E8950091570078 -:10F7600001700130D9F301E100935700E89532961A -:10F77000029709F0C7CF103011F00296E5CF11249F -:10F7800084E10E9467F880E10E9467F8D2CD8EE1A3 -:10F790000E942CF9CECD87E90E942CF9CACDF1E068 -:10F7A000F0930B0281E088CFF999FECF92BD81BD25 -:10F7B000F89A992780B50895262FF999FECF1FBA98 -:10F7C00092BD81BD20BD0FB6F894FA9AF99A0FBE8A -:08F7D00001960895F894FFCFA3 -:02F7D8008000AF -:040000031000F000F9 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168_atmega644p.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168_atmega644p.hex deleted file mode 100644 index 2678e0727c..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/ATmegaBOOT_168_atmega644p.hex +++ /dev/null @@ -1,126 +0,0 @@ -:10F800000C943E7C0C945B7C0C945B7C0C945B7C39 -:10F810000C945B7C0C945B7C0C945B7C0C945B7C0C -:10F820000C945B7C0C945B7C0C945B7C0C945B7CFC -:10F830000C945B7C0C945B7C0C945B7C0C945B7CEC -:10F840000C945B7C0C945B7C0C945B7C0C945B7CDC -:10F850000C945B7C0C945B7C0C945B7C0C945B7CCC -:10F860000C945B7C0C945B7C0C945B7C0C945B7CBC -:10F870000C945B7C0C945B7C0C945B7C11241FBE11 -:10F88000CFEFD0E1DEBFCDBF11E0A0E0B1E0EAEA0A -:10F89000FFEF02C005900D92A230B107D9F712E038 -:10F8A000A2E0B1E001C01D92AD30B107E1F70E94C6 -:10F8B000747D0C94D37F0C94007C90910201913064 -:10F8C00019F0923041F008959091C00095FFFCCF5F -:10F8D0008093C60008959091C80095FFFCCF809357 -:10F8E000CE0008951F93982F95959595959595958C -:10F8F000905D182F1F701A304CF4105D892F0E94F4 -:10F900005D7C812F0E945D7C1F910895195A892F7B -:10F910000E945D7C812F0E945D7C1F910895EF9273 -:10F92000FF920F931F9380910201813069F1823021 -:10F9300031F080E01F910F91FF90EF900895EE2439 -:10F94000FF2487018091C80087FD17C00894E11C3F -:10F95000F11C011D111D81E4E81682E4F8068FE018 -:10F96000080780E0180770F3E0910401F0910501A9 -:10F9700009958091C80087FFE9CF8091CE001F9143 -:10F980000F91FF90EF900895EE24FF24870180915E -:10F99000C00087FD17C00894E11CF11C011D111D5A -:10F9A00081E4E81682E4F8068FE0080780E0180793 -:10F9B00070F3E0910401F091050109958091C00078 -:10F9C00087FFE9CF8091C6001F910F91FF90EF90C4 -:10F9D00008951F930E948F7C182F0E945D7C113622 -:10F9E00034F410330CF01053812F1F9108951755E4 -:10F9F000812F1F9108951F930E94E97C182F0E9468 -:10FA0000E97C1295107F810F1F91089520910201CA -:10FA1000882339F0213031F0223061F08150882381 -:10FA2000C9F708959091C00097FFFCCF9091C60050 -:10FA30008150F5CF9091C80097FFFCCF9091CE00F8 -:10FA40008150EDCF1F93182F0E948F7C803281F060 -:10FA5000809103018F5F80930301853011F01F9126 -:10FA60000895E0910401F091050109951F91089511 -:10FA700084E10E945D7C812F0E945D7C80E10E9478 -:10FA80005D7CEDCF0E948F7C803271F0809103010C -:10FA90008F5F80930301853009F00895E0910401A0 -:10FAA000F09105010995089584E10E945D7C80E153 -:10FAB0000E945D7C089515C0289A2FEF31EE44E036 -:10FAC000215030404040E1F700C0000028982FEF5F -:10FAD00031EE44E0215030404040E1F700C00000EA -:10FAE0008150882349F70895EF92FF920F931F9357 -:10FAF000CF93DF93000081E08093020180E1809347 -:10FB0000C4001092C5001092C00086E08093C2002D -:10FB100088E18093C100209A81E00E945B7D0E9471 -:10FB20008F7C8033B1F18133B9F1803409F454C052 -:10FB3000813409F45AC0823409F469C0853409F467 -:10FB40006CC0803531F1823521F1813511F1853577 -:10FB500009F469C0863509F471C0843609F47AC0A5 -:10FB6000843709F4E1C0853709F439C1863709F4CF -:10FB70004AC0809103018F5F80930301853079F63D -:10FB8000E0910401F091050109950E948F7C80337A -:10FB900051F60E94427DC3CF0E948F7C803249F78C -:10FBA00084E10E945D7C81E40E945D7C86E50E9488 -:10FBB0005D7C82E50E945D7C80E20E945D7C89E440 -:10FBC0000E945D7C83E50E945D7C80E50E945D7CF7 -:10FBD00080E10E945D7CA3CF0E948F7C8638C8F2B2 -:10FBE0000E948F7C0E94427D9ACF0E948F7C803839 -:10FBF00009F40EC1813809F40FC1823809F410C12B -:10FC0000883909F401C180E00E94227D88CF84E117 -:10FC10000E94067D0E94427D82CF85E00E94067D83 -:10FC20000E94427D7CCF0E948F7C809306010E94BF -:10FC30008F7C809307010E94427D71CF0E948F7C50 -:10FC4000803309F4F1C083E00E94067D80E00E94C9 -:10FC5000227D65CF0E948F7C809309020E948F7C59 -:10FC60008093080280910C028E7F80930C020E9488 -:10FC70008F7C853409F4E9C08091080290910902D3 -:10FC80000097A1F068E0E62E61E0F62E00E010E0BB -:10FC90000E948F7CF70181937F010F5F1F4F80913E -:10FCA0000802909109020817190790F30E948F7CAF -:10FCB000803209F05ECF80910C0280FFE5C0809118 -:10FCC000060190910701880F991F90930701809377 -:10FCD0000601209108023091090221153105E9F051 -:10FCE00048E0E42E41E0F42E00E010E0F7016191DD -:10FCF0007F010E94C57F80910601909107010196C6 -:10FD000090930701809306010F5F1F4F2091080217 -:10FD1000309109020217130748F384E10E945D7CC9 -:10FD200080E10E945D7CFBCE0E948F7C8093090263 -:10FD30000E948F7C809308028091060190910701B8 -:10FD400097FD9CC020910C022D7F20930C02880F00 -:10FD5000991F90930701809306010E948F7C853440 -:10FD600009F486C080910C028E7F80930C020E9461 -:10FD70008F7C803209F0D3CE84E10E945D7C20919B -:10FD800008023091090221153105D1F100E010E09F -:10FD900080910601909107010CC041FF5CC0019663 -:10FDA00090930701809306010F5F1F4F02171307FF -:10FDB00038F540910C0240FFF0CF0E94BD7F0E94B9 -:10FDC0005D7C809106019091070101969093070157 -:10FDD000809306012091080230910902E5CF0E942C -:10FDE0008F7C803209F0C5CE84E10E945D7C8EE17B -:10FDF0000E945D7C86E90E945D7C8AE00E945D7CB9 -:10FE000080E10E945D7C8BCE83E00E94227D87CEC4 -:10FE100082E00E94227D83CE81E00E94227D7FCEFF -:10FE200080E10E94227D7BCE0E948F7C0E948F7C8D -:10FE3000082F0E948F7C002309F497C0013009F439 -:10FE400098C08AE00E94227D6ACE80910C02816077 -:10FE500080930C0211CFFC0184910E945D7C209163 -:10FE6000080230910902809106019091070197CF15 -:10FE700080910C02816080930C0279CF20910C025A -:10FE8000226020930C0263CF80910701880F880BBA -:10FE9000817080930B028091060190910701880F79 -:10FEA000991F90930701809306018091080280FFBB -:10FEB00009C080910802909109020196909309026D -:10FEC00080930802F894F999FECF1127E09106017A -:10FED000F0910701C8E0D1E08091080290910902F9 -:10FEE000103091F40091570001700130D9F303E014 -:10FEF00000935700E8950091570001700130D9F345 -:10FF000001E100935700E89509901990009157007E -:10FF100001700130D9F301E000935700E895139583 -:10FF2000103898F011270091570001700130D9F373 -:10FF300005E000935700E8950091570001700130EB -:10FF4000D9F301E100935700E8953296029709F042 -:10FF5000C7CF103011F00296E5CF112484E10E9442 -:10FF60005D7C80E10E945D7CDACD8EE10E94227D85 -:10FF7000D6CD86E90E94227DD2CDF999FECF92BDE1 -:10FF800081BDF89A992780B50895262FF999FECF5B -:10FF90001FBA92BD81BD20BD0FB6F894FA9AF99AA6 -:0AFFA0000FBE01960895F894FFCFFC -:02FFAA008000D5 -:040000030000F80001 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/Makefile b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/Makefile deleted file mode 100644 index 3f2bb61567..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega/Makefile +++ /dev/null @@ -1,254 +0,0 @@ -# Makefile for ATmegaBOOT -# E.Lins, 18.7.2005 -# $Id$ -# -# Instructions -# -# To make bootloader .hex file: -# make diecimila -# make lilypad -# make ng -# etc... -# -# To burn bootloader .hex file: -# make diecimila_isp -# make lilypad_isp -# make ng_isp -# etc... - -# program name should not be changed... -PROGRAM = ATmegaBOOT_168 - -# enter the parameters for the avrdude isp tool -ISPTOOL = stk500v2 -ISPPORT = usb -ISPSPEED = -b 115200 - -MCU_TARGET = atmega168 -LDSECTION = --section-start=.text=0x3800 - -# the efuse should really be 0xf8; since, however, only the lower -# three bits of that byte are used on the atmega168, avrdude gets -# confused if you specify 1's for the higher bits, see: -# http://tinker.it/now/2007/02/24/the-tale-of-avrdude-atmega168-and-extended-bits-fuses/ -# -# similarly, the lock bits should be 0xff instead of 0x3f (to -# unlock the bootloader section) and 0xcf instead of 0x0f (to -# lock it), but since the high two bits of the lock byte are -# unused, avrdude would get confused. - -ISPFUSES = avrdude -c $(ISPTOOL) -p $(MCU_TARGET) -P $(ISPPORT) $(ISPSPEED) \ --e -u -U lock:w:0x3f:m -U efuse:w:0x$(EFUSE):m -U hfuse:w:0x$(HFUSE):m -U lfuse:w:0x$(LFUSE):m -ISPFLASH = avrdude -c $(ISPTOOL) -p $(MCU_TARGET) -P $(ISPPORT) $(ISPSPEED) \ --U flash:w:$(PROGRAM)_$(TARGET).hex -U lock:w:0x0f:m - -STK500 = "C:\Program Files\Atmel\AVR Tools\STK500\Stk500.exe" -STK500-1 = $(STK500) -e -d$(MCU_TARGET) -pf -vf -if$(PROGRAM)_$(TARGET).hex \ --lFF -LFF -f$(HFUSE)$(LFUSE) -EF8 -ms -q -cUSB -I200kHz -s -wt -STK500-2 = $(STK500) -d$(MCU_TARGET) -ms -q -lCF -LCF -cUSB -I200kHz -s -wt - - -OBJ = $(PROGRAM).o -OPTIMIZE = -O2 - -DEFS = -LIBS = - -CC = avr-gcc - -# Override is only needed by avr-lib build system. - -override CFLAGS = -g -Wall $(OPTIMIZE) -mmcu=$(MCU_TARGET) -DF_CPU=$(AVR_FREQ) $(DEFS) -override LDFLAGS = -Wl,$(LDSECTION) -#override LDFLAGS = -Wl,-Map,$(PROGRAM).map,$(LDSECTION) - -OBJCOPY = avr-objcopy -OBJDUMP = avr-objdump - -all: - -lilypad: TARGET = lilypad -lilypad: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>1' '-DNUM_LED_FLASHES=3' -lilypad: AVR_FREQ = 8000000L -lilypad: $(PROGRAM)_lilypad.hex - -lilypad_isp: lilypad -lilypad_isp: TARGET = lilypad -lilypad_isp: HFUSE = DD -lilypad_isp: LFUSE = E2 -lilypad_isp: EFUSE = 00 -lilypad_isp: isp - -lilypad_resonator: TARGET = lilypad_resonator -lilypad_resonator: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=3' -lilypad_resonator: AVR_FREQ = 8000000L -lilypad_resonator: $(PROGRAM)_lilypad_resonator.hex - -lilypad_resonator_isp: lilypad_resonator -lilypad_resonator_isp: TARGET = lilypad_resonator -lilypad_resonator_isp: HFUSE = DD -lilypad_resonator_isp: LFUSE = C6 -lilypad_resonator_isp: EFUSE = 00 -lilypad_resonator_isp: isp - -pro8: TARGET = pro_8MHz -pro8: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' '-DWATCHDOG_MODS' -pro8: AVR_FREQ = 8000000L -pro8: $(PROGRAM)_pro_8MHz.hex - -pro8_isp: pro8 -pro8_isp: TARGET = pro_8MHz -pro8_isp: HFUSE = DD -pro8_isp: LFUSE = C6 -pro8_isp: EFUSE = 00 -pro8_isp: isp - -pro16: TARGET = pro_16MHz -pro16: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' '-DWATCHDOG_MODS' -pro16: AVR_FREQ = 16000000L -pro16: $(PROGRAM)_pro_16MHz.hex - -pro16_isp: pro16 -pro16_isp: TARGET = pro_16MHz -pro16_isp: HFUSE = DD -pro16_isp: LFUSE = C6 -pro16_isp: EFUSE = 00 -pro16_isp: isp - -pro20: TARGET = pro_20mhz -pro20: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' '-DWATCHDOG_MODS' -pro20: AVR_FREQ = 20000000L -pro20: $(PROGRAM)_pro_20mhz.hex - -pro20_isp: pro20 -pro20_isp: TARGET = pro_20mhz -pro20_isp: HFUSE = DD -pro20_isp: LFUSE = C6 -pro20_isp: EFUSE = 00 -pro20_isp: isp - -diecimila: TARGET = diecimila -diecimila: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -diecimila: AVR_FREQ = 16000000L -diecimila: $(PROGRAM)_diecimila.hex - -diecimila_isp: diecimila -diecimila_isp: TARGET = diecimila -diecimila_isp: HFUSE = DD -diecimila_isp: LFUSE = FF -diecimila_isp: EFUSE = 00 -diecimila_isp: isp - -ng: TARGET = ng -ng: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>1' '-DNUM_LED_FLASHES=3' -ng: AVR_FREQ = 16000000L -ng: $(PROGRAM)_ng.hex - -ng_isp: ng -ng_isp: TARGET = ng -ng_isp: HFUSE = DD -ng_isp: LFUSE = FF -ng_isp: EFUSE = 00 -ng_isp: isp - -atmega328: TARGET = atmega328 -atmega328: MCU_TARGET = atmega328p -atmega328: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -atmega328: AVR_FREQ = 16000000L -atmega328: LDSECTION = --section-start=.text=0x7800 -atmega328: $(PROGRAM)_atmega328.hex - -atmega328_isp: atmega328 -atmega328_isp: TARGET = atmega328 -atmega328_isp: MCU_TARGET = atmega328p -atmega328_isp: HFUSE = DA -atmega328_isp: LFUSE = FF -atmega328_isp: EFUSE = 05 -atmega328_isp: isp - -atmega328_pro8: TARGET = atmega328_pro_8MHz -atmega328_pro8: MCU_TARGET = atmega328p -atmega328_pro8: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -DDOUBLE_SPEED -atmega328_pro8: AVR_FREQ = 8000000L -atmega328_pro8: LDSECTION = --section-start=.text=0x7800 -atmega328_pro8: $(PROGRAM)_atmega328_pro_8MHz.hex - -atmega328_pro8_isp: atmega328_pro8 -atmega328_pro8_isp: TARGET = atmega328_pro_8MHz -atmega328_pro8_isp: MCU_TARGET = atmega328p -atmega328_pro8_isp: HFUSE = DA -atmega328_pro8_isp: LFUSE = FF -atmega328_pro8_isp: EFUSE = 05 -atmega328_pro8_isp: isp - -mega: TARGET = atmega1280 -mega: MCU_TARGET = atmega1280 -mega: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=0' -DBAUD_RATE=57600 -mega: AVR_FREQ = 16000000L -mega: LDSECTION = --section-start=.text=0x1F000 -mega: $(PROGRAM)_atmega1280.hex - -mega_isp: mega -mega_isp: TARGET = atmega1280 -mega_isp: MCU_TARGET = atmega1280 -mega_isp: HFUSE = DA -mega_isp: LFUSE = FF -mega_isp: EFUSE = F5 -mega_isp: isp - -atmega1284p: TARGET = atmega1284p -atmega1284p: MCU_TARGET = atmega1284p -atmega1284p: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=0' '-DBAUD_RATE=57600' -atmega1284p: AVR_FREQ = 16000000L -atmega1284p: LDSECTION = --section-start=.text=0x1F000 -atmega1284p: $(PROGRAM)_atmega1284p.hex - -atmega1284p_8m: TARGET = atmega1284p -atmega1284p_8m: MCU_TARGET = atmega1284p -atmega1284p_8m: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=0' '-DBAUD_RATE=19200' -atmega1284p_8m: AVR_FREQ = 8000000L -atmega1284p_8m: LDSECTION = --section-start=.text=0x1F000 -atmega1284p_8m: $(PROGRAM)_atmega1284p_8m.hex - -atmega644p: TARGET = atmega644p -atmega644p: MCU_TARGET = atmega644p -atmega644p: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=0' '-DBAUD_RATE=57600' -atmega644p: AVR_FREQ = 16000000L -atmega644p: LDSECTION = --section-start=.text=0xF800 -atmega644p: $(PROGRAM)_atmega644p.hex - - -atmega1284p_isp: atmega1284p -atmega1284p_isp: TARGET = atmega1284p -atmega1284p_isp: MCU_TARGET = atmega1284p -atmega1284p_isp: HFUSE = DC -atmega1284p_isp: LFUSE = FF -atmega1284p_isp: EFUSE = FD -atmega1284p_isp: isp - -isp: $(TARGET) - $(ISPFUSES) - $(ISPFLASH) - -isp-stk500: $(PROGRAM)_$(TARGET).hex - $(STK500-1) - $(STK500-2) - -%.elf: $(OBJ) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) - -clean: - rm -rf *.o *.elf *.lst *.map *.sym *.lss *.eep *.srec *.bin *.hex - -%.lst: %.elf - $(OBJDUMP) -h -S $< > $@ - -%.hex: %.elf - $(OBJCOPY) -j .text -j .data -O ihex $< $@ - -%.srec: %.elf - $(OBJCOPY) -j .text -j .data -O srec $< $@ - -%.bin: %.elf - $(OBJCOPY) -j .text -j .data -O binary $< $@ - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_1284P.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_1284P.hex deleted file mode 100644 index b06d866fcc..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_1284P.hex +++ /dev/null @@ -1,117 +0,0 @@ -:020000021000EC -:10F800000C9446FC0C9465FC0C9465FC0C9465FC13 -:10F810000C9465FC0C9465FC0C9465FC0C9465FCE4 -:10F820000C9465FC0C9465FC0C9465FC0C9465FCD4 -:10F830000C9465FC0C9465FC0C9465FC0C9465FCC4 -:10F840000C9465FC0C9465FC0C9465FC0C9465FCB4 -:10F850000C9465FC0C9465FC0C9465FC0C9465FCA4 -:10F860000C9465FC0C9465FC0C9465FC0C9465FC94 -:10F870000C9465FC0C9465FC0C9465FC0C9465FC84 -:10F880000C9465FC0C9465FC0C9465FC11241FBE63 -:10F89000CFEFD0E4DEBFCDBF11E0A0E0B1E0E6E005 -:10F8A000FFEF01E00BBF02C007900D92A230B1073D -:10F8B000D9F712E0A2E0B1E001C01D92AD30B1076E -:10F8C000E1F70E945FFD0C9481FF0C9400FC909185 -:10F8D0000201913039F49091C00095FFFCCF8093E4 -:10F8E000C6000895923031F49091C80095FFFCCF86 -:10F8F0008093CE0008951F93982F95959595959593 -:10F900009595905D182F1F701A3014F0195A01C088 -:10F91000105D892F0E9467FC812F0E9467FC1F9158 -:10F920000895EF92FF920F931F938091020181300F -:10F93000F1F4EE24FF24870113C00894E11CF11CAC -:10F94000011D111D81E0E81682E1F8068AE708072B -:10F9500080E0180728F0E0910401F0910501099575 -:10F960008091C00087FFE9CF8091C60021C082301E -:10F97000F1F4EE24FF24870113C00894E11CF11C6C -:10F98000011D111D81E0E81682E1F8068AE70807EB -:10F9900080E0180728F0E0910401F0910501099535 -:10F9A0008091C80087FFE9CF8091CE0001C080E040 -:10F9B0001F910F91FF90EF9008951F930E9491FC6B -:10F9C000182F0E9467FC113614F0175503C010332E -:10F9D0000CF01053812F1F9108951F930E94DDFC9E -:10F9E000182F0E94DDFC1295107F810F1F91089542 -:10F9F0009091020112C0913039F42091C00027FF8C -:10FA0000FCCF2091C60008C0923031F42091C8008C -:10FA100027FFFCCF2091CE008150882361F7089505 -:10FA20001F93182F0E9491FC803251F484E10E94B0 -:10FA300067FC812F0E9467FC80E10E9467FC0CC07C -:10FA4000809103018F5F80930301853029F4E09159 -:10FA50000401F091050109951F9108950E9491FC00 -:10FA6000803239F484E10E9467FC80E10E9467FCE7 -:10FA70000895809103018F5F80930301853029F4FD -:10FA8000E0910401F09105010995089515C0289AA7 -:10FA90002FEF31EE44E0215030404040E1F700C00C -:10FAA000000028982FEF31EE44E0215030404040D4 -:10FAB000E1F700C000008150882349F70895BF9204 -:10FAC000CF92DF92EF92FF920F931F93CF93DF932A -:10FAD00094B714BE8091600088618093600010929A -:10FAE000600091FD05C0E0910401F09105010995C8 -:10FAF00081E08093020180E18093C4001092C500F0 -:10FB00001092C00086E08093C20088E18093C1001B -:10FB1000209A84E00E9446FDBB24B3940E9491FC8D -:10FB2000803309F441C08133E1F40E9491FC8032BA -:10FB300009F0C3C184E10E9467FC81E40E9467FC74 -:10FB400086E50E9467FC82E50E9467FC80E20E94D5 -:10FB500067FC89E40E9467FC83E50E9467FC80E5FE -:10FB600029C1803439F40E9491FC8638E8F00E9463 -:10FB700091FC1AC0813499F40E9491FC803811F4F0 -:10FB800082E098C1813811F481E094C1823811F487 -:10FB900080E190C1883909F08CC183E08BC1823447 -:10FBA00031F484E10E94F8FC0E942EFDB7CF853429 -:10FBB00011F485E0F7CF8035B9F38235A9F38135AB -:10FBC00031F40E942EFD88E080936000FFCF8535E0 -:10FBD00049F40E9491FC809306010E9491FC80935D -:10FBE0000701E2CF8635C9F40E9491FC803389F485 -:10FBF0000E9491FC0E9491FC082F0E9491FC00231E -:10FC000011F48EE157C1013011F487E953C185E049 -:10FC100051C183E00E94F8FC4CC1843609F0D0C089 -:10FC20000E9491FC809309020E9491FC809308023B -:10FC300080910C028E7F80930C020E9491FC85348F -:10FC400029F480910C02816080930C0258E0C52E4B -:10FC500051E0D52E760100E010E007C00E9491FC33 -:10FC6000F70181937F010F5F1F4F809108029091F0 -:10FC700009020817190790F30E9491FC803209F0DD -:10FC80001CC180910C0280FF29C0809106019091D7 -:10FC90000701880F991F909307018093060100E0E8 -:10FCA00010E014C0F60161916F01809106019091FE -:10FCB00007010E9473FF8091060190910701019650 -:10FCC00090930701809306010F5F1F4F80910802F8 -:10FCD000909109020817190728F36BC0809107015A -:10FCE000880F880B8B2180930B028BBF80910601BC -:10FCF00090910701880F991F909307018093060147 -:10FD00008091080280FF09C0809108029091090249 -:10FD100001969093090280930802F894F999FECF16 -:10FD20001127E0910601F0910701C8E0D1E0809130 -:10FD3000080290910902103091F40091570001706F -:10FD40000130D9F303E000935700E8950091570084 -:10FD500001700130D9F301E100935700E895099053 -:10FD600019900091570001700130D9F301E0009320 -:10FD70005700E8951395103898F011270091570017 -:10FD800001700130D9F305E000935700E895009128 -:10FD9000570001700130D9F301E100935700E89555 -:10FDA0003296029709F0C7CF103011F00296E5CFD6 -:10FDB000112484E10E9467FC80E10E9467FCAECEC2 -:10FDC000843709F063C00E9491FC809309020E946D -:10FDD00091FC809308028091060190910701209187 -:10FDE0000C0297FF02C0226001C02D7F20930C02FD -:10FDF000880F991F90930701809306010E9491FC40 -:10FE000020910C02853411F4216001C02E7F2093D3 -:10FE10000C020E9491FC803209F080CE84E10E94A5 -:10FE200067FC00E010E02AC080910C0280FF07C050 -:10FE300080910601909107010E946BFF12C0E09132 -:10FE40000601F091070181FD02C084910AC0CF0133 -:10FE5000A0E0B0E080509040AF4FBF4FABBFFC017F -:10FE600087910E9467FC809106019091070101969D -:10FE700090930701809306010F5F1F4F8091080246 -:10FE8000909109020817190778F296CF853779F40F -:10FE90000E9491FC803289F484E10E9467FC8EE12B -:10FEA0000E9467FC87E90E9467FC85E083CF863764 -:10FEB00021F480E00E9410FD31CE809103018F5F1C -:10FEC00080930301853009F029CEE0910401F0917F -:10FED0000501099523CEF999FECF92BD81BDF89A0F -:10FEE000992780B50895262FF999FECF1FBA92BDA4 -:10FEF00081BD20BD0FB6F894FA9AF99A0FBE01960B -:06FF00000895F894FFCF04 -:02FF0600800079 -:040000031000F800F1 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_324P.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_324P.hex deleted file mode 100644 index e67fe88719..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_324P.hex +++ /dev/null @@ -1,121 +0,0 @@ -:10F800000C943E7C0C945B7C0C945B7C0C945B7C39 -:10F810000C945B7C0C945B7C0C945B7C0C945B7C0C -:10F820000C945B7C0C945B7C0C945B7C0C945B7CFC -:10F830000C945B7C0C945B7C0C945B7C0C945B7CEC -:10F840000C945B7C0C945B7C0C945B7C0C945B7CDC -:10F850000C945B7C0C945B7C0C945B7C0C945B7CCC -:10F860000C945B7C0C945B7C0C945B7C0C945B7CBC -:10F870000C945B7C0C945B7C0C945B7C11241FBE11 -:10F88000CFEFD8E0DEBFCDBF11E0A0E0B1E0E6E60B -:10F89000FFEF02C005900D92A030B107D9F712E03A -:10F8A000A0E0B1E001C01D92A930B107E1F70E94CC -:10F8B000537D0C94B27F0C94007CCF93DF93CDB733 -:10F8C000DEB724970FB6F894DEBF0FBECDBF8823F6 -:10F8D00009F481E020E0482F55274115510509F42E -:10F8E0003DC0289A19821A821B821C820BC0898112 -:10F8F0009A81AB81BC810196A11DB11D89839A8338 -:10F90000AB83BC8389819A81AB81BC8180589E4343 -:10F91000A040B04060F3289819821A821B821C8292 -:10F920000BC089819A81AB81BC810196A11DB11D5B -:10F9300089839A83AB83BC8389819A81AB81BC81A3 -:10F9400080509A4FA040B04060F32F5F822F9927DC -:10F9500087FD9095841795070CF4C3CF19821A82FE -:10F960001B821C8289819A81AB81BC818050914726 -:10F97000A240B040A0F489819A81AB81BC810196FC -:10F98000A11DB11D89839A83AB83BC8389819A8130 -:10F99000AB81BC8180509147A240B04060F3249677 -:10F9A0000FB6F894DEBF0FBECDBFDF91CF910895A3 -:10F9B000EF92FF920F931F93EE24FF248701289864 -:10F9C0008091C00087FD17C00894E11CF11C011D47 -:10F9D000111D81E0E81689E0F8068DE3080780E054 -:10F9E000180770F3E0910001F091010109958091F1 -:10F9F000C00087FFE9CF289A8091C600992787FD2C -:10FA000090951F910F91FF90EF900895982F8091FE -:10FA1000C00085FFFCCF9093C60008950E94D87C5B -:10FA2000803271F0809102018F5F809302018530F6 -:10FA300009F00895E0910001F09101010995089500 -:10FA400084E10E94067D80E10E94067D0895CF93A7 -:10FA5000C82F0E94D87C803241F0809102018F5FD4 -:10FA600080930201853081F40AC084E10E94067D02 -:10FA70008C2F0E94067D80E10E94067D05C0E091EA -:10FA80000001F09101010995CF910895282F90E090 -:10FA900007C08091C0008823E4F78091C6009F5F73 -:10FAA0009217B8F30895CFEFD8E0DEBFCDBF0000C6 -:10FAB00094B714BE809160008861809360001092BA -:10FAC000600091FF74C189E18093C4001092C50069 -:10FAD00088E18093C10086E08093C2005098589AD4 -:10FAE000209A83E00E945D7C81E00E945D7C0E9400 -:10FAF000D87C8033B9F18133C1F1803409F456C028 -:10FB0000813409F45CC0823409F46EC0853409F490 -:10FB100071C0803539F1813509F4F3C0823511F1B6 -:10FB2000853509F4D3C0863509F4CBC0843609F491 -:10FB300065C0843709F4EBC0853709F4D2C0863735 -:10FB400009F44AC0809102018F5F809302018530E1 -:10FB500071F6E0910001F091010109950E94D87CB5 -:10FB6000803349F60E940E7DC2CF0E94D87CC82FF8 -:10FB7000803241F784E10E94067D81E40E94067D87 -:10FB800086E50E94067D82E50E94067D8C2F0E94FC -:10FB9000067D89E40E94067D83E50E94067D80E55E -:10FBA0000E94067D80E10E94067DA1CF0E94D87C44 -:10FBB0008638C0F20E94D87C0E940E7D98CF0E94A9 -:10FBC000D87C803809F407C1813809F400C1823833 -:10FBD00009F4F9C0883921F080E00E94277D87CFA1 -:10FBE00083E00E94277D83CF84E10E94467D0E94AE -:10FBF0000E7D7DCF85E00E94467DF9CF0E94D87CA6 -:10FC0000809306020E94D87C8093050280910802AE -:10FC10008E7F809308020E94D87C853409F44BC003 -:10FC2000E5E0F1E0119281E0E438F807D9F3D0F390 -:10FC3000C0E0D0E0809105029091060218161906E6 -:10FC400078F405E011E00E94D87CF80181938F01DF -:10FC500021968091050290910602C817D90798F362 -:10FC60000E94D87C803209F06DCF8091080280FF1D -:10FC7000B6C0C0E0D0E02091050230910602121615 -:10FC80001306B8F4E0910301F0910401A5E0B1E09E -:10FC9000F999FECFF2BDE1BD8D9180BDFA9AF99A36 -:10FCA00031962196C217D30798F3F0930401E0939D -:10FCB000030184E175CF809108028160809308027E -:10FCC000AFCF84E00E94467D80E087CF0E94D87C41 -:10FCD000809303010E94D87C809304010E940E7DD2 -:10FCE00006CF0E94D87C803209F02CCF84E10E949C -:10FCF000067D8EE10E94067D85E90E94067D88E0F2 -:10FD00004FCF0E940E7D88E080936000FFCF0E945D -:10FD1000D87C809306020E94D87C809305020E94C2 -:10FD2000D87C853409F449C0809108028E7F809385 -:10FD300008028091030190910401880F991F90930C -:10FD40000401809303010E94D87C803209F0CFCE59 -:10FD500084E10E94067DC0E0D0E020910502309150 -:10FD600006021216130608F01DCFE0910301F09170 -:10FD700004018091080280FF96C0F999FECFF2BD80 -:10FD8000E1BDF89A80B50E94067DE0910301F091F3 -:10FD900004013196F0930401E093030120910502E0 -:10FDA000309106022196C217D30718F3FBCEE091DB -:10FDB0000001F0910101099586CE809108028160D1 -:10FDC00080930802C0CF80E10E94277D90CE81E021 -:10FDD0000E94277D8CCE82E00E94277D88CE809174 -:10FDE000030190910401880F991F9093040180935F -:10FDF00003018091050280FF09C080910502909166 -:10FE0000060201969093060280930502F999FECFAF -:10FE10001127E0910301F0910401C5E0D1E0809148 -:10FE2000050290910602103091F400915700017084 -:10FE30000130D9F303E000935700E8950091570093 -:10FE400001700130D9F301E100935700E895099062 -:10FE500019900091570001700130D9F301E000932F -:10FE60005700E8951395103898F011270091570026 -:10FE700001700130D9F305E000935700E895009137 -:10FE8000570001700130D9F301E100935700E89564 -:10FE90003296029709F0C7CF103011F00296E5CFE5 -:10FEA000112484E17DCE869580FF06C03196F093C3 -:10FEB0000401E093030176CF84910E94067D209196 -:10FEC000050230910602E0910301F0910401EECFAA -:10FED0001F93CF930E94D87CC82F0E94067D0E945A -:10FEE000D87C182F0E94067DC1362CF0C7551136DC -:10FEF0003CF0175508C0C033D4F3C0531136CCF7CB -:10FF000010330CF01053C295C07FC10F8C2F99276E -:10FF100087FD9095CF911F910895CF93282F992712 -:10FF200087FD9095807F907095958795959587959D -:10FF300095958795959587958A303CF0895AC22F7B -:10FF4000CF70CA303CF0C95A06C0805DC22FCF7056 -:10FF5000CA30CCF7C05D0E94067D8C2F0E94067DC2 -:06FF6000CF910895FFCFD0 -:040000030000F80001 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_644.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_644.hex deleted file mode 100644 index d5557decf1..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_644.hex +++ /dev/null @@ -1,120 +0,0 @@ -:10F800000C94387C0C94557C0C94557C0C94557C51 -:10F810000C94557C0C94557C0C94557C0C94557C24 -:10F820000C94557C0C94557C0C94557C0C94557C14 -:10F830000C94557C0C94557C0C94557C0C94557C04 -:10F840000C94557C0C94557C0C94557C0C94557CF4 -:10F850000C94557C0C94557C0C94557C0C94557CE4 -:10F860000C94557C0C94557C0C94557C0C94557CD4 -:10F8700011241FBECFEFD0E1DEBFCDBF11E0A0E06D -:10F88000B1E0EAE5FFEF02C005900D92A030B107AC -:10F89000D9F712E0A0E0B1E001C01D92A930B10794 -:10F8A000E1F70E944D7D0C94AC7F0C94007CCF93CB -:10F8B000DF93CDB7DEB724970FB6F894DEBF0FBE47 -:10F8C000CDBF882309F481E020E0482F552741155A -:10F8D000510509F43DC0289A19821A821B821C82A4 -:10F8E0000BC089819A81AB81BC810196A11DB11D9C -:10F8F00089839A83AB83BC8389819A81AB81BC81E4 -:10F9000080589E43A040B04060F3289819821A8224 -:10F910001B821C820BC089819A81AB81BC810196BC -:10F92000A11DB11D89839A83AB83BC8389819A8190 -:10F93000AB81BC8180509A4FA040B04060F32F5FF4 -:10F94000822F992787FD9095841795070CF4C3CFD4 -:10F9500019821A821B821C8289819A81AB81BC81A7 -:10F9600080509147A240B040A0F489819A81AB8138 -:10F97000BC810196A11DB11D89839A83AB83BC8391 -:10F9800089819A81AB81BC8180509147A240B0406F -:10F9900060F324960FB6F894DEBF0FBECDBFDF91A3 -:10F9A000CF910895EF92FF920F931F93EE24FF24BF -:10F9B000870128988091C00087FD17C00894E11C3A -:10F9C000F11C011D111D81E0E81689E0F8068DE3A8 -:10F9D000080780E0180770F3E0910001F091010141 -:10F9E00009958091C00087FFE9CF289A8091C600D1 -:10F9F000992787FD90951F910F91FF90EF900895A3 -:10FA0000982F8091C00085FFFCCF9093C600089589 -:10FA10000E94D27C803271F0809102018F5F8093CE -:10FA20000201853009F00895E0910001F091010193 -:10FA30000995089584E10E94007D80E10E94007D87 -:10FA40000895CF93C82F0E94D27C803241F08091DC -:10FA500002018F5F80930201853081F40AC084E146 -:10FA60000E94007D8C2F0E94007D80E10E94007D1D -:10FA700005C0E0910001F09101010995CF91089531 -:10FA8000282F90E007C08091C0008823E4F7809180 -:10FA9000C6009F5F9217B8F30895CFEFD0E1DEBFA5 -:10FAA000CDBF000094B714BE809160008861809340 -:10FAB00060001092600091FF74C189E18093C400DE -:10FAC0001092C50088E18093C10086E08093C20057 -:10FAD0005098589A209A83E00E94577C81E00E94B7 -:10FAE000577C0E94D27C8033B9F18133C1F18034DC -:10FAF00009F456C0813409F45CC0823409F46EC044 -:10FB0000853409F471C0803539F1813509F4F3C0C9 -:10FB1000823511F1853509F4D3C0863509F4CBC09F -:10FB2000843609F465C0843709F4EBC0853709F4DD -:10FB3000D2C0863709F44AC0809102018F5F80935A -:10FB40000201853071F6E0910001F0910101099503 -:10FB50000E94D27C803349F60E94087DC2CF0E9469 -:10FB6000D27CC82F803241F784E10E94007D81E47D -:10FB70000E94007D86E50E94007D82E50E94007D56 -:10FB80008C2F0E94007D89E40E94007D83E50E9405 -:10FB9000007D80E50E94007D80E10E94007DA1CF74 -:10FBA0000E94D27C8638C0F20E94D27C0E94087DDE -:10FBB00098CF0E94D27C803809F407C1813809F4BB -:10FBC00000C1823809F4F9C0883921F080E00E9430 -:10FBD000217D87CF83E00E94217D83CF84E10E9435 -:10FBE000407D0E94087D7DCF85E00E94407DF9CF59 -:10FBF0000E94D27C809306020E94D27C80930502F0 -:10FC0000809108028E7F809308020E94D27C853406 -:10FC100009F44BC0E5E0F1E0119281E0E438F80727 -:10FC2000D9F3D0F3C0E0D0E08091050290910602B4 -:10FC30001816190678F405E011E00E94D27CF8014C -:10FC400081938F0121968091050290910602C81739 -:10FC5000D90798F30E94D27C803209F06DCF809151 -:10FC6000080280FFB6C0C0E0D0E0209105023091CC -:10FC7000060212161306B8F4E0910301F091040194 -:10FC8000A5E0B1E0F999FECFF2BDE1BD8D9180BD57 -:10FC9000FA9AF99A31962196C217D30798F3F093FE -:10FCA0000401E093030184E175CF80910802816033 -:10FCB00080930802AFCF84E00E94407D80E087CF30 -:10FCC0000E94D27C809303010E94D27C8093040125 -:10FCD0000E94087D06CF0E94D27C803209F02CCF92 -:10FCE00084E10E94007D8EE10E94007D86E90E94F1 -:10FCF000007D89E04FCF0E94087D88E080936000FE -:10FD0000FFCF0E94D27C809306020E94D27C809317 -:10FD100005020E94D27C853409F449C08091080212 -:10FD20008E7F809308028091030190910401880FD7 -:10FD3000991F90930401809303010E94D27C80322A -:10FD400009F0CFCE84E10E94007DC0E0D0E0209198 -:10FD50000502309106021216130608F01DCFE0913D -:10FD60000301F09104018091080280FF96C0F99987 -:10FD7000FECFF2BDE1BDF89A80B50E94007DE09112 -:10FD80000301F09104013196F0930401E093030123 -:10FD900020910502309106022196C217D30718F36D -:10FDA000FBCEE0910001F0910101099586CE809192 -:10FDB0000802816080930802C0CF80E10E94217D0B -:10FDC00090CE81E00E94217D8CCE82E00E94217D38 -:10FDD00088CE8091030190910401880F991F909320 -:10FDE0000401809303018091050280FF09C0809186 -:10FDF00005029091060201969093060280930502F7 -:10FE0000F999FECF1127E0910301F0910401C5E0BB -:10FE1000D1E08091050290910602103091F400919A -:10FE2000570001700130D9F303E000935700E895C3 -:10FE30000091570001700130D9F301E100935700A0 -:10FE4000E895099019900091570001700130D9F39D -:10FE500001E000935700E8951395103898F01127AA -:10FE60000091570001700130D9F305E0009357006D -:10FE7000E8950091570001700130D9F301E100933A -:10FE80005700E8953296029709F0C7CF103011F06D -:10FE90000296E5CF112484E17DCE869580FF06C0D1 -:10FEA0003196F0930401E093030176CF84910E9490 -:10FEB000007D2091050230910602E0910301F0914E -:10FEC0000401EECF1F93CF930E94D27CC82F0E94D3 -:10FED000007D0E94D27C182F0E94007DC1362CF03C -:10FEE000C75511363CF0175508C0C033D4F3C05382 -:10FEF0001136CCF710330CF01053C295C07FC10FF0 -:10FF00008C2F992787FD9095CF911F910895CF93BE -:10FF1000282F992787FD9095807F907095958795DC -:10FF20009595879595958795959587958A303CF019 -:10FF3000895AC22FCF70CA303CF0C95A06C0805DC2 -:10FF4000C22FCF70CA30CCF7C05D0E94007D8C2FCD -:0AFF50000E94007DCF910895FFCFBD -:040000030000F80001 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_644P.hex b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_644P.hex deleted file mode 100644 index 99a6ae1c80..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/bootloaders/atmega644p/ATmegaBOOT_644P.hex +++ /dev/null @@ -1,121 +0,0 @@ -:10F800000C943E7C0C945B7C0C945B7C0C945B7C39 -:10F810000C945B7C0C945B7C0C945B7C0C945B7C0C -:10F820000C945B7C0C945B7C0C945B7C0C945B7CFC -:10F830000C945B7C0C945B7C0C945B7C0C945B7CEC -:10F840000C945B7C0C945B7C0C945B7C0C945B7CDC -:10F850000C945B7C0C945B7C0C945B7C0C945B7CCC -:10F860000C945B7C0C945B7C0C945B7C0C945B7CBC -:10F870000C945B7C0C945B7C0C945B7C11241FBE11 -:10F88000CFEFD0E1DEBFCDBF11E0A0E0B1E0E6E612 -:10F89000FFEF02C005900D92A030B107D9F712E03A -:10F8A000A0E0B1E001C01D92A930B107E1F70E94CC -:10F8B000537D0C94B27F0C94007CCF93DF93CDB733 -:10F8C000DEB724970FB6F894DEBF0FBECDBF8823F6 -:10F8D00009F481E020E0482F55274115510509F42E -:10F8E0003DC0289A19821A821B821C820BC0898112 -:10F8F0009A81AB81BC810196A11DB11D89839A8338 -:10F90000AB83BC8389819A81AB81BC8180589E4343 -:10F91000A040B04060F3289819821A821B821C8292 -:10F920000BC089819A81AB81BC810196A11DB11D5B -:10F9300089839A83AB83BC8389819A81AB81BC81A3 -:10F9400080509A4FA040B04060F32F5F822F9927DC -:10F9500087FD9095841795070CF4C3CF19821A82FE -:10F960001B821C8289819A81AB81BC818050914726 -:10F97000A240B040A0F489819A81AB81BC810196FC -:10F98000A11DB11D89839A83AB83BC8389819A8130 -:10F99000AB81BC8180509147A240B04060F3249677 -:10F9A0000FB6F894DEBF0FBECDBFDF91CF910895A3 -:10F9B000EF92FF920F931F93EE24FF248701289864 -:10F9C0008091C00087FD17C00894E11CF11C011D47 -:10F9D000111D81E0E81689E0F8068DE3080780E054 -:10F9E000180770F3E0910001F091010109958091F1 -:10F9F000C00087FFE9CF289A8091C600992787FD2C -:10FA000090951F910F91FF90EF900895982F8091FE -:10FA1000C00085FFFCCF9093C60008950E94D87C5B -:10FA2000803271F0809102018F5F809302018530F6 -:10FA300009F00895E0910001F09101010995089500 -:10FA400084E10E94067D80E10E94067D0895CF93A7 -:10FA5000C82F0E94D87C803241F0809102018F5FD4 -:10FA600080930201853081F40AC084E10E94067D02 -:10FA70008C2F0E94067D80E10E94067D05C0E091EA -:10FA80000001F09101010995CF910895282F90E090 -:10FA900007C08091C0008823E4F78091C6009F5F73 -:10FAA0009217B8F30895CFEFD0E1DEBFCDBF0000CD -:10FAB00094B714BE809160008861809360001092BA -:10FAC000600091FF74C189E18093C4001092C50069 -:10FAD00088E18093C10086E08093C2005098589AD4 -:10FAE000209A83E00E945D7C81E00E945D7C0E9400 -:10FAF000D87C8033B9F18133C1F1803409F456C028 -:10FB0000813409F45CC0823409F46EC0853409F490 -:10FB100071C0803539F1813509F4F3C0823511F1B6 -:10FB2000853509F4D3C0863509F4CBC0843609F491 -:10FB300065C0843709F4EBC0853709F4D2C0863735 -:10FB400009F44AC0809102018F5F809302018530E1 -:10FB500071F6E0910001F091010109950E94D87CB5 -:10FB6000803349F60E940E7DC2CF0E94D87CC82FF8 -:10FB7000803241F784E10E94067D81E40E94067D87 -:10FB800086E50E94067D82E50E94067D8C2F0E94FC -:10FB9000067D89E40E94067D83E50E94067D80E55E -:10FBA0000E94067D80E10E94067DA1CF0E94D87C44 -:10FBB0008638C0F20E94D87C0E940E7D98CF0E94A9 -:10FBC000D87C803809F407C1813809F400C1823833 -:10FBD00009F4F9C0883921F080E00E94277D87CFA1 -:10FBE00083E00E94277D83CF84E10E94467D0E94AE -:10FBF0000E7D7DCF85E00E94467DF9CF0E94D87CA6 -:10FC0000809306020E94D87C8093050280910802AE -:10FC10008E7F809308020E94D87C853409F44BC003 -:10FC2000E5E0F1E0119281E0E438F807D9F3D0F390 -:10FC3000C0E0D0E0809105029091060218161906E6 -:10FC400078F405E011E00E94D87CF80181938F01DF -:10FC500021968091050290910602C817D90798F362 -:10FC60000E94D87C803209F06DCF8091080280FF1D -:10FC7000B6C0C0E0D0E02091050230910602121615 -:10FC80001306B8F4E0910301F0910401A5E0B1E09E -:10FC9000F999FECFF2BDE1BD8D9180BDFA9AF99A36 -:10FCA00031962196C217D30798F3F0930401E0939D -:10FCB000030184E175CF809108028160809308027E -:10FCC000AFCF84E00E94467D80E087CF0E94D87C41 -:10FCD000809303010E94D87C809304010E940E7DD2 -:10FCE00006CF0E94D87C803209F02CCF84E10E949C -:10FCF000067D8EE10E94067D86E90E94067D8AE0EF -:10FD00004FCF0E940E7D88E080936000FFCF0E945D -:10FD1000D87C809306020E94D87C809305020E94C2 -:10FD2000D87C853409F449C0809108028E7F809385 -:10FD300008028091030190910401880F991F90930C -:10FD40000401809303010E94D87C803209F0CFCE59 -:10FD500084E10E94067DC0E0D0E020910502309150 -:10FD600006021216130608F01DCFE0910301F09170 -:10FD700004018091080280FF96C0F999FECFF2BD80 -:10FD8000E1BDF89A80B50E94067DE0910301F091F3 -:10FD900004013196F0930401E093030120910502E0 -:10FDA000309106022196C217D30718F3FBCEE091DB -:10FDB0000001F0910101099586CE809108028160D1 -:10FDC00080930802C0CF80E10E94277D90CE81E021 -:10FDD0000E94277D8CCE82E00E94277D88CE809174 -:10FDE000030190910401880F991F9093040180935F -:10FDF00003018091050280FF09C080910502909166 -:10FE0000060201969093060280930502F999FECFAF -:10FE10001127E0910301F0910401C5E0D1E0809148 -:10FE2000050290910602103091F400915700017084 -:10FE30000130D9F303E000935700E8950091570093 -:10FE400001700130D9F301E100935700E895099062 -:10FE500019900091570001700130D9F301E000932F -:10FE60005700E8951395103898F011270091570026 -:10FE700001700130D9F305E000935700E895009137 -:10FE8000570001700130D9F301E100935700E89564 -:10FE90003296029709F0C7CF103011F00296E5CFE5 -:10FEA000112484E17DCE869580FF06C03196F093C3 -:10FEB0000401E093030176CF84910E94067D209196 -:10FEC000050230910602E0910301F0910401EECFAA -:10FED0001F93CF930E94D87CC82F0E94067D0E945A -:10FEE000D87C182F0E94067DC1362CF0C7551136DC -:10FEF0003CF0175508C0C033D4F3C0531136CCF7CB -:10FF000010330CF01053C295C07FC10F8C2F99276E -:10FF100087FD9095CF911F910895CF93282F992712 -:10FF200087FD9095807F907095958795959587959D -:10FF300095958795959587958A303CF0895AC22F7B -:10FF4000CF70CA303CF0C95A06C0805DC22FCF7056 -:10FF5000CA30CCF7C05D0E94067D8C2F0E94067DC2 -:06FF6000CF910895FFCFD0 -:040000030000F80001 -:00000001FF diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/L6470/L6470.cpp b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/L6470/L6470.cpp deleted file mode 100644 index 8278c19aee..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/L6470/L6470.cpp +++ /dev/null @@ -1,723 +0,0 @@ -//////////////////////////////////////////////////////////// -//ORIGINAL CODE 12/12/2011- Mike Hord, SparkFun Electronics -//LIBRARY Created by Adam Meyer of bildr Aug 18th 2012 -//Released as MIT license -//////////////////////////////////////////////////////////// - -#include -#include "L6470.h" -#include - -#define ENABLE_RESET_PIN 0 -#define K_VALUE 100 - -L6470::L6470(int SSPin){ - _SSPin = SSPin; - // Serial.begin(9600); -} - -void L6470::init(int k_value){ - // This is the generic initialization function to set up the Arduino to - // communicate with the dSPIN chip. - - // set up the input/output pins for the application. - pinMode(SLAVE_SELECT_PIN, OUTPUT); // The SPI peripheral REQUIRES the hardware SS pin- - // pin 10- to be an output. This is in here just - // in case some future user makes something other - // than pin 10 the SS pin. - - pinMode(_SSPin, OUTPUT); - digitalWrite(_SSPin, HIGH); - pinMode(MOSI, OUTPUT); - pinMode(MISO, INPUT); - pinMode(SCK, OUTPUT); - pinMode(BUSYN, INPUT); -#if (ENABLE_RESET_PIN == 1) - pinMode(RESET, OUTPUT); - // reset the dSPIN chip. This could also be accomplished by - // calling the "L6470::ResetDev()" function after SPI is initialized. - digitalWrite(RESET, HIGH); - delay(10); - digitalWrite(RESET, LOW); - delay(10); - digitalWrite(RESET, HIGH); - delay(10); -#endif - - - // initialize SPI for the dSPIN chip's needs: - // most significant bit first, - // SPI clock not to exceed 5MHz, - // SPI_MODE3 (clock idle high, latch data on rising edge of clock) - SPI.begin(); - SPI.setBitOrder(MSBFIRST); - SPI.setClockDivider(SPI_CLOCK_DIV16); // or 2, 8, 16, 32, 64 - SPI.setDataMode(SPI_MODE3); - - // First things first: let's check communications. The CONFIG register should - // power up to 0x2E88, so we can use that to check the communications. - if (GetParam(CONFIG) == 0x2E88){ - //Serial.println('good to go'); - } - else{ - //Serial.println('Comm issue'); - } - -#if (ENABLE_RESET_PIN == 0) - resetDev(); -#endif - // First, let's set the step mode register: - // - SYNC_EN controls whether the BUSY/SYNC pin reflects the step - // frequency or the BUSY status of the chip. We want it to be the BUSY - // status. - // - STEP_SEL_x is the microstepping rate- we'll go full step. - // - SYNC_SEL_x is the ratio of (micro)steps to toggles on the - // BUSY/SYNC pin (when that pin is used for SYNC). Make it 1:1, despite - // not using that pin. - //SetParam(STEP_MODE, !SYNC_EN | STEP_SEL_1 | SYNC_SEL_1); - - - SetParam(KVAL_RUN, k_value); - SetParam(KVAL_ACC, k_value); - SetParam(KVAL_DEC, k_value); - SetParam(KVAL_HOLD, k_value); - - // Set up the CONFIG register as follows: - // PWM frequency divisor = 1 - // PWM frequency multiplier = 2 (62.5kHz PWM frequency) - // Slew rate is 290V/us - // Do NOT shut down bridges on overcurrent - // Disable motor voltage compensation - // Hard stop on switch low - // 16MHz internal oscillator, nothing on output - SetParam(CONFIG, CONFIG_PWM_DIV_1 | CONFIG_PWM_MUL_2 | CONFIG_SR_290V_us| CONFIG_OC_SD_DISABLE | CONFIG_VS_COMP_DISABLE | CONFIG_SW_HARD_STOP | CONFIG_INT_16MHZ); - // Configure the RUN KVAL. This defines the duty cycle of the PWM of the bridges - // during running. 0xFF means that they are essentially NOT PWMed during run; this - // MAY result in more power being dissipated than you actually need for the task. - // Setting this value too low may result in failure to turn. - // There are ACC, DEC, and HOLD KVAL registers as well; you may need to play with - // those values to get acceptable performance for a given application. - //SetParam(KVAL_RUN, 0xFF); - // Calling GetStatus() clears the UVLO bit in the status register, which is set by - // default on power-up. The driver may not run without that bit cleared by this - // read operation. - getStatus(); - - hardStop(); //engage motors -} - -boolean L6470::isBusy(){ - int status = getStatus(); - return !((status >> 1) & 0b1); -} - -void L6470::setMicroSteps(int microSteps){ - byte stepVal = 0; - - for(stepVal = 0; stepVal < 8; stepVal++){ - if(microSteps == 1) break; - microSteps = microSteps >> 1; - } - - SetParam(STEP_MODE, !SYNC_EN | stepVal | SYNC_SEL_1); -} - -void L6470::setThresholdSpeed(float thresholdSpeed){ - // Configure the FS_SPD register- this is the speed at which the driver ceases - // microstepping and goes to full stepping. FSCalc() converts a value in steps/s - // to a value suitable for this register; to disable full-step switching, you - // can pass 0x3FF to this register. - - if(thresholdSpeed == 0.0){ - SetParam(FS_SPD, 0x3FF); - } - else{ - SetParam(FS_SPD, FSCalc(thresholdSpeed)); - } -} - - -void L6470::setCurrent(int current){} - - - -void L6470::setMaxSpeed(int speed){ - // Configure the MAX_SPEED register- this is the maximum number of (micro)steps per - // second allowed. You'll want to mess around with your desired application to see - // how far you can push it before the motor starts to slip. The ACTUAL parameter - // passed to this function is in steps/tick; MaxSpdCalc() will convert a number of - // steps/s into an appropriate value for this function. Note that for any move or - // goto type function where no speed is specified, this value will be used. - SetParam(MAX_SPEED, MaxSpdCalc(speed)); -} - - -void L6470::setMinSpeed(int speed){ - // Configure the MAX_SPEED register- this is the maximum number of (micro)steps per - // second allowed. You'll want to mess around with your desired application to see - // how far you can push it before the motor starts to slip. The ACTUAL parameter - // passed to this function is in steps/tick; MaxSpdCalc() will convert a number of - // steps/s into an appropriate value for this function. Note that for any move or - // goto type function where no speed is specified, this value will be used. - SetParam(MIN_SPEED, MinSpdCalc(speed)); -} - - - - -void L6470::setAcc(float acceleration){ - // Configure the acceleration rate, in steps/tick/tick. There is also a DEC register; - // both of them have a function (AccCalc() and DecCalc() respectively) that convert - // from steps/s/s into the appropriate value for the register. Writing ACC to 0xfff - // sets the acceleration and deceleration to 'infinite' (or as near as the driver can - // manage). If ACC is set to 0xfff, DEC is ignored. To get infinite deceleration - // without infinite acceleration, only hard stop will work. - unsigned long accelerationBYTES = AccCalc(acceleration); - SetParam(ACC, accelerationBYTES); -} - - -void L6470::setDec(float deceleration){ - unsigned long decelerationBYTES = DecCalc(deceleration); - SetParam(DEC, decelerationBYTES); -} - - -long L6470::getPos(){ - unsigned long position = GetParam(ABS_POS); - return convert(position); -} - -float L6470::getSpeed(){ - /* - SPEED - The SPEED register contains the current motor speed, expressed in step/tick (format unsigned fixed point 0.28). - In order to convert the SPEED value in step/s the following formula can be used: - Equation 4 - where SPEED is the integer number stored into the register and tick is 250 ns. - The available range is from 0 to 15625 step/s with a resolution of 0.015 step/s. - Note: The range effectively available to the user is limited by the MAX_SPEED parameter. - */ - - return (float) GetParam(SPEED); - //return (float) speed * pow(8, -22); - //return FSCalc(speed); NEEDS FIX -} - - -void L6470::setOverCurrent(unsigned int ma_current){ - // Configure the overcurrent detection threshold. - byte OCValue = floor(ma_current / 375); - if(OCValue > 0x0F)OCValue = 0x0F; - SetParam(OCD_TH, OCValue); -} - -void L6470::setStallCurrent(float ma_current){ - byte STHValue = (byte)floor(ma_current / 31.25); - if(STHValue > 0x80)STHValue = 0x80; - if(STHValue < 0)STHValue = 0; - SetParam(STALL_TH, STHValue); -} - -void L6470::SetLowSpeedOpt(boolean enable){ - // Enable or disable the low-speed optimization option. If enabling, - // the other 12 bits of the register will be automatically zero. - // When disabling, the value will have to be explicitly written by - // the user with a SetParam() call. See the datasheet for further - // information about low-speed optimization. - Xfer(SET_PARAM | MIN_SPEED); - if (enable) Param(0x1000, 13); - else Param(0, 13); -} - - -void L6470::run(byte dir, float spd){ - // RUN sets the motor spinning in a direction (defined by the constants - // FWD and REV). Maximum speed and minimum speed are defined - // by the MAX_SPEED and MIN_SPEED registers; exceeding the FS_SPD value - // will switch the device into full-step mode. - // The SpdCalc() function is provided to convert steps/s values into - // appropriate integer values for this function. - unsigned long speedVal = SpdCalc(spd); - - Xfer(RUN | dir); - if (speedVal > 0xFFFFF) speedVal = 0xFFFFF; - Xfer((byte)(speedVal >> 16)); - Xfer((byte)(speedVal >> 8)); - Xfer((byte)(speedVal)); -} - - -void L6470::Step_Clock(byte dir){ - // STEP_CLOCK puts the device in external step clocking mode. When active, - // pin 25, STCK, becomes the step clock for the device, and steps it in - // the direction (set by the FWD and REV constants) imposed by the call - // of this function. Motion commands (RUN, MOVE, etc) will cause the device - // to exit step clocking mode. - Xfer(STEP_CLOCK | dir); -} - -void L6470::move(long n_step){ - // MOVE will send the motor n_step steps (size based on step mode) in the - // direction imposed by dir (FWD or REV constants may be used). The motor - // will accelerate according the acceleration and deceleration curves, and - // will run at MAX_SPEED. Stepping mode will adhere to FS_SPD value, as well. - - byte dir; - - if(n_step >= 0){ - dir = FWD; - } - else{ - dir = REV; - } - - long n_stepABS = abs(n_step); - - Xfer(MOVE | dir); //set direction - if (n_stepABS > 0x3FFFFF) n_step = 0x3FFFFF; - Xfer((byte)(n_stepABS >> 16)); - Xfer((byte)(n_stepABS >> 8)); - Xfer((byte)(n_stepABS)); -} - -void L6470::goTo(long pos){ - // GOTO operates much like MOVE, except it produces absolute motion instead - // of relative motion. The motor will be moved to the indicated position - // in the shortest possible fashion. - - Xfer(GOTO); - if (pos > 0x3FFFFF) pos = 0x3FFFFF; - Xfer((byte)(pos >> 16)); - Xfer((byte)(pos >> 8)); - Xfer((byte)(pos)); -} - - -void L6470::goTo_DIR(byte dir, long pos){ - // Same as GOTO, but with user constrained rotational direction. - - Xfer(GOTO_DIR); - if (pos > 0x3FFFFF) pos = 0x3FFFFF; - Xfer((byte)(pos >> 16)); - Xfer((byte)(pos >> 8)); - Xfer((byte)(pos)); -} - -void L6470::goUntil(byte act, byte dir, unsigned long spd){ - // GoUntil will set the motor running with direction dir (REV or - // FWD) until a falling edge is detected on the SW pin. Depending - // on bit SW_MODE in CONFIG, either a hard stop or a soft stop is - // performed at the falling edge, and depending on the value of - // act (either RESET or COPY) the value in the ABS_POS register is - // either RESET to 0 or COPY-ed into the MARK register. - Xfer(GO_UNTIL | act | dir); - if (spd > 0x3FFFFF) spd = 0x3FFFFF; - Xfer((byte)(spd >> 16)); - Xfer((byte)(spd >> 8)); - Xfer((byte)(spd)); -} - -void L6470::releaseSW(byte act, byte dir){ - // Similar in nature to GoUntil, ReleaseSW produces motion at the - // higher of two speeds: the value in MIN_SPEED or 5 steps/s. - // The motor continues to run at this speed until a rising edge - // is detected on the switch input, then a hard stop is performed - // and the ABS_POS register is either COPY-ed into MARK or RESET to - // 0, depending on whether RESET or COPY was passed to the function - // for act. - Xfer(RELEASE_SW | act | dir); -} - -void L6470::goHome(){ - // GoHome is equivalent to GoTo(0), but requires less time to send. - // Note that no direction is provided; motion occurs through shortest - // path. If a direction is required, use GoTo_DIR(). - Xfer(GO_HOME); -} - -void L6470::goMark(){ - // GoMark is equivalent to GoTo(MARK), but requires less time to send. - // Note that no direction is provided; motion occurs through shortest - // path. If a direction is required, use GoTo_DIR(). - Xfer(GO_MARK); -} - - -void L6470::setMark(long value){ - - Xfer(MARK); - if (value > 0x3FFFFF) value = 0x3FFFFF; - if (value < -0x3FFFFF) value = -0x3FFFFF; - - - Xfer((byte)(value >> 16)); - Xfer((byte)(value >> 8)); - Xfer((byte)(value)); -} - - -void L6470::setMark(){ - long value = getPos(); - - Xfer(MARK); - if (value > 0x3FFFFF) value = 0x3FFFFF; - if (value < -0x3FFFFF) value = -0x3FFFFF; - - - Xfer((byte)(value >> 16)); - Xfer((byte)(value >> 8)); - Xfer((byte)(value)); -} - -void L6470::setAsHome(){ - // Sets the ABS_POS register to 0, effectively declaring the current - // position to be "HOME". - Xfer(RESET_POS); -} - -void L6470::resetDev(){ - // Reset device to power up conditions. Equivalent to toggling the STBY - // pin or cycling power. - Xfer(RESET_DEVICE); -} - -void L6470::softStop(){ - // Bring the motor to a halt using the deceleration curve. - Xfer(SOFT_STOP); -} - -void L6470::hardStop(){ - // Stop the motor right away. No deceleration. - Xfer(HARD_STOP); -} - -void L6470::softFree(){ - // Decelerate the motor and disengage - Xfer(SOFT_HIZ); -} - -void L6470::free(){ - // disengage the motor immediately with no deceleration. - Xfer(HARD_HIZ); -} - -int L6470::getStatus(){ - // Fetch and return the 16-bit value in the STATUS register. Resets - // any warning flags and exits any error states. Using GetParam() - // to read STATUS does not clear these values. - int temp = 0; - Xfer(GET_STATUS); - temp = Xfer(0)<<8; - temp |= Xfer(0); - return temp; -} - -unsigned long L6470::AccCalc(float stepsPerSecPerSec){ - // The value in the ACC register is [(steps/s/s)*(tick^2)]/(2^-40) where tick is - // 250ns (datasheet value)- 0x08A on boot. - // Multiply desired steps/s/s by .137438 to get an appropriate value for this register. - // This is a 12-bit value, so we need to make sure the value is at or below 0xFFF. - float temp = stepsPerSecPerSec * 0.137438; - if( (unsigned long) long(temp) > 0x00000FFF) return 0x00000FFF; - else return (unsigned long) long(temp); -} - - -unsigned long L6470::DecCalc(float stepsPerSecPerSec){ - // The calculation for DEC is the same as for ACC. Value is 0x08A on boot. - // This is a 12-bit value, so we need to make sure the value is at or below 0xFFF. - float temp = stepsPerSecPerSec * 0.137438; - if( (unsigned long) long(temp) > 0x00000FFF) return 0x00000FFF; - else return (unsigned long) long(temp); -} - -unsigned long L6470::MaxSpdCalc(float stepsPerSec){ - // The value in the MAX_SPD register is [(steps/s)*(tick)]/(2^-18) where tick is - // 250ns (datasheet value)- 0x041 on boot. - // Multiply desired steps/s by .065536 to get an appropriate value for this register - // This is a 10-bit value, so we need to make sure it remains at or below 0x3FF - float temp = stepsPerSec * .065536; - if( (unsigned long) long(temp) > 0x000003FF) return 0x000003FF; - else return (unsigned long) long(temp); -} - -unsigned long L6470::MinSpdCalc(float stepsPerSec){ - // The value in the MIN_SPD register is [(steps/s)*(tick)]/(2^-24) where tick is - // 250ns (datasheet value)- 0x000 on boot. - // Multiply desired steps/s by 4.1943 to get an appropriate value for this register - // This is a 12-bit value, so we need to make sure the value is at or below 0xFFF. - float temp = stepsPerSec * 4.1943; - if( (unsigned long) long(temp) > 0x00000FFF) return 0x00000FFF; - else return (unsigned long) long(temp); -} - -unsigned long L6470::FSCalc(float stepsPerSec){ - // The value in the FS_SPD register is ([(steps/s)*(tick)]/(2^-18))-0.5 where tick is - // 250ns (datasheet value)- 0x027 on boot. - // Multiply desired steps/s by .065536 and subtract .5 to get an appropriate value for this register - // This is a 10-bit value, so we need to make sure the value is at or below 0x3FF. - float temp = (stepsPerSec * .065536)-.5; - if( (unsigned long) long(temp) > 0x000003FF) return 0x000003FF; - else return (unsigned long) long(temp); -} - -unsigned long L6470::IntSpdCalc(float stepsPerSec){ - // The value in the INT_SPD register is [(steps/s)*(tick)]/(2^-24) where tick is - // 250ns (datasheet value)- 0x408 on boot. - // Multiply desired steps/s by 4.1943 to get an appropriate value for this register - // This is a 14-bit value, so we need to make sure the value is at or below 0x3FFF. - float temp = stepsPerSec * 4.1943; - if( (unsigned long) long(temp) > 0x00003FFF) return 0x00003FFF; - else return (unsigned long) long(temp); -} - -unsigned long L6470::SpdCalc(float stepsPerSec){ - // When issuing RUN command, the 20-bit speed is [(steps/s)*(tick)]/(2^-28) where tick is - // 250ns (datasheet value). - // Multiply desired steps/s by 67.106 to get an appropriate value for this register - // This is a 20-bit value, so we need to make sure the value is at or below 0xFFFFF. - - float temp = stepsPerSec * 67.106; - if( (unsigned long) long(temp) > 0x000FFFFF) return 0x000FFFFF; - else return (unsigned long)temp; -} - -unsigned long L6470::Param(unsigned long value, byte bit_len){ - // Generalization of the subsections of the register read/write functionality. - // We want the end user to just write the value without worrying about length, - // so we pass a bit length parameter from the calling function. - unsigned long ret_val=0; // We'll return this to generalize this function - // for both read and write of registers. - byte byte_len = bit_len/8; // How many BYTES do we have? - if (bit_len%8 > 0) byte_len++; // Make sure not to lose any partial byte values. - // Let's make sure our value has no spurious bits set, and if the value was too - // high, max it out. - unsigned long mask = 0xffffffff >> (32-bit_len); - if (value > mask) value = mask; - // The following three if statements handle the various possible byte length - // transfers- it'll be no less than 1 but no more than 3 bytes of data. - // L6470::Xfer() sends a byte out through SPI and returns a byte received - // over SPI- when calling it, we typecast a shifted version of the masked - // value, then we shift the received value back by the same amount and - // store it until return time. - if (byte_len == 3) { - ret_val |= long(Xfer((byte)(value>>16))) << 16; - //Serial.println(ret_val, HEX); - } - if (byte_len >= 2) { - ret_val |= long(Xfer((byte)(value>>8))) << 8; - //Serial.println(ret_val, HEX); - } - if (byte_len >= 1) { - ret_val |= Xfer((byte)value); - //Serial.println(ret_val, HEX); - } - // Return the received values. Mask off any unnecessary bits, just for - // the sake of thoroughness- we don't EXPECT to see anything outside - // the bit length range but better to be safe than sorry. - return (ret_val & mask); -} - -byte L6470::Xfer(byte data){ - // This simple function shifts a byte out over SPI and receives a byte over - // SPI. Unusually for SPI devices, the dSPIN requires a toggling of the - // CS (slaveSelect) pin after each byte sent. That makes this function - // a bit more reasonable, because we can include more functionality in it. - byte data_out; - digitalWrite(_SSPin,LOW); - // SPI.transfer() both shifts a byte out on the MOSI pin AND receives a - // byte in on the MISO pin. - data_out = SPI.transfer(data); - digitalWrite(_SSPin,HIGH); - return data_out; -} - - - -void L6470::SetParam(byte param, unsigned long value){ - Xfer(SET_PARAM | param); - ParamHandler(param, value); -} - -unsigned long L6470::GetParam(byte param){ - // Realize the "get parameter" function, to read from the various registers in - // the dSPIN chip. - Xfer(GET_PARAM | param); - return ParamHandler(param, 0); -} - -long L6470::convert(unsigned long val){ - //convert 22bit 2s comp to signed long - int MSB = val >> 21; - - val = val << 11; - val = val >> 11; - - if(MSB == 1) val = val | 0b11111111111000000000000000000000; - return val; -} - -unsigned long L6470::ParamHandler(byte param, unsigned long value){ - // Much of the functionality between "get parameter" and "set parameter" is - // very similar, so we deal with that by putting all of it in one function - // here to save memory space and simplify the program. - unsigned long ret_val = 0; // This is a temp for the value to return. - // This switch structure handles the appropriate action for each register. - // This is necessary since not all registers are of the same length, either - // bit-wise or byte-wise, so we want to make sure we mask out any spurious - // bits and do the right number of transfers. That is handled by the dSPIN_Param() - // function, in most cases, but for 1-byte or smaller transfers, we call - // Xfer() directly. - switch (param) - { - // ABS_POS is the current absolute offset from home. It is a 22 bit number expressed - // in two's complement. At power up, this value is 0. It cannot be written when - // the motor is running, but at any other time, it can be updated to change the - // interpreted position of the motor. - case ABS_POS: - ret_val = Param(value, 22); - break; - // EL_POS is the current electrical position in the step generation cycle. It can - // be set when the motor is not in motion. Value is 0 on power up. - case EL_POS: - ret_val = Param(value, 9); - break; - // MARK is a second position other than 0 that the motor can be told to go to. As - // with ABS_POS, it is 22-bit two's complement. Value is 0 on power up. - case MARK: - ret_val = Param(value, 22); - break; - // SPEED contains information about the current speed. It is read-only. It does - // NOT provide direction information. - case SPEED: - ret_val = Param(0, 20); - break; - // ACC and DEC set the acceleration and deceleration rates. Set ACC to 0xFFF - // to get infinite acceleration/decelaeration- there is no way to get infinite - // deceleration w/o infinite acceleration (except the HARD STOP command). - // Cannot be written while motor is running. Both default to 0x08A on power up. - // AccCalc() and DecCalc() functions exist to convert steps/s/s values into - // 12-bit values for these two registers. - case ACC: - ret_val = Param(value, 12); - break; - case DEC: - ret_val = Param(value, 12); - break; - // MAX_SPEED is just what it says- any command which attempts to set the speed - // of the motor above this value will simply cause the motor to turn at this - // speed. Value is 0x041 on power up. - // MaxSpdCalc() function exists to convert steps/s value into a 10-bit value - // for this register. - case MAX_SPEED: - ret_val = Param(value, 10); - break; - // MIN_SPEED controls two things- the activation of the low-speed optimization - // feature and the lowest speed the motor will be allowed to operate at. LSPD_OPT - // is the 13th bit, and when it is set, the minimum allowed speed is automatically - // set to zero. This value is 0 on startup. - // MinSpdCalc() function exists to convert steps/s value into a 12-bit value for this - // register. SetLowSpeedOpt() function exists to enable/disable the optimization feature. - case MIN_SPEED: - ret_val = Param(value, 12); - break; - // FS_SPD register contains a threshold value above which microstepping is disabled - // and the dSPIN operates in full-step mode. Defaults to 0x027 on power up. - // FSCalc() function exists to convert steps/s value into 10-bit integer for this - // register. - case FS_SPD: - ret_val = Param(value, 10); - break; - // KVAL is the maximum voltage of the PWM outputs. These 8-bit values are ratiometric - // representations: 255 for full output voltage, 128 for half, etc. Default is 0x29. - // The implications of different KVAL settings is too complex to dig into here, but - // it will usually work to max the value for RUN, ACC, and DEC. Maxing the value for - // HOLD may result in excessive power dissipation when the motor is not running. - case KVAL_HOLD: - ret_val = Xfer((byte)value); - break; - case KVAL_RUN: - ret_val = Xfer((byte)value); - break; - case KVAL_ACC: - ret_val = Xfer((byte)value); - break; - case KVAL_DEC: - ret_val = Xfer((byte)value); - break; - // INT_SPD, ST_SLP, FN_SLP_ACC and FN_SLP_DEC are all related to the back EMF - // compensation functionality. Please see the datasheet for details of this - // function- it is too complex to discuss here. Default values seem to work - // well enough. - case INT_SPD: - ret_val = Param(value, 14); - break; - case ST_SLP: - ret_val = Xfer((byte)value); - break; - case FN_SLP_ACC: - ret_val = Xfer((byte)value); - break; - case FN_SLP_DEC: - ret_val = Xfer((byte)value); - break; - // K_THERM is motor winding thermal drift compensation. Please see the datasheet - // for full details on operation- the default value should be okay for most users. - case K_THERM: - ret_val = Xfer((byte)value & 0x0F); - break; - // ADC_OUT is a read-only register containing the result of the ADC measurements. - // This is less useful than it sounds; see the datasheet for more information. - case ADC_OUT: - ret_val = Xfer(0); - break; - // Set the overcurrent threshold. Ranges from 375mA to 6A in steps of 375mA. - // A set of defined constants is provided for the user's convenience. Default - // value is 3.375A- 0x08. This is a 4-bit value. - case OCD_TH: - ret_val = Xfer((byte)value & 0x0F); - break; - // Stall current threshold. Defaults to 0x40, or 2.03A. Value is from 31.25mA to - // 4A in 31.25mA steps. This is a 7-bit value. - case STALL_TH: - ret_val = Xfer((byte)value & 0x7F); - break; - // STEP_MODE controls the microstepping settings, as well as the generation of an - // output signal from the dSPIN. Bits 2:0 control the number of microsteps per - // step the part will generate. Bit 7 controls whether the BUSY/SYNC pin outputs - // a BUSY signal or a step synchronization signal. Bits 6:4 control the frequency - // of the output signal relative to the full-step frequency; see datasheet for - // that relationship as it is too complex to reproduce here. - // Most likely, only the microsteps per step value will be needed; there is a set - // of constants provided for ease of use of these values. - case STEP_MODE: - ret_val = Xfer((byte)value); - break; - // ALARM_EN controls which alarms will cause the FLAG pin to fall. A set of constants - // is provided to make this easy to interpret. By default, ALL alarms will trigger the - // FLAG pin. - case ALARM_EN: - ret_val = Xfer((byte)value); - break; - // CONFIG contains some assorted configuration bits and fields. A fairly comprehensive - // set of reasonably self-explanatory constants is provided, but users should refer - // to the datasheet before modifying the contents of this register to be certain they - // understand the implications of their modifications. Value on boot is 0x2E88; this - // can be a useful way to verify proper start up and operation of the dSPIN chip. - case CONFIG: - ret_val = Param(value, 16); - break; - // STATUS contains read-only information about the current condition of the chip. A - // comprehensive set of constants for masking and testing this register is provided, but - // users should refer to the datasheet to ensure that they fully understand each one of - // the bits in the register. - case STATUS: // STATUS is a read-only register - ret_val = Param(0, 16); - break; - default: - ret_val = Xfer((byte)(value)); - break; - } - return ret_val; -} diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/L6470/L6470.h b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/L6470/L6470.h deleted file mode 100644 index 8b57686463..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/L6470/L6470.h +++ /dev/null @@ -1,286 +0,0 @@ -//////////////////////////////////////////////////////////// -//ORIGINAL CODE 12/12/2011- Mike Hord, SparkFun Electronics -//LIBRARY Created by Adam Meyer of bildr Aug 18th 2012 -//Released as MIT license -//////////////////////////////////////////////////////////// -#ifndef L6470_h -#define L6470_h - -#include -#include - -#define SLAVE_SELECT_PIN 38 // Wire this to the CSN pin -// #define RESET 6 // Wire this to the STBY line -#define BUSYN 7 // Wire this to the BSYN line - -// constant definitions for overcurrent thresholds. Write these values to -// register dSPIN_OCD_TH to set the level at which an overcurrent even occurs. -#define OCD_TH_375mA 0x00 -#define OCD_TH_750mA 0x01 -#define OCD_TH_1125mA 0x02 -#define OCD_TH_1500mA 0x03 -#define OCD_TH_1875mA 0x04 -#define OCD_TH_2250mA 0x05 -#define OCD_TH_2625mA 0x06 -#define OCD_TH_3000mA 0x07 -#define OCD_TH_3375mA 0x08 -#define OCD_TH_3750mA 0x09 -#define OCD_TH_4125mA 0x0A -#define OCD_TH_4500mA 0x0B -#define OCD_TH_4875mA 0x0C -#define OCD_TH_5250mA 0x0D -#define OCD_TH_5625mA 0x0E -#define OCD_TH_6000mA 0x0F - -// STEP_MODE option values. -// First comes the "microsteps per step" options... -#define STEP_MODE_STEP_SEL 0x07 // Mask for these bits only. -#define STEP_SEL_1 0x00 -#define STEP_SEL_1_2 0x01 -#define STEP_SEL_1_4 0x02 -#define STEP_SEL_1_8 0x03 -#define STEP_SEL_1_16 0x04 -#define STEP_SEL_1_32 0x05 -#define STEP_SEL_1_64 0x06 -#define STEP_SEL_1_128 0x07 - -// ...next, define the SYNC_EN bit. When set, the BUSYN pin will instead -// output a clock related to the full-step frequency as defined by the -// SYNC_SEL bits below. -#define STEP_MODE_SYNC_EN 0x80 // Mask for this bit -#define SYNC_EN 0x80 - -// ...last, define the SYNC_SEL modes. The clock output is defined by -// the full-step frequency and the value in these bits- see the datasheet -// for a matrix describing that relationship (page 46). -#define STEP_MODE_SYNC_SEL 0x70 -#define SYNC_SEL_1_2 0x00 -#define SYNC_SEL_1 0x10 -#define SYNC_SEL_2 0x20 -#define SYNC_SEL_4 0x30 -#define SYNC_SEL_8 0x40 -#define SYNC_SEL_16 0x50 -#define SYNC_SEL_32 0x60 -#define SYNC_SEL_64 0x70 - -// Bit names for the ALARM_EN register. -// Each of these bits defines one potential alarm condition. -// When one of these conditions occurs and the respective bit in ALARM_EN is set, -// the FLAG pin will go low. The register must be queried to determine which event -// caused the alarm. -#define ALARM_EN_OVERCURRENT 0x01 -#define ALARM_EN_THERMAL_SHUTDOWN 0x02 -#define ALARM_EN_THERMAL_WARNING 0x04 -#define ALARM_EN_UNDER_VOLTAGE 0x08 -#define ALARM_EN_STALL_DET_A 0x10 -#define ALARM_EN_STALL_DET_B 0x20 -#define ALARM_EN_SW_TURN_ON 0x40 -#define ALARM_EN_WRONG_NPERF_CMD 0x80 - -// CONFIG register renames. - -// Oscillator options. -// The dSPIN needs to know what the clock frequency is because it uses that for some -// calculations during operation. -#define CONFIG_OSC_SEL 0x000F // Mask for this bit field. -#define CONFIG_INT_16MHZ 0x0000 // Internal 16MHz, no output -#define CONFIG_INT_16MHZ_OSCOUT_2MHZ 0x0008 // Default; internal 16MHz, 2MHz output -#define CONFIG_INT_16MHZ_OSCOUT_4MHZ 0x0009 // Internal 16MHz, 4MHz output -#define CONFIG_INT_16MHZ_OSCOUT_8MHZ 0x000A // Internal 16MHz, 8MHz output -#define CONFIG_INT_16MHZ_OSCOUT_16MHZ 0x000B // Internal 16MHz, 16MHz output -#define CONFIG_EXT_8MHZ_XTAL_DRIVE 0x0004 // External 8MHz crystal -#define CONFIG_EXT_16MHZ_XTAL_DRIVE 0x0005 // External 16MHz crystal -#define CONFIG_EXT_24MHZ_XTAL_DRIVE 0x0006 // External 24MHz crystal -#define CONFIG_EXT_32MHZ_XTAL_DRIVE 0x0007 // External 32MHz crystal -#define CONFIG_EXT_8MHZ_OSCOUT_INVERT 0x000C // External 8MHz crystal, output inverted -#define CONFIG_EXT_16MHZ_OSCOUT_INVERT 0x000D // External 16MHz crystal, output inverted -#define CONFIG_EXT_24MHZ_OSCOUT_INVERT 0x000E // External 24MHz crystal, output inverted -#define CONFIG_EXT_32MHZ_OSCOUT_INVERT 0x000F // External 32MHz crystal, output inverted - -// Configure the functionality of the external switch input -#define CONFIG_SW_MODE 0x0010 // Mask for this bit. -#define CONFIG_SW_HARD_STOP 0x0000 // Default; hard stop motor on switch. -#define CONFIG_SW_USER 0x0010 // Tie to the GoUntil and ReleaseSW - // commands to provide jog function. - // See page 25 of datasheet. - -// Configure the motor voltage compensation mode (see page 34 of datasheet) -#define CONFIG_EN_VSCOMP 0x0020 // Mask for this bit. -#define CONFIG_VS_COMP_DISABLE 0x0000 // Disable motor voltage compensation. -#define CONFIG_VS_COMP_ENABLE 0x0020 // Enable motor voltage compensation. - -// Configure overcurrent detection event handling -#define CONFIG_OC_SD 0x0080 // Mask for this bit. -#define CONFIG_OC_SD_DISABLE 0x0000 // Bridges do NOT shutdown on OC detect -#define CONFIG_OC_SD_ENABLE 0x0080 // Bridges shutdown on OC detect - -// Configure the slew rate of the power bridge output -#define CONFIG_POW_SR 0x0300 // Mask for this bit field. -#define CONFIG_SR_180V_us 0x0000 // 180V/us -#define CONFIG_SR_290V_us 0x0200 // 290V/us -#define CONFIG_SR_530V_us 0x0300 // 530V/us - -// Integer divisors for PWM sinewave generation -// See page 32 of the datasheet for more information on this. -#define CONFIG_F_PWM_DEC 0x1C00 // mask for this bit field -#define CONFIG_PWM_MUL_0_625 (0x00)<<10 -#define CONFIG_PWM_MUL_0_75 (0x01)<<10 -#define CONFIG_PWM_MUL_0_875 (0x02)<<10 -#define CONFIG_PWM_MUL_1 (0x03)<<10 -#define CONFIG_PWM_MUL_1_25 (0x04)<<10 -#define CONFIG_PWM_MUL_1_5 (0x05)<<10 -#define CONFIG_PWM_MUL_1_75 (0x06)<<10 -#define CONFIG_PWM_MUL_2 (0x07)<<10 - -// Multiplier for the PWM sinewave frequency -#define CONFIG_F_PWM_INT 0xE000 // mask for this bit field. -#define CONFIG_PWM_DIV_1 (0x00)<<13 -#define CONFIG_PWM_DIV_2 (0x01)<<13 -#define CONFIG_PWM_DIV_3 (0x02)<<13 -#define CONFIG_PWM_DIV_4 (0x03)<<13 -#define CONFIG_PWM_DIV_5 (0x04)<<13 -#define CONFIG_PWM_DIV_6 (0x05)<<13 -#define CONFIG_PWM_DIV_7 (0x06)<<13 - -// Status register bit renames- read-only bits conferring information about the -// device to the user. -#define STATUS_HIZ 0x0001 // high when bridges are in HiZ mode -#define STATUS_BUSY 0x0002 // mirrors BUSY pin -#define STATUS_SW_F 0x0004 // low when switch open, high when closed -#define STATUS_SW_EVN 0x0008 // active high, set on switch falling edge, - // cleared by reading STATUS -#define STATUS_DIR 0x0010 // Indicates current motor direction. - // High is FWD, Low is REV. -#define STATUS_NOTPERF_CMD 0x0080 // Last command not performed. -#define STATUS_WRONG_CMD 0x0100 // Last command not valid. -#define STATUS_UVLO 0x0200 // Undervoltage lockout is active -#define STATUS_TH_WRN 0x0400 // Thermal warning -#define STATUS_TH_SD 0x0800 // Thermal shutdown -#define STATUS_OCD 0x1000 // Overcurrent detected -#define STATUS_STEP_LOSS_A 0x2000 // Stall detected on A bridge -#define STATUS_STEP_LOSS_B 0x4000 // Stall detected on B bridge -#define STATUS_SCK_MOD 0x8000 // Step clock mode is active - -// Status register motor status field -#define STATUS_MOT_STATUS 0x0060 // field mask -#define STATUS_MOT_STATUS_STOPPED (0x0000)<<13 // Motor stopped -#define STATUS_MOT_STATUS_ACCELERATION (0x0001)<<13 // Motor accelerating -#define STATUS_MOT_STATUS_DECELERATION (0x0002)<<13 // Motor decelerating -#define STATUS_MOT_STATUS_CONST_SPD (0x0003)<<13 // Motor at constant speed - -// Register address redefines. -// See the Param_Handler() function for more info about these. -#define ABS_POS 0x01 -#define EL_POS 0x02 -#define MARK 0x03 -#define SPEED 0x04 -#define ACC 0x05 -#define DEC 0x06 -#define MAX_SPEED 0x07 -#define MIN_SPEED 0x08 -#define FS_SPD 0x15 -#define KVAL_HOLD 0x09 -#define KVAL_RUN 0x0A -#define KVAL_ACC 0x0B -#define KVAL_DEC 0x0C -#define INT_SPD 0x0D -#define ST_SLP 0x0E -#define FN_SLP_ACC 0x0F -#define FN_SLP_DEC 0x10 -#define K_THERM 0x11 -#define ADC_OUT 0x12 -#define OCD_TH 0x13 -#define STALL_TH 0x14 -#define STEP_MODE 0x16 -#define ALARM_EN 0x17 -#define CONFIG 0x18 -#define STATUS 0x19 - -//dSPIN commands -#define NOP 0x00 -#define SET_PARAM 0x00 -#define GET_PARAM 0x20 -#define RUN 0x50 -#define STEP_CLOCK 0x58 -#define MOVE 0x40 -#define GOTO 0x60 -#define GOTO_DIR 0x68 -#define GO_UNTIL 0x82 -#define RELEASE_SW 0x92 -#define GO_HOME 0x70 -#define GO_MARK 0x78 -#define RESET_POS 0xD8 -#define RESET_DEVICE 0xC0 -#define SOFT_STOP 0xB0 -#define HARD_STOP 0xB8 -#define SOFT_HIZ 0xA0 -#define HARD_HIZ 0xA8 -#define GET_STATUS 0xD0 - -/* dSPIN direction options */ -#define FWD 0x01 -#define REV 0x00 - -/* dSPIN action options */ -#define ACTION_RESET 0x00 -#define ACTION_COPY 0x01 - - -class L6470{ - - public: - - L6470(int SSPin); - void init(int k_value); - void setMicroSteps(int microSteps); - void setCurrent(int current); - void setMaxSpeed(int speed); - void setMinSpeed(int speed); - void setAcc(float acceleration); - void setDec(float deceleration); - void setOverCurrent(unsigned int ma_current); - void setThresholdSpeed(float threshold); - void setStallCurrent(float ma_current); - - unsigned long ParamHandler(byte param, unsigned long value); - void SetLowSpeedOpt(boolean enable); - void run(byte dir, float spd); - void Step_Clock(byte dir); - void goHome(); - void setAsHome(); - void goMark(); - void move(long n_step); - void goTo(long pos); - void goTo_DIR(byte dir, long pos); - void goUntil(byte act, byte dir, unsigned long spd); - boolean isBusy(); - void releaseSW(byte act, byte dir); - float getSpeed(); - long getPos(); - void setMark(); - void setMark(long value); - void resetPos(); - void resetDev(); - void softStop(); - void hardStop(); - void softFree(); - void free(); - int getStatus(); - void SetParam(byte param, unsigned long value); - - private: - long convert(unsigned long val); - unsigned long GetParam(byte param); - unsigned long AccCalc(float stepsPerSecPerSec); - unsigned long DecCalc(float stepsPerSecPerSec); - unsigned long MaxSpdCalc(float stepsPerSec); - unsigned long MinSpdCalc(float stepsPerSec); - unsigned long FSCalc(float stepsPerSec); - unsigned long IntSpdCalc(float stepsPerSec); - unsigned long SpdCalc(float stepsPerSec); - unsigned long Param(unsigned long value, byte bit_len); - byte Xfer(byte data); - int _SSPin; -}; - -#endif diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/L6470/keywords.txt b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/L6470/keywords.txt deleted file mode 100644 index 7caa3d019d..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/L6470/keywords.txt +++ /dev/null @@ -1,53 +0,0 @@ -####################################################### -# keywords.txt - keywords file for the L6470 library -# -# ORIGINAL CODE 12/12/2011- Mike Hord, SparkFun Electronics -# Library by Adam Meyer of bildr Aug 18th 2012 -# -# Released as MIT license -####################################################### - -####################################### -# Datatypes (KEYWORD1) -####################################### - -L6470 KEYWORD1 - -####################################### -# Methods and Functions (KEYWORD2) -####################################### - -L6470 KEYWORD2 -init KEYWORD2 -setMicroSteps KEYWORD2 -setCurrent KEYWORD2 -setMaxSpeed KEYWORD2 -setMinSpeed KEYWORD2 -setAcc KEYWORD2 -setDec KEYWORD2 -setOverCurrent KEYWORD2 -setThresholdSpeed KEYWORD2 -setStallCurrent KEYWORD2 -ParamHandler KEYWORD2 -SetLowSpeedOpt KEYWORD2 -run KEYWORD2 -Step_Clock KEYWORD2 -goHome KEYWORD2 -goMark KEYWORD2 -move KEYWORD2 -goTo KEYWORD2 -goTo_DIR KEYWORD2 -goUntil KEYWORD2 -isBusy KEYWORD2 -releaseSW KEYWORD2 -resetPos KEYWORD2 -resetDev KEYWORD2 -softStop KEYWORD2 -hardStop KEYWORD2 -softHiZ KEYWORD2 -hardHiZ KEYWORD2 -getStatus KEYWORD2 - -####################################### -# Constants (LITERAL1) -####################################### \ No newline at end of file diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/LiquidCrystal/LiquidCrystal.cpp b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/LiquidCrystal/LiquidCrystal.cpp deleted file mode 100644 index 61efca46e0..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/LiquidCrystal/LiquidCrystal.cpp +++ /dev/null @@ -1,310 +0,0 @@ -#include "LiquidCrystal.h" - -#include -#include -#include -#include "Arduino.h" - -// When the display powers up, it is configured as follows: -// -// 1. Display clear -// 2. Function set: -// DL = 1; 8-bit interface data -// N = 0; 1-line display -// F = 0; 5x8 dot character font -// 3. Display on/off control: -// D = 0; Display off -// C = 0; Cursor off -// B = 0; Blinking off -// 4. Entry mode set: -// I/D = 1; Increment by 1 -// S = 0; No shift -// -// Note, however, that resetting the Arduino doesn't reset the LCD, so we -// can't assume that it's in that state when a sketch starts (and the -// LiquidCrystal constructor is called). - -LiquidCrystal::LiquidCrystal(uint8_t rs, uint8_t rw, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, - uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) -{ - init(0, rs, rw, enable, d0, d1, d2, d3, d4, d5, d6, d7); -} - -LiquidCrystal::LiquidCrystal(uint8_t rs, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, - uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) -{ - init(0, rs, 255, enable, d0, d1, d2, d3, d4, d5, d6, d7); -} - -LiquidCrystal::LiquidCrystal(uint8_t rs, uint8_t rw, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3) -{ - init(1, rs, rw, enable, d0, d1, d2, d3, 0, 0, 0, 0); -} - -LiquidCrystal::LiquidCrystal(uint8_t rs, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3) -{ - init(1, rs, 255, enable, d0, d1, d2, d3, 0, 0, 0, 0); -} - -void LiquidCrystal::init(uint8_t fourbitmode, uint8_t rs, uint8_t rw, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, - uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) -{ - _rs_pin = rs; - _rw_pin = rw; - _enable_pin = enable; - - _data_pins[0] = d0; - _data_pins[1] = d1; - _data_pins[2] = d2; - _data_pins[3] = d3; - _data_pins[4] = d4; - _data_pins[5] = d5; - _data_pins[6] = d6; - _data_pins[7] = d7; - - pinMode(_rs_pin, OUTPUT); - // we can save 1 pin by not using RW. Indicate by passing 255 instead of pin# - if (_rw_pin != 255) { - pinMode(_rw_pin, OUTPUT); - } - pinMode(_enable_pin, OUTPUT); - - if (fourbitmode) - _displayfunction = LCD_4BITMODE | LCD_1LINE | LCD_5x8DOTS; - else - _displayfunction = LCD_8BITMODE | LCD_1LINE | LCD_5x8DOTS; - - begin(16, 1); -} - -void LiquidCrystal::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) { - if (lines > 1) { - _displayfunction |= LCD_2LINE; - } - _numlines = lines; - _currline = 0; - - // for some 1 line displays you can select a 10 pixel high font - if ((dotsize != 0) && (lines == 1)) { - _displayfunction |= LCD_5x10DOTS; - } - - // SEE PAGE 45/46 FOR INITIALIZATION SPECIFICATION! - // according to datasheet, we need at least 40ms after power rises above 2.7V - // before sending commands. Arduino can turn on way befer 4.5V so we'll wait 50 - delayMicroseconds(50000); - // Now we pull both RS and R/W low to begin commands - digitalWrite(_rs_pin, LOW); - digitalWrite(_enable_pin, LOW); - if (_rw_pin != 255) { - digitalWrite(_rw_pin, LOW); - } - - //put the LCD into 4 bit or 8 bit mode - if (! (_displayfunction & LCD_8BITMODE)) { - // this is according to the hitachi HD44780 datasheet - // figure 24, pg 46 - - // we start in 8bit mode, try to set 4 bit mode - write4bits(0x03); - delayMicroseconds(4500); // wait min 4.1ms - - // second try - write4bits(0x03); - delayMicroseconds(4500); // wait min 4.1ms - - // third go! - write4bits(0x03); - delayMicroseconds(150); - - // finally, set to 4-bit interface - write4bits(0x02); - } else { - // this is according to the hitachi HD44780 datasheet - // page 45 figure 23 - - // Send function set command sequence - command(LCD_FUNCTIONSET | _displayfunction); - delayMicroseconds(4500); // wait more than 4.1ms - - // second try - command(LCD_FUNCTIONSET | _displayfunction); - delayMicroseconds(150); - - // third go - command(LCD_FUNCTIONSET | _displayfunction); - } - - // finally, set # lines, font size, etc. - command(LCD_FUNCTIONSET | _displayfunction); - - // turn the display on with no cursor or blinking default - _displaycontrol = LCD_DISPLAYON | LCD_CURSOROFF | LCD_BLINKOFF; - display(); - - // clear it off - clear(); - - // Initialize to default text direction (for romance languages) - _displaymode = LCD_ENTRYLEFT | LCD_ENTRYSHIFTDECREMENT; - // set the entry mode - command(LCD_ENTRYMODESET | _displaymode); - -} - -/********** high level commands, for the user! */ -void LiquidCrystal::clear() -{ - command(LCD_CLEARDISPLAY); // clear display, set cursor position to zero - delayMicroseconds(2000); // this command takes a long time! -} - -void LiquidCrystal::home() -{ - command(LCD_RETURNHOME); // set cursor position to zero - delayMicroseconds(2000); // this command takes a long time! -} - -void LiquidCrystal::setCursor(uint8_t col, uint8_t row) -{ - int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 }; - if ( row >= _numlines ) { - row = _numlines-1; // we count rows starting w/0 - } - - command(LCD_SETDDRAMADDR | (col + row_offsets[row])); -} - -// Turn the display on/off (quickly) -void LiquidCrystal::noDisplay() { - _displaycontrol &= ~LCD_DISPLAYON; - command(LCD_DISPLAYCONTROL | _displaycontrol); -} -void LiquidCrystal::display() { - _displaycontrol |= LCD_DISPLAYON; - command(LCD_DISPLAYCONTROL | _displaycontrol); -} - -// Turns the underline cursor on/off -void LiquidCrystal::noCursor() { - _displaycontrol &= ~LCD_CURSORON; - command(LCD_DISPLAYCONTROL | _displaycontrol); -} -void LiquidCrystal::cursor() { - _displaycontrol |= LCD_CURSORON; - command(LCD_DISPLAYCONTROL | _displaycontrol); -} - -// Turn on and off the blinking cursor -void LiquidCrystal::noBlink() { - _displaycontrol &= ~LCD_BLINKON; - command(LCD_DISPLAYCONTROL | _displaycontrol); -} -void LiquidCrystal::blink() { - _displaycontrol |= LCD_BLINKON; - command(LCD_DISPLAYCONTROL | _displaycontrol); -} - -// These commands scroll the display without changing the RAM -void LiquidCrystal::scrollDisplayLeft(void) { - command(LCD_CURSORSHIFT | LCD_DISPLAYMOVE | LCD_MOVELEFT); -} -void LiquidCrystal::scrollDisplayRight(void) { - command(LCD_CURSORSHIFT | LCD_DISPLAYMOVE | LCD_MOVERIGHT); -} - -// This is for text that flows Left to Right -void LiquidCrystal::leftToRight(void) { - _displaymode |= LCD_ENTRYLEFT; - command(LCD_ENTRYMODESET | _displaymode); -} - -// This is for text that flows Right to Left -void LiquidCrystal::rightToLeft(void) { - _displaymode &= ~LCD_ENTRYLEFT; - command(LCD_ENTRYMODESET | _displaymode); -} - -// This will 'right justify' text from the cursor -void LiquidCrystal::autoscroll(void) { - _displaymode |= LCD_ENTRYSHIFTINCREMENT; - command(LCD_ENTRYMODESET | _displaymode); -} - -// This will 'left justify' text from the cursor -void LiquidCrystal::noAutoscroll(void) { - _displaymode &= ~LCD_ENTRYSHIFTINCREMENT; - command(LCD_ENTRYMODESET | _displaymode); -} - -// Allows us to fill the first 8 CGRAM locations -// with custom characters -void LiquidCrystal::createChar(uint8_t location, uint8_t charmap[]) { - location &= 0x7; // we only have 8 locations 0-7 - command(LCD_SETCGRAMADDR | (location << 3)); - for (int i=0; i<8; i++) { - write(charmap[i]); - } -} - -/*********** mid level commands, for sending data/cmds */ - -inline void LiquidCrystal::command(uint8_t value) { - send(value, LOW); -} - -inline size_t LiquidCrystal::write(uint8_t value) { - send(value, HIGH); - return 1; // assume sucess -} - -/************ low level data pushing commands **********/ - -// write either command or data, with automatic 4/8-bit selection -void LiquidCrystal::send(uint8_t value, uint8_t mode) { - digitalWrite(_rs_pin, mode); - - // if there is a RW pin indicated, set it low to Write - if (_rw_pin != 255) { - digitalWrite(_rw_pin, LOW); - } - - if (_displayfunction & LCD_8BITMODE) { - write8bits(value); - } else { - write4bits(value>>4); - write4bits(value); - } -} - -void LiquidCrystal::pulseEnable(void) { - digitalWrite(_enable_pin, LOW); - delayMicroseconds(1); - digitalWrite(_enable_pin, HIGH); - delayMicroseconds(1); // enable pulse must be >450ns - digitalWrite(_enable_pin, LOW); - delayMicroseconds(100); // commands need > 37us to settle -} - -void LiquidCrystal::write4bits(uint8_t value) { - for (int i = 0; i < 4; i++) { - pinMode(_data_pins[i], OUTPUT); - digitalWrite(_data_pins[i], (value >> i) & 0x01); - } - - pulseEnable(); -} - -void LiquidCrystal::write8bits(uint8_t value) { - for (int i = 0; i < 8; i++) { - pinMode(_data_pins[i], OUTPUT); - digitalWrite(_data_pins[i], (value >> i) & 0x01); - } - - pulseEnable(); -} diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/LiquidCrystal/LiquidCrystal.h b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/LiquidCrystal/LiquidCrystal.h deleted file mode 100644 index 24ec5afdf5..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/LiquidCrystal/LiquidCrystal.h +++ /dev/null @@ -1,106 +0,0 @@ -#ifndef LiquidCrystal_h -#define LiquidCrystal_h - -#include -#include "Print.h" - -// commands -#define LCD_CLEARDISPLAY 0x01 -#define LCD_RETURNHOME 0x02 -#define LCD_ENTRYMODESET 0x04 -#define LCD_DISPLAYCONTROL 0x08 -#define LCD_CURSORSHIFT 0x10 -#define LCD_FUNCTIONSET 0x20 -#define LCD_SETCGRAMADDR 0x40 -#define LCD_SETDDRAMADDR 0x80 - -// flags for display entry mode -#define LCD_ENTRYRIGHT 0x00 -#define LCD_ENTRYLEFT 0x02 -#define LCD_ENTRYSHIFTINCREMENT 0x01 -#define LCD_ENTRYSHIFTDECREMENT 0x00 - -// flags for display on/off control -#define LCD_DISPLAYON 0x04 -#define LCD_DISPLAYOFF 0x00 -#define LCD_CURSORON 0x02 -#define LCD_CURSOROFF 0x00 -#define LCD_BLINKON 0x01 -#define LCD_BLINKOFF 0x00 - -// flags for display/cursor shift -#define LCD_DISPLAYMOVE 0x08 -#define LCD_CURSORMOVE 0x00 -#define LCD_MOVERIGHT 0x04 -#define LCD_MOVELEFT 0x00 - -// flags for function set -#define LCD_8BITMODE 0x10 -#define LCD_4BITMODE 0x00 -#define LCD_2LINE 0x08 -#define LCD_1LINE 0x00 -#define LCD_5x10DOTS 0x04 -#define LCD_5x8DOTS 0x00 - -class LiquidCrystal : public Print { -public: - LiquidCrystal(uint8_t rs, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, - uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7); - LiquidCrystal(uint8_t rs, uint8_t rw, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, - uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7); - LiquidCrystal(uint8_t rs, uint8_t rw, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3); - LiquidCrystal(uint8_t rs, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3); - - void init(uint8_t fourbitmode, uint8_t rs, uint8_t rw, uint8_t enable, - uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, - uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7); - - void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS); - - void clear(); - void home(); - - void noDisplay(); - void display(); - void noBlink(); - void blink(); - void noCursor(); - void cursor(); - void scrollDisplayLeft(); - void scrollDisplayRight(); - void leftToRight(); - void rightToLeft(); - void autoscroll(); - void noAutoscroll(); - - void createChar(uint8_t, uint8_t[]); - void setCursor(uint8_t, uint8_t); - virtual size_t write(uint8_t); - void command(uint8_t); - - using Print::write; -private: - void send(uint8_t, uint8_t); - void write4bits(uint8_t); - void write8bits(uint8_t); - void pulseEnable(); - - uint8_t _rs_pin; // LOW: command. HIGH: character. - uint8_t _rw_pin; // LOW: write to LCD. HIGH: read from LCD. - uint8_t _enable_pin; // activated by a HIGH pulse. - uint8_t _data_pins[8]; - - uint8_t _displayfunction; - uint8_t _displaycontrol; - uint8_t _displaymode; - - uint8_t _initialized; - - uint8_t _numlines,_currline; -}; - -#endif diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/LiquidCrystal/keywords.txt b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/LiquidCrystal/keywords.txt deleted file mode 100644 index 132845cb65..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/LiquidCrystal/keywords.txt +++ /dev/null @@ -1,37 +0,0 @@ -####################################### -# Syntax Coloring Map For LiquidCrystal -####################################### - -####################################### -# Datatypes (KEYWORD1) -####################################### - -LiquidCrystal KEYWORD1 - -####################################### -# Methods and Functions (KEYWORD2) -####################################### - -begin KEYWORD2 -clear KEYWORD2 -home KEYWORD2 -print KEYWORD2 -setCursor KEYWORD2 -cursor KEYWORD2 -noCursor KEYWORD2 -blink KEYWORD2 -noBlink KEYWORD2 -display KEYWORD2 -noDisplay KEYWORD2 -autoscroll KEYWORD2 -noAutoscroll KEYWORD2 -leftToRight KEYWORD2 -rightToLeft KEYWORD2 -scrollDisplayLeft KEYWORD2 -scrollDisplayRight KEYWORD2 -createChar KEYWORD2 - -####################################### -# Constants (LITERAL1) -####################################### - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/SPI/SPI.cpp b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/SPI/SPI.cpp deleted file mode 100644 index 5e48073f73..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/SPI/SPI.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2010 by Cristian Maglie - * SPI Master library for arduino. - * - * This file is free software; you can redistribute it and/or modify - * it under the terms of either the GNU General Public License version 2 - * or the GNU Lesser General Public License version 2.1, both as - * published by the Free Software Foundation. - */ - -#include "pins_arduino.h" -#include "SPI.h" - -SPIClass SPI; - -void SPIClass::begin() { - - // Set SS to high so a connected chip will be "deselected" by default - digitalWrite(SS, HIGH); - - // When the SS pin is set as OUTPUT, it can be used as - // a general purpose output port (it doesn't influence - // SPI operations). - pinMode(SS, OUTPUT); - - // Warning: if the SS pin ever becomes a LOW INPUT then SPI - // automatically switches to Slave, so the data direction of - // the SS pin MUST be kept as OUTPUT. - SPCR |= _BV(MSTR); - SPCR |= _BV(SPE); - - // Set direction register for SCK and MOSI pin. - // MISO pin automatically overrides to INPUT. - // By doing this AFTER enabling SPI, we avoid accidentally - // clocking in a single bit since the lines go directly - // from "input" to SPI control. - // http://code.google.com/p/arduino/issues/detail?id=888 - pinMode(SCK, OUTPUT); - pinMode(MOSI, OUTPUT); -} - - -void SPIClass::end() { - SPCR &= ~_BV(SPE); -} - -void SPIClass::setBitOrder(uint8_t bitOrder) -{ - if(bitOrder == LSBFIRST) { - SPCR |= _BV(DORD); - } else { - SPCR &= ~(_BV(DORD)); - } -} - -void SPIClass::setDataMode(uint8_t mode) -{ - SPCR = (SPCR & ~SPI_MODE_MASK) | mode; -} - -void SPIClass::setClockDivider(uint8_t rate) -{ - SPCR = (SPCR & ~SPI_CLOCK_MASK) | (rate & SPI_CLOCK_MASK); - SPSR = (SPSR & ~SPI_2XCLOCK_MASK) | ((rate >> 2) & SPI_2XCLOCK_MASK); -} - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/SPI/SPI.h b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/SPI/SPI.h deleted file mode 100644 index f647d5c891..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/SPI/SPI.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2010 by Cristian Maglie - * SPI Master library for arduino. - * - * This file is free software; you can redistribute it and/or modify - * it under the terms of either the GNU General Public License version 2 - * or the GNU Lesser General Public License version 2.1, both as - * published by the Free Software Foundation. - */ - -#ifndef _SPI_H_INCLUDED -#define _SPI_H_INCLUDED - -#include -#include -#include - -#define SPI_CLOCK_DIV4 0x00 -#define SPI_CLOCK_DIV16 0x01 -#define SPI_CLOCK_DIV64 0x02 -#define SPI_CLOCK_DIV128 0x03 -#define SPI_CLOCK_DIV2 0x04 -#define SPI_CLOCK_DIV8 0x05 -#define SPI_CLOCK_DIV32 0x06 -//#define SPI_CLOCK_DIV64 0x07 - -#define SPI_MODE0 0x00 -#define SPI_MODE1 0x04 -#define SPI_MODE2 0x08 -#define SPI_MODE3 0x0C - -#define SPI_MODE_MASK 0x0C // CPOL = bit 3, CPHA = bit 2 on SPCR -#define SPI_CLOCK_MASK 0x03 // SPR1 = bit 1, SPR0 = bit 0 on SPCR -#define SPI_2XCLOCK_MASK 0x01 // SPI2X = bit 0 on SPSR - -class SPIClass { -public: - inline static byte transfer(byte _data); - - // SPI Configuration methods - - inline static void attachInterrupt(); - inline static void detachInterrupt(); // Default - - static void begin(); // Default - static void end(); - - static void setBitOrder(uint8_t); - static void setDataMode(uint8_t); - static void setClockDivider(uint8_t); -}; - -extern SPIClass SPI; - -byte SPIClass::transfer(byte _data) { - SPDR = _data; - while (!(SPSR & _BV(SPIF))) - ; - return SPDR; -} - -void SPIClass::attachInterrupt() { - SPCR |= _BV(SPIE); -} - -void SPIClass::detachInterrupt() { - SPCR &= ~_BV(SPIE); -} - -#endif diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/SPI/keywords.txt b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/SPI/keywords.txt deleted file mode 100644 index fa7616581a..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/SPI/keywords.txt +++ /dev/null @@ -1,36 +0,0 @@ -####################################### -# Syntax Coloring Map SPI -####################################### - -####################################### -# Datatypes (KEYWORD1) -####################################### - -SPI KEYWORD1 - -####################################### -# Methods and Functions (KEYWORD2) -####################################### -begin KEYWORD2 -end KEYWORD2 -transfer KEYWORD2 -setBitOrder KEYWORD2 -setDataMode KEYWORD2 -setClockDivider KEYWORD2 - - -####################################### -# Constants (LITERAL1) -####################################### -SPI_CLOCK_DIV4 LITERAL1 -SPI_CLOCK_DIV16 LITERAL1 -SPI_CLOCK_DIV64 LITERAL1 -SPI_CLOCK_DIV128 LITERAL1 -SPI_CLOCK_DIV2 LITERAL1 -SPI_CLOCK_DIV8 LITERAL1 -SPI_CLOCK_DIV32 LITERAL1 -SPI_CLOCK_DIV64 LITERAL1 -SPI_MODE0 LITERAL1 -SPI_MODE1 LITERAL1 -SPI_MODE2 LITERAL1 -SPI_MODE3 LITERAL1 \ No newline at end of file diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/.gitignore b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/.gitignore deleted file mode 100644 index c0f77e480a..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -#mac stuff -.DS_Store - -#eclipse stuff -.classpath -.project - -#processing stuff -generated/ -examples/TMC26XMotorTester/processing/TMC26XMotorTest/application.*/ -examples/TMC26XMotorTester/processing/TMC26XMotorTest/application.* - -#eagle stuff -schematics/*.b#? -schematics/*.s#? - -*.zip diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/Doxyfile b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/Doxyfile deleted file mode 100644 index e169f06083..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/Doxyfile +++ /dev/null @@ -1,1813 +0,0 @@ -# Doxyfile 1.7.6.1 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project -# -# All text after a hash (#) is considered a comment and will be ignored -# The format is: -# TAG = value [value, ...] -# For lists items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (" ") - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all -# text before the first occurrence of this tag. Doxygen uses libiconv (or the -# iconv built into libc) for the transcoding. See -# http://www.gnu.org/software/libiconv for the list of possible encodings. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or sequence of words) that should -# identify the project. Note that if you do not use Doxywizard you need -# to put quotes around the project name if it contains spaces. - -PROJECT_NAME = "Trinamic TMC26X Stepper Driver for Arduino" - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. -# This could be handy for archiving the generated documentation or -# if some version control system is used. - -PROJECT_NUMBER = - -# Using the PROJECT_BRIEF tag one can provide an optional one line description -# for a project that appears at the top of each page and should give viewer -# a quick idea about the purpose of the project. Keep the description short. - -PROJECT_BRIEF = - -# With the PROJECT_LOGO tag one can specify an logo or icon that is -# included in the documentation. The maximum height of the logo should not -# exceed 55 pixels and the maximum width should not exceed 200 pixels. -# Doxygen will copy the logo to the output directory. - -PROJECT_LOGO = - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) -# base path where the generated documentation will be put. -# If a relative path is entered, it will be relative to the location -# where doxygen was started. If left blank the current directory will be used. - -OUTPUT_DIRECTORY = /Users/marcus/Arduino/libraries/TMC26XStepper/documentation - -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create -# 4096 sub-directories (in 2 levels) under the output directory of each output -# format and will distribute the generated files over these directories. -# Enabling this option can be useful when feeding doxygen a huge amount of -# source files, where putting all generated files in the same directory would -# otherwise cause performance problems for the file system. - -CREATE_SUBDIRS = NO - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# The default language is English, other supported languages are: -# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, -# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, -# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English -# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, -# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, -# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will -# include brief member descriptions after the members that are listed in -# the file and class documentation (similar to JavaDoc). -# Set to NO to disable this. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend -# the brief description of a member or function before the detailed description. -# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator -# that is used to form the text in various listings. Each string -# in this list, if found as the leading text of the brief description, will be -# stripped from the text and the result after processing the whole list, is -# used as the annotated text. Otherwise, the brief description is used as-is. -# If left blank, the following values are used ("$name" is automatically -# replaced with the name of the entity): "The $name class" "The $name widget" -# "The $name file" "is" "provides" "specifies" "contains" -# "represents" "a" "an" "the" - -ABBREVIATE_BRIEF = "The $name class" \ - "The $name widget" \ - "The $name file" \ - is \ - provides \ - specifies \ - contains \ - represents \ - a \ - an \ - the - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# Doxygen will generate a detailed section even if there is only a brief -# description. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. - -INLINE_INHERITED_MEMB = NO - -# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full -# path before files name in the file list and in the header files. If set -# to NO the shortest path that makes the file name unique will be used. - -FULL_PATH_NAMES = YES - -# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag -# can be used to strip a user-defined part of the path. Stripping is -# only done if one of the specified strings matches the left-hand part of -# the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the -# path to strip. - -STRIP_FROM_PATH = - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of -# the path mentioned in the documentation of a class, which tells -# the reader which header file to include in order to use a class. -# If left blank only the name of the header file containing the class -# definition is used. Otherwise one should specify the include paths that -# are normally passed to the compiler using the -I flag. - -STRIP_FROM_INC_PATH = - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter -# (but less readable) file names. This can be useful if your file system -# doesn't support long names like on DOS, Mac, or CD-ROM. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen -# will interpret the first line (until the first dot) of a JavaDoc-style -# comment as the brief description. If set to NO, the JavaDoc -# comments will behave just like regular Qt-style comments -# (thus requiring an explicit @brief command for a brief description.) - -JAVADOC_AUTOBRIEF = NO - -# If the QT_AUTOBRIEF tag is set to YES then Doxygen will -# interpret the first line (until the first dot) of a Qt-style -# comment as the brief description. If set to NO, the comments -# will behave just like regular Qt-style comments (thus requiring -# an explicit \brief command for a brief description.) - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen -# treat a multi-line C++ special comment block (i.e. a block of //! or /// -# comments) as a brief description. This used to be the default behaviour. -# The new default is to treat a multi-line C++ comment block as a detailed -# description. Set this tag to YES if you prefer the old behaviour instead. - -MULTILINE_CPP_IS_BRIEF = NO - -# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented -# member inherits the documentation from any documented member that it -# re-implements. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce -# a new page for each member. If set to NO, the documentation of a member will -# be part of the file/class/namespace that contains it. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. -# Doxygen uses this value to replace tabs by spaces in code fragments. - -TAB_SIZE = 8 - -# This tag can be used to specify a number of aliases that acts -# as commands in the documentation. An alias has the form "name=value". -# For example adding "sideeffect=\par Side Effects:\n" will allow you to -# put the command \sideeffect (or @sideeffect) in the documentation, which -# will result in a user-defined paragraph with heading "Side Effects:". -# You can put \n's in the value part of an alias to insert newlines. - -ALIASES = - -# This tag can be used to specify a number of word-keyword mappings (TCL only). -# A mapping has the form "name=value". For example adding -# "class=itcl::class" will allow you to use the command class in the -# itcl::class meaning. - -TCL_SUBST = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C -# sources only. Doxygen will then generate output that is more tailored for C. -# For instance, some of the names that are used will be different. The list -# of all members will be omitted, etc. - -OPTIMIZE_OUTPUT_FOR_C = NO - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java -# sources only. Doxygen will then generate output that is more tailored for -# Java. For instance, namespaces will be presented as packages, qualified -# scopes will look different, etc. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources only. Doxygen will then generate output that is more tailored for -# Fortran. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for -# VHDL. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given extension. -# Doxygen has a built-in mapping, but you can override or extend it using this -# tag. The format is ext=language, where ext is a file extension, and language -# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, -# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make -# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C -# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions -# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. - -EXTENSION_MAPPING = - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should -# set this tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. -# func(std::string) {}). This also makes the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. -# Doxygen will parse them like normal C++ but will assume all classes use public -# instead of private inheritance when no explicit protection keyword is present. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate getter -# and setter methods for a property. Setting this option to YES (the default) -# will make doxygen replace the get and set methods by a property in the -# documentation. This will only work if the methods are indeed getting or -# setting a simple type. If this is not the case, or you want to show the -# methods anyway, you should set this option to NO. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. - -DISTRIBUTE_GROUP_DOC = NO - -# Set the SUBGROUPING tag to YES (the default) to allow class member groups of -# the same type (for instance a group of public functions) to be put as a -# subgroup of that type (e.g. under the Public Functions section). Set it to -# NO to prevent subgrouping. Alternatively, this can be done per class using -# the \nosubgrouping command. - -SUBGROUPING = YES - -# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and -# unions are shown inside the group in which they are included (e.g. using -# @ingroup) instead of on a separate page (for HTML and Man pages) or -# section (for LaTeX and RTF). - -INLINE_GROUPED_CLASSES = NO - -# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and -# unions with only public data fields will be shown inline in the documentation -# of the scope in which they are defined (i.e. file, namespace, or group -# documentation), provided this scope is documented. If set to NO (the default), -# structs, classes, and unions are shown on a separate page (for HTML and Man -# pages) or section (for LaTeX and RTF). - -INLINE_SIMPLE_STRUCTS = NO - -# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum -# is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically -# be useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. - -TYPEDEF_HIDES_STRUCT = NO - -# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to -# determine which symbols to keep in memory and which to flush to disk. -# When the cache is full, less often used symbols will be written to disk. -# For small to medium size projects (<1000 input files) the default value is -# probably good enough. For larger projects a too small cache size can cause -# doxygen to be busy swapping symbols to and from disk most of the time -# causing a significant performance penalty. -# If the system has enough physical memory increasing the cache will improve the -# performance by keeping more symbols in memory. Note that the value works on -# a logarithmic scale so increasing the size by one will roughly double the -# memory usage. The cache size is given by this formula: -# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, -# corresponding to a cache size of 2^16 = 65536 symbols. - -SYMBOL_CACHE_SIZE = 0 - -# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be -# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given -# their name and scope. Since this can be an expensive process and often the -# same symbol appear multiple times in the code, doxygen keeps a cache of -# pre-resolved symbols. If the cache is too small doxygen will become slower. -# If the cache is too large, memory is wasted. The cache size is given by this -# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, -# corresponding to a cache size of 2^16 = 65536 symbols. - -LOOKUP_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. -# Private class members and static file members will be hidden unless -# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES - -EXTRACT_ALL = YES - -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class -# will be included in the documentation. - -EXTRACT_PRIVATE = NO - -# If the EXTRACT_STATIC tag is set to YES all static members of a file -# will be included in the documentation. - -EXTRACT_STATIC = NO - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) -# defined locally in source files will be included in the documentation. -# If set to NO only classes defined in header files are included. - -EXTRACT_LOCAL_CLASSES = YES - -# This flag is only useful for Objective-C code. When set to YES local -# methods, which are defined in the implementation section but not in -# the interface are included in the documentation. -# If set to NO (the default) only methods in the interface are included. - -EXTRACT_LOCAL_METHODS = NO - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base -# name of the file that contains the anonymous namespace. By default -# anonymous namespaces are hidden. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all -# undocumented members of documented classes, files or namespaces. -# If set to NO (the default) these members will be included in the -# various overviews, but no documentation section is generated. -# This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_MEMBERS = NO - -# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. -# If set to NO (the default) these classes will be included in the various -# overviews. This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_CLASSES = NO - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all -# friend (class|struct|union) declarations. -# If set to NO (the default) these declarations will be included in the -# documentation. - -HIDE_FRIEND_COMPOUNDS = NO - -# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any -# documentation blocks found inside the body of a function. -# If set to NO (the default) these blocks will be appended to the -# function's detailed documentation block. - -HIDE_IN_BODY_DOCS = NO - -# The INTERNAL_DOCS tag determines if documentation -# that is typed after a \internal command is included. If the tag is set -# to NO (the default) then the documentation will be excluded. -# Set it to YES to include the internal documentation. - -INTERNAL_DOCS = NO - -# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate -# file names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. - -CASE_SENSE_NAMES = NO - -# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen -# will show members with their full class and namespace scopes in the -# documentation. If set to YES the scope will be hidden. - -HIDE_SCOPE_NAMES = NO - -# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen -# will put a list of the files that are included by a file in the documentation -# of that file. - -SHOW_INCLUDE_FILES = YES - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen -# will list include files with double quotes in the documentation -# rather than with sharp brackets. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] -# is inserted in the documentation for inline members. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen -# will sort the (detailed) documentation of file and class members -# alphabetically by member name. If set to NO the members will appear in -# declaration order. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the -# brief documentation of file, namespace and class members alphabetically -# by member name. If set to NO (the default) the members will appear in -# declaration order. - -SORT_BRIEF_DOCS = NO - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen -# will sort the (brief and detailed) documentation of class members so that -# constructors and destructors are listed first. If set to NO (the default) -# the constructors will appear in the respective orders defined by -# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. -# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO -# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the -# hierarchy of group names into alphabetical order. If set to NO (the default) -# the group names will appear in their defined order. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be -# sorted by fully-qualified names, including namespaces. If set to -# NO (the default), the class list will be sorted only by class name, -# not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the -# alphabetical list. - -SORT_BY_SCOPE_NAME = NO - -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to -# do proper type resolution of all parameters of a function it will reject a -# match between the prototype and the implementation of a member function even -# if there is only one candidate or it is obvious which candidate to choose -# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen -# will still accept a match between prototype and implementation in such cases. - -STRICT_PROTO_MATCHING = NO - -# The GENERATE_TODOLIST tag can be used to enable (YES) or -# disable (NO) the todo list. This list is created by putting \todo -# commands in the documentation. - -GENERATE_TODOLIST = YES - -# The GENERATE_TESTLIST tag can be used to enable (YES) or -# disable (NO) the test list. This list is created by putting \test -# commands in the documentation. - -GENERATE_TESTLIST = YES - -# The GENERATE_BUGLIST tag can be used to enable (YES) or -# disable (NO) the bug list. This list is created by putting \bug -# commands in the documentation. - -GENERATE_BUGLIST = YES - -# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or -# disable (NO) the deprecated list. This list is created by putting -# \deprecated commands in the documentation. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional -# documentation sections, marked by \if sectionname ... \endif. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines -# the initial value of a variable or macro consists of for it to appear in -# the documentation. If the initializer consists of more lines than specified -# here it will be hidden. Use a value of 0 to hide initializers completely. -# The appearance of the initializer of individual variables and macros in the -# documentation can be controlled using \showinitializer or \hideinitializer -# command in the documentation regardless of this setting. - -MAX_INITIALIZER_LINES = 28 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated -# at the bottom of the documentation of classes and structs. If set to YES the -# list will mention the files that were used to generate the documentation. - -SHOW_USED_FILES = YES - -# If the sources in your project are distributed over multiple directories -# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy -# in the documentation. The default is NO. - -SHOW_DIRECTORIES = NO - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. -# This will remove the Files entry from the Quick Index and from the -# Folder Tree View (if specified). The default is YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the -# Namespaces page. This will remove the Namespaces entry from the Quick Index -# and from the Folder Tree View (if specified). The default is YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command , where is the value of -# the FILE_VERSION_FILTER tag, and is the name of an input file -# provided by doxygen. Whatever the program writes to standard output -# is used as the file version. See the manual for examples. - -FILE_VERSION_FILTER = - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed -# by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. The create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. -# You can optionally specify a file name after the option, if omitted -# DoxygenLayout.xml will be used as the name of the layout file. - -LAYOUT_FILE = - -# The CITE_BIB_FILES tag can be used to specify one or more bib files -# containing the references data. This must be a list of .bib files. The -# .bib extension is automatically appended if omitted. Using this command -# requires the bibtex tool to be installed. See also -# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style -# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this -# feature you need bibtex and perl available in the search path. - -CITE_BIB_FILES = - -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated -# by doxygen. Possible values are YES and NO. If left blank NO is used. - -QUIET = NO - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated by doxygen. Possible values are YES and NO. If left blank -# NO is used. - -WARNINGS = YES - -# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings -# for undocumented members. If EXTRACT_ALL is set to YES then this flag will -# automatically be disabled. - -WARN_IF_UNDOCUMENTED = YES - -# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some -# parameters in a documented function, or documenting parameters that -# don't exist or using markup commands wrongly. - -WARN_IF_DOC_ERROR = YES - -# The WARN_NO_PARAMDOC option can be enabled to get warnings for -# functions that are documented, but have no documentation for their parameters -# or return value. If set to NO (the default) doxygen will only warn about -# wrong or incomplete parameter documentation, but not about the absence of -# documentation. - -WARN_NO_PARAMDOC = NO - -# The WARN_FORMAT tag determines the format of the warning messages that -# doxygen can produce. The string should contain the $file, $line, and $text -# tags, which will be replaced by the file and line number from which the -# warning originated and the warning text. Optionally the format may contain -# $version, which will be replaced by the version of the file (if it could -# be obtained via FILE_VERSION_FILTER) - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning -# and error messages should be written. If left blank the output is written -# to stderr. - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag can be used to specify the files and/or directories that contain -# documented source files. You may enter file names like "myfile.cpp" or -# directories like "/usr/src/myproject". Separate the files or directories -# with spaces. - -INPUT = /Users/marcus/Arduino/libraries/TMC26XStepper - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is -# also the default input encoding. Doxygen uses libiconv (or the iconv built -# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for -# the list of possible encodings. - -INPUT_ENCODING = UTF-8 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank the following patterns are tested: -# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh -# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py -# *.f90 *.f *.for *.vhd *.vhdl - -FILE_PATTERNS = *.c \ - *.cc \ - *.cxx \ - *.cpp \ - *.c++ \ - *.d \ - *.java \ - *.ii \ - *.ixx \ - *.ipp \ - *.i++ \ - *.inl \ - *.h \ - *.hh \ - *.hxx \ - *.hpp \ - *.h++ \ - *.idl \ - *.odl \ - *.cs \ - *.php \ - *.php3 \ - *.inc \ - *.m \ - *.mm \ - *.dox \ - *.py \ - *.f90 \ - *.f \ - *.for \ - *.vhd \ - *.vhdl - -# The RECURSIVE tag can be used to turn specify whether or not subdirectories -# should be searched for input files as well. Possible values are YES and NO. -# If left blank NO is used. - -RECURSIVE = NO - -# The EXCLUDE tag can be used to specify files and/or directories that should be -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. -# Note that relative paths are relative to the directory from which doxygen is -# run. - -EXCLUDE = - -# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or -# directories that are symbolic links (a Unix file system feature) are excluded -# from the input. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. Note that the wildcards are matched -# against the file with absolute path, so to exclude all test directories -# for example use the pattern */test/* - -EXCLUDE_PATTERNS = - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test - -EXCLUDE_SYMBOLS = - -# The EXAMPLE_PATH tag can be used to specify one or more files or -# directories that contain example code fragments that are included (see -# the \include command). - -EXAMPLE_PATH = - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank all files are included. - -EXAMPLE_PATTERNS = * - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude -# commands irrespective of the value of the RECURSIVE tag. -# Possible values are YES and NO. If left blank NO is used. - -EXAMPLE_RECURSIVE = NO - -# The IMAGE_PATH tag can be used to specify one or more files or -# directories that contain image that are included in the documentation (see -# the \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command , where -# is the value of the INPUT_FILTER tag, and is the name of an -# input file. Doxygen will then use the output that the filter program writes -# to standard output. If FILTER_PATTERNS is specified, this tag will be -# ignored. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. The filters are a list of the form: -# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further -# info on how filters are used. If FILTER_PATTERNS is empty or if -# non of the patterns match the file name, INPUT_FILTER is applied. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER) will be used to filter the input files when producing source -# files to browse (i.e. when SOURCE_BROWSER is set to YES). - -FILTER_SOURCE_FILES = NO - -# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file -# pattern. A pattern will override the setting for FILTER_PATTERN (if any) -# and it is also possible to disable source filtering for a specific pattern -# using *.ext= (so without naming a filter). This option only has effect when -# FILTER_SOURCE_FILES is enabled. - -FILTER_SOURCE_PATTERNS = - -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will -# be generated. Documented entities will be cross-referenced with these sources. -# Note: To get rid of all source code in the generated output, make sure also -# VERBATIM_HEADERS is set to NO. - -SOURCE_BROWSER = YES - -# Setting the INLINE_SOURCES tag to YES will include the body -# of functions and classes directly in the documentation. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct -# doxygen to hide any special comment blocks from generated source code -# fragments. Normal C and C++ comments will always remain visible. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES -# then for each documented function all documented -# functions referencing it will be listed. - -REFERENCED_BY_RELATION = NO - -# If the REFERENCES_RELATION tag is set to YES -# then for each documented function all documented entities -# called/used by that function will be listed. - -REFERENCES_RELATION = NO - -# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) -# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from -# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will -# link to the source code. Otherwise they will link to the documentation. - -REFERENCES_LINK_SOURCE = YES - -# If the USE_HTAGS tag is set to YES then the references to source code -# will point to the HTML generated by the htags(1) tool instead of doxygen -# built-in source browser. The htags tool is part of GNU's global source -# tagging system (see http://www.gnu.org/software/global/global.html). You -# will need version 4.8.6 or higher. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen -# will generate a verbatim copy of the header file for each class for -# which an include is specified. Set to NO to disable this. - -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index -# of all compounds will be generated. Enable this if the project -# contains a lot of classes, structs, unions or interfaces. - -ALPHABETICAL_INDEX = YES - -# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then -# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns -# in which this list will be split (can be a number in the range [1..20]) - -COLS_IN_ALPHA_INDEX = 5 - -# In case all classes in a project start with a common prefix, all -# classes will be put under the same header in the alphabetical index. -# The IGNORE_PREFIX tag can be used to specify one or more prefixes that -# should be ignored while generating the index headers. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES (the default) Doxygen will -# generate HTML output. - -GENERATE_HTML = YES - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `html' will be used as the default path. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for -# each generated HTML page (for example: .htm,.php,.asp). If it is left blank -# doxygen will generate files with .html extension. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a personal HTML header for -# each generated HTML page. If it is left blank doxygen will generate a -# standard header. Note that when using a custom header you are responsible -# for the proper inclusion of any scripts and style sheets that doxygen -# needs, which is dependent on the configuration options used. -# It is advised to generate a default header using "doxygen -w html -# header.html footer.html stylesheet.css YourConfigFile" and then modify -# that header. Note that the header is subject to change so you typically -# have to redo this when upgrading to a newer version of doxygen or when -# changing the value of configuration settings such as GENERATE_TREEVIEW! - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a personal HTML footer for -# each generated HTML page. If it is left blank doxygen will generate a -# standard footer. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading -# style sheet that is used by each HTML page. It can be used to -# fine-tune the look of the HTML output. If the tag is left blank doxygen -# will generate a default style sheet. Note that doxygen will try to copy -# the style sheet file to the HTML output directory, so don't put your own -# style sheet in the HTML output directory as well, or it will be erased! - -HTML_STYLESHEET = - -# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or -# other source files which should be copied to the HTML output directory. Note -# that these files will be copied to the base HTML output directory. Use the -# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these -# files. In the HTML_STYLESHEET file, use the file name only. Also note that -# the files will be copied as-is; there are no commands or markers available. - -HTML_EXTRA_FILES = - -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. -# Doxygen will adjust the colors in the style sheet and background images -# according to this color. Hue is specified as an angle on a colorwheel, -# see http://en.wikipedia.org/wiki/Hue for more information. -# For instance the value 0 represents red, 60 is yellow, 120 is green, -# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. -# The allowed range is 0 to 359. - -HTML_COLORSTYLE_HUE = 220 - -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of -# the colors in the HTML output. For a value of 0 the output will use -# grayscales only. A value of 255 will produce the most vivid colors. - -HTML_COLORSTYLE_SAT = 100 - -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to -# the luminance component of the colors in the HTML output. Values below -# 100 gradually make the output lighter, whereas values above 100 make -# the output darker. The value divided by 100 is the actual gamma applied, -# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, -# and 100 does not change the gamma. - -HTML_COLORSTYLE_GAMMA = 80 - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting -# this to NO can help when comparing the output of multiple runs. - -HTML_TIMESTAMP = YES - -# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, -# files or namespaces will be aligned in HTML using tables. If set to -# NO a bullet list will be used. - -HTML_ALIGN_MEMBERS = YES - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. For this to work a browser that supports -# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox -# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). - -HTML_DYNAMIC_SECTIONS = NO - -# If the GENERATE_DOCSET tag is set to YES, additional index files -# will be generated that can be used as input for Apple's Xcode 3 -# integrated development environment, introduced with OSX 10.5 (Leopard). -# To create a documentation set, doxygen will generate a Makefile in the -# HTML output directory. Running make will produce the docset in that -# directory and running "make install" will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find -# it at startup. -# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html -# for more information. - -GENERATE_DOCSET = NO - -# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the -# feed. A documentation feed provides an umbrella under which multiple -# documentation sets from a single provider (such as a company or product suite) -# can be grouped. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that -# should uniquely identify the documentation set bundle. This should be a -# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen -# will append .docset to the name. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify -# the documentation publisher. This should be a reverse domain-name style -# string, e.g. com.mycompany.MyDocSet.documentation. - -DOCSET_PUBLISHER_ID = org.doxygen.Publisher - -# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. - -DOCSET_PUBLISHER_NAME = Publisher - -# If the GENERATE_HTMLHELP tag is set to YES, additional index files -# will be generated that can be used as input for tools like the -# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) -# of the generated HTML documentation. - -GENERATE_HTMLHELP = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can -# be used to specify the file name of the resulting .chm file. You -# can add a path in front of the file if the result should not be -# written to the html output directory. - -CHM_FILE = - -# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can -# be used to specify the location (absolute path including file name) of -# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run -# the HTML help compiler on the generated index.hhp. - -HHC_LOCATION = - -# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag -# controls if a separate .chi index file is generated (YES) or that -# it should be included in the master .chm file (NO). - -GENERATE_CHI = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING -# is used to encode HtmlHelp index (hhk), content (hhc) and project file -# content. - -CHM_INDEX_ENCODING = - -# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag -# controls whether a binary table of contents is generated (YES) or a -# normal table of contents (NO) in the .chm file. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members -# to the contents of the HTML help documentation and to the tree view. - -TOC_EXPAND = NO - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated -# that can be used as input for Qt's qhelpgenerator to generate a -# Qt Compressed Help (.qch) of the generated HTML documentation. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can -# be used to specify the file name of the resulting .qch file. -# The path specified is relative to the HTML output folder. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#namespace - -QHP_NAMESPACE = org.doxygen.Project - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#virtual-folders - -QHP_VIRTUAL_FOLDER = doc - -# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to -# add. For more information please see -# http://doc.trolltech.com/qthelpproject.html#custom-filters - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see -# -# Qt Help Project / Custom Filters. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's -# filter section matches. -# -# Qt Help Project / Filter Attributes. - -QHP_SECT_FILTER_ATTRS = - -# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can -# be used to specify the location of Qt's qhelpgenerator. -# If non-empty doxygen will try to run qhelpgenerator on the generated -# .qhp file. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files -# will be generated, which together with the HTML files, form an Eclipse help -# plugin. To install this plugin and make it available under the help contents -# menu in Eclipse, the contents of the directory containing the HTML and XML -# files needs to be copied into the plugins directory of eclipse. The name of -# the directory within the plugins directory should be the same as -# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before -# the help appears. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have -# this name. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) -# at top of each HTML page. The value NO (the default) enables the index and -# the value YES disables it. Since the tabs have the same information as the -# navigation tree you can set this option to NO if you already set -# GENERATE_TREEVIEW to YES. - -DISABLE_INDEX = NO - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. -# If the tag value is set to YES, a side panel will be generated -# containing a tree-like index structure (just like the one that -# is generated for HTML Help). For this to work a browser that supports -# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). -# Windows users are probably better off using the HTML help feature. -# Since the tree basically has the same information as the tab index you -# could consider to set DISABLE_INDEX to NO when enabling this option. - -GENERATE_TREEVIEW = NO - -# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values -# (range [0,1..20]) that doxygen will group on one line in the generated HTML -# documentation. Note that a value of 0 will completely suppress the enum -# values from appearing in the overview section. - -ENUM_VALUES_PER_LINE = 4 - -# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, -# and Class Hierarchy pages using a tree view instead of an ordered list. - -USE_INLINE_TREES = NO - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be -# used to set the initial width (in pixels) of the frame in which the tree -# is shown. - -TREEVIEW_WIDTH = 250 - -# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open -# links to external symbols imported via tag files in a separate window. - -EXT_LINKS_IN_WINDOW = NO - -# Use this tag to change the font size of Latex formulas included -# as images in the HTML documentation. The default is 10. Note that -# when you change the font size after a successful doxygen run you need -# to manually remove any form_*.png images from the HTML output directory -# to force them to be regenerated. - -FORMULA_FONTSIZE = 10 - -# Use the FORMULA_TRANPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are -# not supported properly for IE 6.0, but are supported on all modern browsers. -# Note that when changing this option you need to delete any form_*.png files -# in the HTML output before the changes have effect. - -FORMULA_TRANSPARENT = YES - -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax -# (see http://www.mathjax.org) which uses client side Javascript for the -# rendering instead of using prerendered bitmaps. Use this if you do not -# have LaTeX installed or if you want to formulas look prettier in the HTML -# output. When enabled you also need to install MathJax separately and -# configure the path to it using the MATHJAX_RELPATH option. - -USE_MATHJAX = NO - -# When MathJax is enabled you need to specify the location relative to the -# HTML output directory using the MATHJAX_RELPATH option. The destination -# directory should contain the MathJax.js script. For instance, if the mathjax -# directory is located at the same level as the HTML output directory, then -# MATHJAX_RELPATH should be ../mathjax. The default value points to the -# mathjax.org site, so you can quickly see the result without installing -# MathJax, but it is strongly recommended to install a local copy of MathJax -# before deployment. - -MATHJAX_RELPATH = http://www.mathjax.org/mathjax - -# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension -# names that should be enabled during MathJax rendering. - -MATHJAX_EXTENSIONS = - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box -# for the HTML output. The underlying search engine uses javascript -# and DHTML and should work on any modern browser. Note that when using -# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets -# (GENERATE_DOCSET) there is already a search function so this one should -# typically be disabled. For large projects the javascript based search engine -# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. - -SEARCHENGINE = NO - -# When the SERVER_BASED_SEARCH tag is enabled the search engine will be -# implemented using a PHP enabled web server instead of at the web client -# using Javascript. Doxygen will generate the search PHP script and index -# file to put on the web server. The advantage of the server -# based approach is that it scales better to large projects and allows -# full text search. The disadvantages are that it is more difficult to setup -# and does not have live searching capabilities. - -SERVER_BASED_SEARCH = NO - -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- - -# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will -# generate Latex output. - -GENERATE_LATEX = NO - -# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `latex' will be used as the default path. - -LATEX_OUTPUT = latex - -# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be -# invoked. If left blank `latex' will be used as the default command name. -# Note that when enabling USE_PDFLATEX this option is only used for -# generating bitmaps for formulas in the HTML output, but not in the -# Makefile that is written to the output directory. - -LATEX_CMD_NAME = latex - -# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to -# generate index for LaTeX. If left blank `makeindex' will be used as the -# default command name. - -MAKEINDEX_CMD_NAME = makeindex - -# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact -# LaTeX documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_LATEX = NO - -# The PAPER_TYPE tag can be used to set the paper type that is used -# by the printer. Possible values are: a4, letter, legal and -# executive. If left blank a4wide will be used. - -PAPER_TYPE = a4 - -# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX -# packages that should be included in the LaTeX output. - -EXTRA_PACKAGES = - -# The LATEX_HEADER tag can be used to specify a personal LaTeX header for -# the generated latex document. The header should contain everything until -# the first chapter. If it is left blank doxygen will generate a -# standard header. Notice: only use this tag if you know what you are doing! - -LATEX_HEADER = - -# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for -# the generated latex document. The footer should contain everything after -# the last chapter. If it is left blank doxygen will generate a -# standard footer. Notice: only use this tag if you know what you are doing! - -LATEX_FOOTER = - -# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated -# is prepared for conversion to pdf (using ps2pdf). The pdf file will -# contain links (just like the HTML output) instead of page references -# This makes the output suitable for online browsing using a pdf viewer. - -PDF_HYPERLINKS = YES - -# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of -# plain latex in the generated Makefile. Set this option to YES to get a -# higher quality PDF documentation. - -USE_PDFLATEX = YES - -# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. -# command to the generated LaTeX files. This will instruct LaTeX to keep -# running if errors occur, instead of asking the user for help. -# This option is also used when generating formulas in HTML. - -LATEX_BATCHMODE = NO - -# If LATEX_HIDE_INDICES is set to YES then doxygen will not -# include the index chapters (such as File Index, Compound Index, etc.) -# in the output. - -LATEX_HIDE_INDICES = NO - -# If LATEX_SOURCE_CODE is set to YES then doxygen will include -# source code with syntax highlighting in the LaTeX output. -# Note that which sources are shown also depends on other settings -# such as SOURCE_BROWSER. - -LATEX_SOURCE_CODE = NO - -# The LATEX_BIB_STYLE tag can be used to specify the style to use for the -# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See -# http://en.wikipedia.org/wiki/BibTeX for more info. - -LATEX_BIB_STYLE = plain - -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- - -# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output -# The RTF output is optimized for Word 97 and may not look very pretty with -# other RTF readers or editors. - -GENERATE_RTF = NO - -# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `rtf' will be used as the default path. - -RTF_OUTPUT = rtf - -# If the COMPACT_RTF tag is set to YES Doxygen generates more compact -# RTF documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_RTF = NO - -# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated -# will contain hyperlink fields. The RTF file will -# contain links (just like the HTML output) instead of page references. -# This makes the output suitable for online browsing using WORD or other -# programs which support those fields. -# Note: wordpad (write) and others do not support links. - -RTF_HYPERLINKS = NO - -# Load style sheet definitions from file. Syntax is similar to doxygen's -# config file, i.e. a series of assignments. You only have to provide -# replacements, missing definitions are set to their default value. - -RTF_STYLESHEET_FILE = - -# Set optional variables used in the generation of an rtf document. -# Syntax is similar to doxygen's config file. - -RTF_EXTENSIONS_FILE = - -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- - -# If the GENERATE_MAN tag is set to YES (the default) Doxygen will -# generate man pages - -GENERATE_MAN = NO - -# The MAN_OUTPUT tag is used to specify where the man pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `man' will be used as the default path. - -MAN_OUTPUT = man - -# The MAN_EXTENSION tag determines the extension that is added to -# the generated man pages (default is the subroutine's section .3) - -MAN_EXTENSION = .3 - -# If the MAN_LINKS tag is set to YES and Doxygen generates man output, -# then it will generate one additional man file for each entity -# documented in the real man page(s). These additional files -# only source the real man page, but without them the man command -# would be unable to find the correct page. The default is NO. - -MAN_LINKS = NO - -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- - -# If the GENERATE_XML tag is set to YES Doxygen will -# generate an XML file that captures the structure of -# the code including all documentation. - -GENERATE_XML = NO - -# The XML_OUTPUT tag is used to specify where the XML pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `xml' will be used as the default path. - -XML_OUTPUT = xml - -# The XML_SCHEMA tag can be used to specify an XML schema, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_SCHEMA = - -# The XML_DTD tag can be used to specify an XML DTD, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_DTD = - -# If the XML_PROGRAMLISTING tag is set to YES Doxygen will -# dump the program listings (including syntax highlighting -# and cross-referencing information) to the XML output. Note that -# enabling this will significantly increase the size of the XML output. - -XML_PROGRAMLISTING = YES - -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- - -# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will -# generate an AutoGen Definitions (see autogen.sf.net) file -# that captures the structure of the code including all -# documentation. Note that this feature is still experimental -# and incomplete at the moment. - -GENERATE_AUTOGEN_DEF = NO - -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- - -# If the GENERATE_PERLMOD tag is set to YES Doxygen will -# generate a Perl module file that captures the structure of -# the code including all documentation. Note that this -# feature is still experimental and incomplete at the -# moment. - -GENERATE_PERLMOD = NO - -# If the PERLMOD_LATEX tag is set to YES Doxygen will generate -# the necessary Makefile rules, Perl scripts and LaTeX code to be able -# to generate PDF and DVI output from the Perl module output. - -PERLMOD_LATEX = NO - -# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be -# nicely formatted so it can be parsed by a human reader. This is useful -# if you want to understand what is going on. On the other hand, if this -# tag is set to NO the size of the Perl module output will be much smaller -# and Perl will parse it just the same. - -PERLMOD_PRETTY = YES - -# The names of the make variables in the generated doxyrules.make file -# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. -# This is useful so different doxyrules.make files included by the same -# Makefile don't overwrite each other's variables. - -PERLMOD_MAKEVAR_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- - -# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will -# evaluate all C-preprocessor directives found in the sources and include -# files. - -ENABLE_PREPROCESSING = YES - -# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro -# names in the source code. If set to NO (the default) only conditional -# compilation will be performed. Macro expansion can be done in a controlled -# way by setting EXPAND_ONLY_PREDEF to YES. - -MACRO_EXPANSION = NO - -# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES -# then the macro expansion is limited to the macros specified with the -# PREDEFINED and EXPAND_AS_DEFINED tags. - -EXPAND_ONLY_PREDEF = NO - -# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files -# pointed to by INCLUDE_PATH will be searched when a #include is found. - -SEARCH_INCLUDES = YES - -# The INCLUDE_PATH tag can be used to specify one or more directories that -# contain include files that are not input files but should be processed by -# the preprocessor. - -INCLUDE_PATH = - -# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard -# patterns (like *.h and *.hpp) to filter out the header-files in the -# directories. If left blank, the patterns specified with FILE_PATTERNS will -# be used. - -INCLUDE_FILE_PATTERNS = - -# The PREDEFINED tag can be used to specify one or more macro names that -# are defined before the preprocessor is started (similar to the -D option of -# gcc). The argument of the tag is a list of macros of the form: name -# or name=definition (no spaces). If the definition and the = are -# omitted =1 is assumed. To prevent a macro definition from being -# undefined via #undef or recursively expanded use the := operator -# instead of the = operator. - -PREDEFINED = - -# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then -# this tag can be used to specify a list of macro names that should be expanded. -# The macro definition that is found in the sources will be used. -# Use the PREDEFINED tag if you want to use a different macro definition that -# overrules the definition found in the source code. - -EXPAND_AS_DEFINED = - -# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then -# doxygen's preprocessor will remove all references to function-like macros -# that are alone on a line, have an all uppercase name, and do not end with a -# semicolon, because these will confuse the parser if not removed. - -SKIP_FUNCTION_MACROS = YES - -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- - -# The TAGFILES option can be used to specify one or more tagfiles. -# Optionally an initial location of the external documentation -# can be added for each tagfile. The format of a tag file without -# this location is as follows: -# TAGFILES = file1 file2 ... -# Adding location for the tag files is done as follows: -# TAGFILES = file1=loc1 "file2 = loc2" ... -# where "loc1" and "loc2" can be relative or absolute paths or -# URLs. If a location is present for each tag, the installdox tool -# does not have to be run to correct the links. -# Note that each tag file must have a unique name -# (where the name does NOT include the path) -# If a tag file is not located in the directory in which doxygen -# is run, you must also specify the path to the tagfile here. - -TAGFILES = - -# When a file name is specified after GENERATE_TAGFILE, doxygen will create -# a tag file that is based on the input files it reads. - -GENERATE_TAGFILE = - -# If the ALLEXTERNALS tag is set to YES all external classes will be listed -# in the class index. If set to NO only the inherited external classes -# will be listed. - -ALLEXTERNALS = NO - -# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed -# in the modules index. If set to NO, only the current project's groups will -# be listed. - -EXTERNAL_GROUPS = YES - -# The PERL_PATH should be the absolute path and name of the perl script -# interpreter (i.e. the result of `which perl'). - -PERL_PATH = /usr/bin/perl - -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- - -# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will -# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base -# or super classes. Setting the tag to NO turns the diagrams off. Note that -# this option also works with HAVE_DOT disabled, but it is recommended to -# install and use dot, since it yields more powerful graphs. - -CLASS_DIAGRAMS = YES - -# You can define message sequence charts within doxygen comments using the \msc -# command. Doxygen will then run the mscgen tool (see -# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the -# documentation. The MSCGEN_PATH tag allows you to specify the directory where -# the mscgen tool resides. If left empty the tool is assumed to be found in the -# default search path. - -MSCGEN_PATH = - -# If set to YES, the inheritance and collaboration graphs will hide -# inheritance and usage relations if the target is undocumented -# or is not a class. - -HIDE_UNDOC_RELATIONS = YES - -# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is -# available from the path. This tool is part of Graphviz, a graph visualization -# toolkit from AT&T and Lucent Bell Labs. The other options in this section -# have no effect if this option is set to NO (the default) - -HAVE_DOT = NO - -# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is -# allowed to run in parallel. When set to 0 (the default) doxygen will -# base this on the number of processors available in the system. You can set it -# explicitly to a value larger than 0 to get control over the balance -# between CPU load and processing speed. - -DOT_NUM_THREADS = 0 - -# By default doxygen will use the Helvetica font for all dot files that -# doxygen generates. When you want a differently looking font you can specify -# the font name using DOT_FONTNAME. You need to make sure dot is able to find -# the font, which can be done by putting it in a standard location or by setting -# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the -# directory containing the font. - -DOT_FONTNAME = Helvetica - -# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. -# The default size is 10pt. - -DOT_FONTSIZE = 10 - -# By default doxygen will tell dot to use the Helvetica font. -# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to -# set the path where dot can find it. - -DOT_FONTPATH = - -# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect inheritance relations. Setting this tag to YES will force the -# CLASS_DIAGRAMS tag to NO. - -CLASS_GRAPH = YES - -# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect implementation dependencies (inheritance, containment, and -# class references variables) of the class with other documented classes. - -COLLABORATION_GRAPH = YES - -# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for groups, showing the direct groups dependencies - -GROUP_GRAPHS = YES - -# If the UML_LOOK tag is set to YES doxygen will generate inheritance and -# collaboration diagrams in a style similar to the OMG's Unified Modeling -# Language. - -UML_LOOK = NO - -# If set to YES, the inheritance and collaboration graphs will show the -# relations between templates and their instances. - -TEMPLATE_RELATIONS = NO - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT -# tags are set to YES then doxygen will generate a graph for each documented -# file showing the direct and indirect include dependencies of the file with -# other documented files. - -INCLUDE_GRAPH = YES - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and -# HAVE_DOT tags are set to YES then doxygen will generate a graph for each -# documented header file showing the documented files that directly or -# indirectly include this file. - -INCLUDED_BY_GRAPH = YES - -# If the CALL_GRAPH and HAVE_DOT options are set to YES then -# doxygen will generate a call dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable call graphs -# for selected functions only using the \callgraph command. - -CALL_GRAPH = NO - -# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then -# doxygen will generate a caller dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable caller -# graphs for selected functions only using the \callergraph command. - -CALLER_GRAPH = NO - -# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen -# will generate a graphical hierarchy of all classes instead of a textual one. - -GRAPHICAL_HIERARCHY = YES - -# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES -# then doxygen will show the dependencies a directory has on other directories -# in a graphical way. The dependency relations are determined by the #include -# relations between the files in the directories. - -DIRECTORY_GRAPH = YES - -# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images -# generated by dot. Possible values are svg, png, jpg, or gif. -# If left blank png will be used. If you choose svg you need to set -# HTML_FILE_EXTENSION to xhtml in order to make the SVG files -# visible in IE 9+ (other browsers do not have this requirement). - -DOT_IMAGE_FORMAT = png - -# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to -# enable generation of interactive SVG images that allow zooming and panning. -# Note that this requires a modern browser other than Internet Explorer. -# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you -# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files -# visible. Older versions of IE do not have SVG support. - -INTERACTIVE_SVG = NO - -# The tag DOT_PATH can be used to specify the path where the dot tool can be -# found. If left blank, it is assumed the dot tool can be found in the path. - -DOT_PATH = - -# The DOTFILE_DIRS tag can be used to specify one or more directories that -# contain dot files that are included in the documentation (see the -# \dotfile command). - -DOTFILE_DIRS = - -# The MSCFILE_DIRS tag can be used to specify one or more directories that -# contain msc files that are included in the documentation (see the -# \mscfile command). - -MSCFILE_DIRS = - -# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of -# nodes that will be shown in the graph. If the number of nodes in a graph -# becomes larger than this value, doxygen will truncate the graph, which is -# visualized by representing a node as a red box. Note that doxygen if the -# number of direct children of the root node in a graph is already larger than -# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note -# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. - -DOT_GRAPH_MAX_NODES = 50 - -# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the -# graphs generated by dot. A depth value of 3 means that only nodes reachable -# from the root by following a path via at most 3 edges will be shown. Nodes -# that lay further from the root node will be omitted. Note that setting this -# option to 1 or 2 may greatly reduce the computation time needed for large -# code bases. Also note that the size of a graph can be further restricted by -# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. - -MAX_DOT_GRAPH_DEPTH = 0 - -# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent -# background. This is disabled by default, because dot on Windows does not -# seem to support this out of the box. Warning: Depending on the platform used, -# enabling this option may lead to badly anti-aliased labels on the edges of -# a graph (i.e. they become hard to read). - -DOT_TRANSPARENT = NO - -# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output -# files in one run (i.e. multiple -o and -T options on the command line). This -# makes dot run faster, but since only newer versions of dot (>1.8.10) -# support this, this feature is disabled by default. - -DOT_MULTI_TARGETS = NO - -# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will -# generate a legend page explaining the meaning of the various boxes and -# arrows in the dot generated graphs. - -GENERATE_LEGEND = YES - -# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will -# remove the intermediate dot files that are used to generate -# the various graphs. - -DOT_CLEANUP = YES diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/LICENSE b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/LICENSE deleted file mode 100644 index 11f5603ba6..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/LICENSE +++ /dev/null @@ -1,10 +0,0 @@ - -Copyright (c) 2012 Interactive Matter - -based on the stepper library by Tom Igoe, et. al. - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/README.rst b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/README.rst deleted file mode 100644 index 648f3e253e..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/README.rst +++ /dev/null @@ -1,71 +0,0 @@ -Arduino TMC26X Stepper Motor Controller Library -=============================================== - -License -------- - -TMC26XStepper.cpp - - TMC 260/261/262 Stepper library for Wiring/Arduino - -based on the stepper library by Tom Igoe, et. al. - -Copyright (c) 2011, Interactive Matter, Marcus Nowotny - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -About ------ - -The TMC26X is a stepper motor controller for bipolar stepper motors. From the trinamic web site: - - The TMC262 is the first energy efficient high current high precision microstepping driver - IC for bipolar stepper motors. The unique high resolution sensorless load detection stallGuard2™ - is used to for the world’s first integrated load dependent current control feature called coolStep™. - The ability to read out the load and detect an overload makes the TMC262 an optimum choice for - drives where a high reliability is desired at a low cost. The new patented spreadCycle PWM mixed - decay chopper scheme ensures best zero crossing performance as well as high speed operation. - The TMC262 can be driven with Step & Direction signals as well as by serial SPI™ interface. - Using the microPlyer allows to operate the motor with highest 256 μStep smoothness reducing the - input frequency to 16 μSteps. A full set of protection and diagnostic features makes this device - very rugged. It directly drives external MOSFETs for currents of up to 6A. This way it reaches - highest energy efficiency and allows driving of a high motor current without cooling measures - even at high environment temperatures. - - -The unique features of the TMC26X are that everything can (and must) be controlled in software: - -* the motor current -* microstepping -* stall protection -* current reduction according to load -* stallGuard2™ sensorless load detection -* coolStep™ load dependent current control -* spreadCycle hysteresis PWM chopper -* microPlyer 16-to-256 μStep multiplier -* full protection and diagnostics - -This makes the TMC26X a bit harder to use than other stepper motors but much more versatile. -This library resolves all the complicated stuff so that you can use TMC26X straight away. -Furthermore, all the settings are implemented in high level interfaces so that configuring your -motor is a breeze. - -How to use ----------- - -Check out the Setup Guide here: -And the How To here: \ No newline at end of file diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/TMC26XStepper.cpp b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/TMC26XStepper.cpp deleted file mode 100644 index 389264ca42..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/TMC26XStepper.cpp +++ /dev/null @@ -1,999 +0,0 @@ -/* - TMC26XStepper.cpp - - TMC26X Stepper library for Wiring/Arduino - - based on the stepper library by Tom Igoe, et. al. - - Copyright (c) 2011, Interactive Matter, Marcus Nowotny - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - - */ - -#if defined(ARDUINO) && ARDUINO >= 100 - #include -#else - #include -#endif -#include -#include "TMC26XStepper.h" - -//some default values used in initialization -#define DEFAULT_MICROSTEPPING_VALUE 32 - -//TMC26X register definitions -#define DRIVER_CONTROL_REGISTER 0x0ul -#define CHOPPER_CONFIG_REGISTER 0x80000ul -#define COOL_STEP_REGISTER 0xA0000ul -#define STALL_GUARD2_LOAD_MEASURE_REGISTER 0xC0000ul -#define DRIVER_CONFIG_REGISTER 0xE0000ul - -#define REGISTER_BIT_PATTERN 0xFFFFFul - -//definitions for the driver control register -#define MICROSTEPPING_PATTERN 0xFul -#define STEP_INTERPOLATION 0x200ul -#define DOUBLE_EDGE_STEP 0x100ul -#define VSENSE 0x40ul -#define READ_MICROSTEP_POSTION 0x0ul -#define READ_STALL_GUARD_READING 0x10ul -#define READ_STALL_GUARD_AND_COOL_STEP 0x20ul -#define READ_SELECTION_PATTERN 0x30ul - -//definitions for the chopper config register -#define CHOPPER_MODE_STANDARD 0x0ul -#define CHOPPER_MODE_T_OFF_FAST_DECAY 0x4000ul -#define T_OFF_PATTERN 0xful -#define RANDOM_TOFF_TIME 0x2000ul -#define BLANK_TIMING_PATTERN 0x18000ul -#define BLANK_TIMING_SHIFT 15 -#define HYSTERESIS_DECREMENT_PATTERN 0x1800ul -#define HYSTERESIS_DECREMENT_SHIFT 11 -#define HYSTERESIS_LOW_VALUE_PATTERN 0x780ul -#define HYSTERESIS_LOW_SHIFT 7 -#define HYSTERESIS_START_VALUE_PATTERN 0x78ul -#define HYSTERESIS_START_VALUE_SHIFT 4 -#define T_OFF_TIMING_PATERN 0xFul - -//definitions for cool step register -#define MINIMUM_CURRENT_FOURTH 0x8000ul -#define CURRENT_DOWN_STEP_SPEED_PATTERN 0x6000ul -#define SE_MAX_PATTERN 0xF00ul -#define SE_CURRENT_STEP_WIDTH_PATTERN 0x60ul -#define SE_MIN_PATTERN 0xful - -//definitions for stall guard2 current register -#define STALL_GUARD_FILTER_ENABLED 0x10000ul -#define STALL_GUARD_TRESHHOLD_VALUE_PATTERN 0x17F00ul -#define CURRENT_SCALING_PATTERN 0x1Ful -#define STALL_GUARD_CONFIG_PATTERN 0x17F00ul -#define STALL_GUARD_VALUE_PATTERN 0x7F00ul - -//definitions for the input from the TCM260 -#define STATUS_STALL_GUARD_STATUS 0x1ul -#define STATUS_OVER_TEMPERATURE_SHUTDOWN 0x2ul -#define STATUS_OVER_TEMPERATURE_WARNING 0x4ul -#define STATUS_SHORT_TO_GROUND_A 0x8ul -#define STATUS_SHORT_TO_GROUND_B 0x10ul -#define STATUS_OPEN_LOAD_A 0x20ul -#define STATUS_OPEN_LOAD_B 0x40ul -#define STATUS_STAND_STILL 0x80ul -#define READOUT_VALUE_PATTERN 0xFFC00ul - -//default values -#define INITIAL_MICROSTEPPING 0x3ul //32th microstepping - -//debuging output -//#define DEBUG - -/* - * Constructor - * number_of_steps - the steps per rotation - * cs_pin - the SPI client select pin - * dir_pin - the pin where the direction pin is connected - * step_pin - the pin where the step pin is connected - */ -TMC26XStepper::TMC26XStepper(int number_of_steps, int cs_pin, int dir_pin, int step_pin, unsigned int current, unsigned int resistor) -{ - //we are not started yet - started=false; - //by default cool step is not enabled - cool_step_enabled=false; - - //save the pins for later use - this->cs_pin=cs_pin; - this->dir_pin=dir_pin; - this->step_pin = step_pin; - - //store the current sense resistor value for later use - this->resistor = resistor; - - //initizalize our status values - this->steps_left = 0; - this->direction = 0; - - //initialize register values - driver_control_register_value=DRIVER_CONTROL_REGISTER | INITIAL_MICROSTEPPING; - chopper_config_register=CHOPPER_CONFIG_REGISTER; - - //setting the default register values - driver_control_register_value=DRIVER_CONTROL_REGISTER|INITIAL_MICROSTEPPING; - microsteps = (1 << INITIAL_MICROSTEPPING); - chopper_config_register=CHOPPER_CONFIG_REGISTER; - cool_step_register_value=COOL_STEP_REGISTER; - stall_guard2_current_register_value=STALL_GUARD2_LOAD_MEASURE_REGISTER; - driver_configuration_register_value = DRIVER_CONFIG_REGISTER | READ_STALL_GUARD_READING; - - //set the current - setCurrent(current); - //set to a conservative start value - setConstantOffTimeChopper(7, 54, 13,12,1); - //set a nice microstepping value - setMicrosteps(DEFAULT_MICROSTEPPING_VALUE); - //save the number of steps - this->number_of_steps = number_of_steps; -} - - -/* - * start & configure the stepper driver - * just must be called. - */ -void TMC26XStepper::start() { - -#ifdef DEBUG - Serial.println("TMC26X stepper library"); - Serial.print("CS pin: "); - Serial.println(cs_pin); - Serial.print("DIR pin: "); - Serial.println(dir_pin); - Serial.print("STEP pin: "); - Serial.println(step_pin); - Serial.print("current scaling: "); - Serial.println(current_scaling,DEC); -#endif - //set the pins as output & its initial value - pinMode(step_pin, OUTPUT); - pinMode(dir_pin, OUTPUT); - pinMode(cs_pin, OUTPUT); - digitalWrite(step_pin, LOW); - digitalWrite(dir_pin, LOW); - digitalWrite(cs_pin, HIGH); - - //configure the SPI interface - SPI.setBitOrder(MSBFIRST); - SPI.setClockDivider(SPI_CLOCK_DIV8); - //todo this does not work reliably - find a way to foolprof set it (e.g. while communicating - //SPI.setDataMode(SPI_MODE3); - SPI.begin(); - - //set the initial values - send262(driver_control_register_value); - send262(chopper_config_register); - send262(cool_step_register_value); - send262(stall_guard2_current_register_value); - send262(driver_configuration_register_value); - - //save that we are in running mode - started=true; -} - -/* - Mark the driver as unstarted to be able to start it again - */ -void TMC26XStepper::un_start() { - started=false; -} - - -/* - Sets the speed in revs per minute - -*/ -void TMC26XStepper::setSpeed(unsigned int whatSpeed) -{ - this->speed = whatSpeed; - this->step_delay = (60UL * 1000UL * 1000UL) / ((unsigned long)this->number_of_steps * (unsigned long)whatSpeed * (unsigned long)this->microsteps); -#ifdef DEBUG - Serial.print("Step delay in micros: "); - Serial.println(this->step_delay); -#endif - //update the next step time - this->next_step_time = this->last_step_time+this->step_delay; - -} - -unsigned int TMC26XStepper::getSpeed(void) { - return this->speed; -} - -/* - Moves the motor steps_to_move steps. If the number is negative, - the motor moves in the reverse direction. - */ -char TMC26XStepper::step(int steps_to_move) -{ - if (this->steps_left==0) { - this->steps_left = abs(steps_to_move); // how many steps to take - - // determine direction based on whether steps_to_mode is + or -: - if (steps_to_move > 0) { - this->direction = 1; - } else if (steps_to_move < 0) { - this->direction = 0; - } - return 0; - } else { - return -1; - } -} - -char TMC26XStepper::move(void) { - // decrement the number of steps, moving one step each time: - if(this->steps_left>0) { - unsigned long time = micros(); - // move only if the appropriate delay has passed: - if (time >= this->next_step_time) { - // increment or decrement the step number, - // depending on direction: - if (this->direction == 1) { - digitalWrite(step_pin, HIGH); - } else { - digitalWrite(dir_pin, HIGH); - digitalWrite(step_pin, HIGH); - } - // get the timeStamp of when you stepped: - this->last_step_time = time; - this->next_step_time = time+this->step_delay; - // decrement the steps left: - steps_left--; - //disable the step & dir pins - digitalWrite(step_pin, LOW); - digitalWrite(dir_pin, LOW); - } - return -1; - } - return 0; -} - -char TMC26XStepper::isMoving(void) { - return (this->steps_left>0); -} - -unsigned int TMC26XStepper::getStepsLeft(void) { - return this->steps_left; -} - -char TMC26XStepper::stop(void) { - //note to self if the motor is currently moving - char state = isMoving(); - //stop the motor - this->steps_left = 0; - this->direction = 0; - //return if it was moving - return state; -} - -void TMC26XStepper::setCurrent(unsigned int current) { - unsigned char current_scaling = 0; - //calculate the current scaling from the max current setting (in mA) - double mASetting = (double)current; - double resistor_value = (double) this->resistor; - // remove vesense flag - this->driver_configuration_register_value &= ~(VSENSE); - //this is derrived from I=(cs+1)/32*(Vsense/Rsense) - //leading to cs = CS = 32*R*I/V (with V = 0,31V oder 0,165V and I = 1000*current) - //with Rsense=0,15 - //for vsense = 0,310V (VSENSE not set) - //or vsense = 0,165V (VSENSE set) - current_scaling = (byte)((resistor_value*mASetting*32.0/(0.31*1000.0*1000.0))-0.5); //theoretically - 1.0 for better rounding it is 0.5 - - //check if the current scalingis too low - if (current_scaling<16) { - //set the csense bit to get a use half the sense voltage (to support lower motor currents) - this->driver_configuration_register_value |= VSENSE; - //and recalculate the current setting - current_scaling = (byte)((resistor_value*mASetting*32.0/(0.165*1000.0*1000.0))-0.5); //theoretically - 1.0 for better rounding it is 0.5 -#ifdef DEBUG - Serial.print("CS (Vsense=1): "); - Serial.println(current_scaling); - } else { - Serial.print("CS: "); - Serial.println(current_scaling); -#endif - } - - //do some sanity checks - if (current_scaling>31) { - current_scaling=31; - } - //delete the old value - stall_guard2_current_register_value &= ~(CURRENT_SCALING_PATTERN); - //set the new current scaling - stall_guard2_current_register_value |= current_scaling; - //if started we directly send it to the motor - if (started) { - send262(driver_configuration_register_value); - send262(stall_guard2_current_register_value); - } -} - -unsigned int TMC26XStepper::getCurrent(void) { - //we calculate the current according to the datasheet to be on the safe side - //this is not the fastest but the most accurate and illustrative way - double result = (double)(stall_guard2_current_register_value & CURRENT_SCALING_PATTERN); - double resistor_value = (double)this->resistor; - double voltage = (driver_configuration_register_value & VSENSE)? 0.165:0.31; - result = (result+1.0)/32.0*voltage/resistor_value*1000.0*1000.0; - return (unsigned int)result; -} - -void TMC26XStepper::setStallGuardThreshold(char stall_guard_threshold, char stall_guard_filter_enabled) { - if (stall_guard_threshold<-64) { - stall_guard_threshold = -64; - //We just have 5 bits - } else if (stall_guard_threshold > 63) { - stall_guard_threshold = 63; - } - //add trim down to 7 bits - stall_guard_threshold &=0x7f; - //delete old stall guard settings - stall_guard2_current_register_value &= ~(STALL_GUARD_CONFIG_PATTERN); - if (stall_guard_filter_enabled) { - stall_guard2_current_register_value |= STALL_GUARD_FILTER_ENABLED; - } - //Set the new stall guard threshold - stall_guard2_current_register_value |= (((unsigned long)stall_guard_threshold << 8) & STALL_GUARD_CONFIG_PATTERN); - //if started we directly send it to the motor - if (started) { - send262(stall_guard2_current_register_value); - } -} - -char TMC26XStepper::getStallGuardThreshold(void) { - unsigned long stall_guard_threshold = stall_guard2_current_register_value & STALL_GUARD_VALUE_PATTERN; - //shift it down to bit 0 - stall_guard_threshold >>=8; - //convert the value to an int to correctly handle the negative numbers - char result = stall_guard_threshold; - //check if it is negative and fill it up with leading 1 for proper negative number representation - if (result & _BV(6)) { - result |= 0xC0; - } - return result; -} - -char TMC26XStepper::getStallGuardFilter(void) { - if (stall_guard2_current_register_value & STALL_GUARD_FILTER_ENABLED) { - return -1; - } else { - return 0; - } -} -/* - * Set the number of microsteps per step. - * 0,2,4,8,16,32,64,128,256 is supported - * any value in between will be mapped to the next smaller value - * 0 and 1 set the motor in full step mode - */ -void TMC26XStepper::setMicrosteps(int number_of_steps) { - long setting_pattern; - //poor mans log - if (number_of_steps>=256) { - setting_pattern=0; - microsteps=256; - } else if (number_of_steps>=128) { - setting_pattern=1; - microsteps=128; - } else if (number_of_steps>=64) { - setting_pattern=2; - microsteps=64; - } else if (number_of_steps>=32) { - setting_pattern=3; - microsteps=32; - } else if (number_of_steps>=16) { - setting_pattern=4; - microsteps=16; - } else if (number_of_steps>=8) { - setting_pattern=5; - microsteps=8; - } else if (number_of_steps>=4) { - setting_pattern=6; - microsteps=4; - } else if (number_of_steps>=2) { - setting_pattern=7; - microsteps=2; - //1 and 0 lead to full step - } else if (number_of_steps<=1) { - setting_pattern=8; - microsteps=1; - } -#ifdef DEBUG - Serial.print("Microstepping: "); - Serial.println(microsteps); -#endif - //delete the old value - this->driver_control_register_value &=0xFFFF0ul; - //set the new value - this->driver_control_register_value |=setting_pattern; - - //if started we directly send it to the motor - if (started) { - send262(driver_control_register_value); - } - //recalculate the stepping delay by simply setting the speed again - this->setSpeed(this->speed); -} - -/* - * returns the effective number of microsteps at the moment - */ -int TMC26XStepper::getMicrosteps(void) { - return microsteps; -} - -/* - * constant_off_time: The off time setting controls the minimum chopper frequency. - * For most applications an off time within the range of 5μs to 20μs will fit. - * 2...15: off time setting - * - * blank_time: Selects the comparator blank time. This time needs to safely cover the switching event and the - * duration of the ringing on the sense resistor. For - * 0: min. setting 3: max. setting - * - * fast_decay_time_setting: Fast decay time setting. With CHM=1, these bits control the portion of fast decay for each chopper cycle. - * 0: slow decay only - * 1...15: duration of fast decay phase - * - * sine_wave_offset: Sine wave offset. With CHM=1, these bits control the sine wave offset. - * A positive offset corrects for zero crossing error. - * -3..-1: negative offset 0: no offset 1...12: positive offset - * - * use_current_comparator: Selects usage of the current comparator for termination of the fast decay cycle. - * If current comparator is enabled, it terminates the fast decay cycle in case the current - * reaches a higher negative value than the actual positive value. - * 1: enable comparator termination of fast decay cycle - * 0: end by time only - */ -void TMC26XStepper::setConstantOffTimeChopper(char constant_off_time, char blank_time, char fast_decay_time_setting, char sine_wave_offset, unsigned char use_current_comparator) { - //perform some sanity checks - if (constant_off_time<2) { - constant_off_time=2; - } else if (constant_off_time>15) { - constant_off_time=15; - } - //save the constant off time - this->constant_off_time = constant_off_time; - char blank_value; - //calculate the value acc to the clock cycles - if (blank_time>=54) { - blank_value=3; - } else if (blank_time>=36) { - blank_value=2; - } else if (blank_time>=24) { - blank_value=1; - } else { - blank_value=0; - } - if (fast_decay_time_setting<0) { - fast_decay_time_setting=0; - } else if (fast_decay_time_setting>15) { - fast_decay_time_setting=15; - } - if (sine_wave_offset < -3) { - sine_wave_offset = -3; - } else if (sine_wave_offset>12) { - sine_wave_offset = 12; - } - //shift the sine_wave_offset - sine_wave_offset +=3; - - //calculate the register setting - //first of all delete all the values for this - chopper_config_register &= ~((1<<12) | BLANK_TIMING_PATTERN | HYSTERESIS_DECREMENT_PATTERN | HYSTERESIS_LOW_VALUE_PATTERN | HYSTERESIS_START_VALUE_PATTERN | T_OFF_TIMING_PATERN); - //set the constant off pattern - chopper_config_register |= CHOPPER_MODE_T_OFF_FAST_DECAY; - //set the blank timing value - chopper_config_register |= ((unsigned long)blank_value) << BLANK_TIMING_SHIFT; - //setting the constant off time - chopper_config_register |= constant_off_time; - //set the fast decay time - //set msb - chopper_config_register |= (((unsigned long)(fast_decay_time_setting & 0x8))<15) { - constant_off_time=15; - } - //save the constant off time - this->constant_off_time = constant_off_time; - char blank_value; - //calculate the value acc to the clock cycles - if (blank_time>=54) { - blank_value=3; - } else if (blank_time>=36) { - blank_value=2; - } else if (blank_time>=24) { - blank_value=1; - } else { - blank_value=0; - } - if (hysteresis_start<1) { - hysteresis_start=1; - } else if (hysteresis_start>8) { - hysteresis_start=8; - } - hysteresis_start--; - - if (hysteresis_end < -3) { - hysteresis_end = -3; - } else if (hysteresis_end>12) { - hysteresis_end = 12; - } - //shift the hysteresis_end - hysteresis_end +=3; - - if (hysteresis_decrement<0) { - hysteresis_decrement=0; - } else if (hysteresis_decrement>3) { - hysteresis_decrement=3; - } - - //first of all delete all the values for this - chopper_config_register &= ~(CHOPPER_MODE_T_OFF_FAST_DECAY | BLANK_TIMING_PATTERN | HYSTERESIS_DECREMENT_PATTERN | HYSTERESIS_LOW_VALUE_PATTERN | HYSTERESIS_START_VALUE_PATTERN | T_OFF_TIMING_PATERN); - - //set the blank timing value - chopper_config_register |= ((unsigned long)blank_value) << BLANK_TIMING_SHIFT; - //setting the constant off time - chopper_config_register |= constant_off_time; - //set the hysteresis_start - chopper_config_register |= ((unsigned long)hysteresis_start) << HYSTERESIS_START_VALUE_SHIFT; - //set the hysteresis end - chopper_config_register |= ((unsigned long)hysteresis_end) << HYSTERESIS_LOW_SHIFT; - //set the hystereis decrement - chopper_config_register |= ((unsigned long)blank_value) << BLANK_TIMING_SHIFT; - //if started we directly send it to the motor - if (started) { - send262(driver_control_register_value); - } -} - -/* - * In a constant off time chopper scheme both coil choppers run freely, i.e. are not synchronized. - * The frequency of each chopper mainly depends on the coil current and the position dependant motor coil inductivity, thus it depends on the microstep position. - * With some motors a slightly audible beat can occur between the chopper frequencies, especially when they are near to each other. This typically occurs at a - * few microstep positions within each quarter wave. This effect normally is not audible when compared to mechanical noise generated by ball bearings, etc. - * Further factors which can cause a similar effect are a poor layout of sense resistor GND connection. - * Hint: A common factor, which can cause motor noise, is a bad PCB layout causing coupling of both sense resistor voltages - * (please refer to sense resistor layout hint in chapter 8.1). - * In order to minimize the effect of a beat between both chopper frequencies, an internal random generator is provided. - * It modulates the slow decay time setting when switched on by the RNDTF bit. The RNDTF feature further spreads the chopper spectrum, - * reducing electromagnetic emission on single frequencies. - */ -void TMC26XStepper::setRandomOffTime(char value) { - if (value) { - chopper_config_register |= RANDOM_TOFF_TIME; - } else { - chopper_config_register &= ~(RANDOM_TOFF_TIME); - } - //if started we directly send it to the motor - if (started) { - send262(driver_control_register_value); - } -} - -void TMC26XStepper::setCoolStepConfiguration(unsigned int lower_SG_threshold, unsigned int SG_hysteresis, unsigned char current_decrement_step_size, - unsigned char current_increment_step_size, unsigned char lower_current_limit) { - //sanitize the input values - if (lower_SG_threshold>480) { - lower_SG_threshold = 480; - } - //divide by 32 - lower_SG_threshold >>=5; - if (SG_hysteresis>480) { - SG_hysteresis=480; - } - //divide by 32 - SG_hysteresis >>=5; - if (current_decrement_step_size>3) { - current_decrement_step_size=3; - } - if (current_increment_step_size>3) { - current_increment_step_size=3; - } - if (lower_current_limit>1) { - lower_current_limit=1; - } - //store the lower level in order to enable/disable the cool step - this->cool_step_lower_threshold=lower_SG_threshold; - //if cool step is not enabled we delete the lower value to keep it disabled - if (!this->cool_step_enabled) { - lower_SG_threshold=0; - } - //the good news is that we can start with a complete new cool step register value - //and simply set the values in the register - cool_step_register_value = ((unsigned long)lower_SG_threshold) | (((unsigned long)SG_hysteresis)<<8) | (((unsigned long)current_decrement_step_size)<<5) - | (((unsigned long)current_increment_step_size)<<13) | (((unsigned long)lower_current_limit)<<15) - //and of course we have to include the signature of the register - | COOL_STEP_REGISTER; - //Serial.println(cool_step_register_value,HEX); - if (started) { - send262(cool_step_register_value); - } -} - -void TMC26XStepper::setCoolStepEnabled(boolean enabled) { - //simply delete the lower limit to disable the cool step - cool_step_register_value &= ~SE_MIN_PATTERN; - //and set it to the proper value if cool step is to be enabled - if (enabled) { - cool_step_register_value |=this->cool_step_lower_threshold; - } - //and save the enabled status - this->cool_step_enabled = enabled; - //save the register value - if (started) { - send262(cool_step_register_value); - } -} - -boolean TMC26XStepper::isCoolStepEnabled(void) { - return this->cool_step_enabled; -} - -unsigned int TMC26XStepper::getCoolStepLowerSgThreshold() { - //we return our internally stored value - in order to provide the correct setting even if cool step is not enabled - return this->cool_step_lower_threshold<<5; -} - -unsigned int TMC26XStepper::getCoolStepUpperSgThreshold() { - return (unsigned char)((cool_step_register_value & SE_MAX_PATTERN)>>8)<<5; -} - -unsigned char TMC26XStepper::getCoolStepCurrentIncrementSize() { - return (unsigned char)((cool_step_register_value & CURRENT_DOWN_STEP_SPEED_PATTERN)>>13); -} - -unsigned char TMC26XStepper::getCoolStepNumberOfSGReadings() { - return (unsigned char)((cool_step_register_value & SE_CURRENT_STEP_WIDTH_PATTERN)>>5); -} - -unsigned char TMC26XStepper::getCoolStepLowerCurrentLimit() { - return (unsigned char)((cool_step_register_value & MINIMUM_CURRENT_FOURTH)>>15); -} - -void TMC26XStepper::setEnabled(boolean enabled) { - //delete the t_off in the chopper config to get sure - chopper_config_register &= ~(T_OFF_PATTERN); - if (enabled) { - //and set the t_off time - chopper_config_register |= this->constant_off_time; - } - //if not enabled we don't have to do anything since we already delete t_off from the register - if (started) { - send262(chopper_config_register); - } -} - -boolean TMC26XStepper::isEnabled() { - if (chopper_config_register & T_OFF_PATTERN) { - return true; - } else { - return false; - } -} - -/* - * reads a value from the TMC26X status register. The value is not obtained directly but can then - * be read by the various status routines. - * - */ -void TMC26XStepper::readStatus(char read_value) { - unsigned long old_driver_configuration_register_value = driver_configuration_register_value; - //reset the readout configuration - driver_configuration_register_value &= ~(READ_SELECTION_PATTERN); - //this now equals TMC26X_READOUT_POSITION - so we just have to check the other two options - if (read_value == TMC26X_READOUT_STALLGUARD) { - driver_configuration_register_value |= READ_STALL_GUARD_READING; - } else if (read_value == TMC26X_READOUT_CURRENT) { - driver_configuration_register_value |= READ_STALL_GUARD_AND_COOL_STEP; - } - //all other cases are ignored to prevent funny values - //check if the readout is configured for the value we are interested in - if (driver_configuration_register_value!=old_driver_configuration_register_value) { - //because then we need to write the value twice - one time for configuring, second time to get the value, see below - send262(driver_configuration_register_value); - } - //write the configuration to get the last status - send262(driver_configuration_register_value); -} - -int TMC26XStepper::getMotorPosition(void) { - //we read it out even if we are not started yet - perhaps it is useful information for somebody - readStatus(TMC26X_READOUT_POSITION); - return getReadoutValue(); -} - -//reads the stall guard setting from last status -//returns -1 if stallguard information is not present -int TMC26XStepper::getCurrentStallGuardReading(void) { - //if we don't yet started there cannot be a stall guard value - if (!started) { - return -1; - } - //not time optimal, but solution optiomal: - //first read out the stall guard value - readStatus(TMC26X_READOUT_STALLGUARD); - return getReadoutValue(); -} - -unsigned char TMC26XStepper::getCurrentCSReading(void) { - //if we don't yet started there cannot be a stall guard value - if (!started) { - return 0; - } - //not time optimal, but solution optiomal: - //first read out the stall guard value - readStatus(TMC26X_READOUT_CURRENT); - return (getReadoutValue() & 0x1f); -} - -unsigned int TMC26XStepper::getCurrentCurrent(void) { - double result = (double)getCurrentCSReading(); - double resistor_value = (double)this->resistor; - double voltage = (driver_configuration_register_value & VSENSE)? 0.165:0.31; - result = (result+1.0)/32.0*voltage/resistor_value*1000.0*1000.0; - return (unsigned int)result; -} - -/* - return true if the stallguard threshold has been reached -*/ -boolean TMC26XStepper::isStallGuardOverThreshold(void) { - if (!this->started) { - return false; - } - return (driver_status_result & STATUS_STALL_GUARD_STATUS); -} - -/* - returns if there is any over temperature condition: - OVER_TEMPERATURE_PREWARING if pre warning level has been reached - OVER_TEMPERATURE_SHUTDOWN if the temperature is so hot that the driver is shut down - Any of those levels are not too good. -*/ -char TMC26XStepper::getOverTemperature(void) { - if (!this->started) { - return 0; - } - if (driver_status_result & STATUS_OVER_TEMPERATURE_SHUTDOWN) { - return TMC26X_OVERTEMPERATURE_SHUTDOWN; - } - if (driver_status_result & STATUS_OVER_TEMPERATURE_WARNING) { - return TMC26X_OVERTEMPERATURE_PREWARING; - } - return 0; -} - -//is motor channel A shorted to ground -boolean TMC26XStepper::isShortToGroundA(void) { - if (!this->started) { - return false; - } - return (driver_status_result & STATUS_SHORT_TO_GROUND_A); -} - -//is motor channel B shorted to ground -boolean TMC26XStepper::isShortToGroundB(void) { - if (!this->started) { - return false; - } - return (driver_status_result & STATUS_SHORT_TO_GROUND_B); -} - -//is motor channel A connected -boolean TMC26XStepper::isOpenLoadA(void) { - if (!this->started) { - return false; - } - return (driver_status_result & STATUS_OPEN_LOAD_A); -} - -//is motor channel B connected -boolean TMC26XStepper::isOpenLoadB(void) { - if (!this->started) { - return false; - } - return (driver_status_result & STATUS_OPEN_LOAD_B); -} - -//is chopper inactive since 2^20 clock cycles - defaults to ~0,08s -boolean TMC26XStepper::isStandStill(void) { - if (!this->started) { - return false; - } - return (driver_status_result & STATUS_STAND_STILL); -} - -//is chopper inactive since 2^20 clock cycles - defaults to ~0,08s -boolean TMC26XStepper::isStallGuardReached(void) { - if (!this->started) { - return false; - } - return (driver_status_result & STATUS_STALL_GUARD_STATUS); -} - -//reads the stall guard setting from last status -//returns -1 if stallguard inforamtion is not present -int TMC26XStepper::getReadoutValue(void) { - return (int)(driver_status_result >> 10); -} - -int TMC26XStepper::getResistor() { - return this->resistor; -} - -boolean TMC26XStepper::isCurrentScalingHalfed() { - if (this->driver_configuration_register_value & VSENSE) { - return true; - } else { - return false; - } -} -/* - version() returns the version of the library: - */ -int TMC26XStepper::version(void) -{ - return 1; -} - -void TMC26XStepper::debugLastStatus() { -#ifdef DEBUG -if (this->started) { - if (this->getOverTemperature()&TMC26X_OVERTEMPERATURE_PREWARING) { - Serial.println("WARNING: Overtemperature Prewarning!"); - } else if (this->getOverTemperature()&TMC26X_OVERTEMPERATURE_SHUTDOWN) { - Serial.println("ERROR: Overtemperature Shutdown!"); - } - if (this->isShortToGroundA()) { - Serial.println("ERROR: SHORT to ground on channel A!"); - } - if (this->isShortToGroundB()) { - Serial.println("ERROR: SHORT to ground on channel A!"); - } - if (this->isOpenLoadA()) { - Serial.println("ERROR: Channel A seems to be unconnected!"); - } - if (this->isOpenLoadB()) { - Serial.println("ERROR: Channel B seems to be unconnected!"); - } - if (this->isStallGuardReached()) { - Serial.println("INFO: Stall Guard level reached!"); - } - if (this->isStandStill()) { - Serial.println("INFO: Motor is standing still."); - } - unsigned long readout_config = driver_configuration_register_value & READ_SELECTION_PATTERN; - int value = getReadoutValue(); - if (readout_config == READ_MICROSTEP_POSTION) { - Serial.print("Microstep postion phase A: "); - Serial.println(value); - } else if (readout_config == READ_STALL_GUARD_READING) { - Serial.print("Stall Guard value:"); - Serial.println(value); - } else if (readout_config == READ_STALL_GUARD_AND_COOL_STEP) { - int stallGuard = value & 0xf; - int current = value & 0x1F0; - Serial.print("Approx Stall Guard: "); - Serial.println(stallGuard); - Serial.print("Current level"); - Serial.println(current); - } - } -#endif -} - -/* - * send register settings to the stepper driver via SPI - * returns the current status - */ -inline void TMC26XStepper::send262(unsigned long datagram) { - unsigned long i_datagram; - - //preserver the previous spi mode - unsigned char oldMode = SPCR & SPI_MODE_MASK; - - //if the mode is not correct set it to mode 3 - if (oldMode != SPI_MODE3) { - SPI.setDataMode(SPI_MODE3); - } - - //select the TMC driver - digitalWrite(cs_pin,LOW); - - //ensure that only valid bist are set (0-19) - //datagram &=REGISTER_BIT_PATTERN; - -#ifdef DEBUG - Serial.print("Sending "); - Serial.println(datagram,HEX); -#endif - - //write/read the values - i_datagram = SPI.transfer((datagram >> 16) & 0xff); - i_datagram <<= 8; - i_datagram |= SPI.transfer((datagram >> 8) & 0xff); - i_datagram <<= 8; - i_datagram |= SPI.transfer((datagram) & 0xff); - i_datagram >>= 4; - -#ifdef DEBUG - Serial.print("Received "); - Serial.println(i_datagram,HEX); - debugLastStatus(); -#endif - //deselect the TMC chip - digitalWrite(cs_pin,HIGH); - - //restore the previous SPI mode if neccessary - //if the mode is not correct set it to mode 3 - if (oldMode != SPI_MODE3) { - SPI.setDataMode(oldMode); - } - - - //store the datagram as status result - driver_status_result = i_datagram; -} \ No newline at end of file diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/TMC26XStepper.h b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/TMC26XStepper.h deleted file mode 100644 index b5d51316aa..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/TMC26XStepper.h +++ /dev/null @@ -1,607 +0,0 @@ -/* - TMC26XStepper.cpp - - TMC26X Stepper library for Wiring/Arduino - - based on the stepper library by Tom Igoe, et. al. - - Copyright (c) 2011, Interactive Matter, Marcus Nowotny - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - - */ - - -// ensure this library description is only included once -#ifndef TMC26XStepper_h -#define TMC26XStepper_h - -//! return value for TMC26XStepper.getOverTemperature() if there is a overtemperature situation in the TMC chip -/*! - * This warning indicates that the TCM chip is too warm. - * It is still working but some parameters may be inferior. - * You should do something against it. - */ -#define TMC26X_OVERTEMPERATURE_PREWARING 1 -//! return value for TMC26XStepper.getOverTemperature() if there is a overtemperature shutdown in the TMC chip -/*! - * This warning indicates that the TCM chip is too warm to operate and has shut down to prevent damage. - * It will stop working until it cools down again. - * If you encouter this situation you must do something against it. Like reducing the current or improving the PCB layout - * and/or heat management. - */ -#define TMC26X_OVERTEMPERATURE_SHUTDOWN 2 - -//which values can be read out -/*! - * Selects to readout the microstep position from the motor. - *\sa readStatus() - */ -#define TMC26X_READOUT_POSITION 0 -/*! - * Selects to read out the StallGuard value of the motor. - *\sa readStatus() - */ -#define TMC26X_READOUT_STALLGUARD 1 -/*! - * Selects to read out the current current setting (acc. to CoolStep) and the upper bits of the StallGuard value from the motor. - *\sa readStatus(), setCurrent() - */ -#define TMC26X_READOUT_CURRENT 3 - -/*! - * Define to set the minimum current for CoolStep operation to 1/2 of the selected CS minium. - *\sa setCoolStepConfiguration() - */ -#define COOL_STEP_HALF_CS_LIMIT 0 -/*! - * Define to set the minimum current for CoolStep operation to 1/4 of the selected CS minium. - *\sa setCoolStepConfiguration() - */ -#define COOL_STEP_QUARTDER_CS_LIMIT 1 - -/*! - * \class TMC26XStepper - * \brief Class representing a TMC26X stepper driver - * - * In order to use one fo those drivers in your Arduino code you have to create an object of that class: - * \code - * TMC26XStepper stepper = TMC26XStepper(200,1,2,3,500); - * \endcode - * see TMC26XStepper(int number_of_steps, int cs_pin, int dir_pin, int step_pin, unsigned int rms_current) - * - * Keep in mind that you need to start the driver with start() in order to get the TMC26X configured. - * - * The most important function is the move(). It checks if the motor has to do a step or not. - * It is important that you call move() as often as possible in your Arduino loop() routine. I suggest - * to use a very fast loop routine and always call it at the beginning or the end. - * - * In order to move you have to provide a movement speed with setSpeed(). The speed is a positive value setting - * the rotations per minute. - * - * To really move the motor you have to call step() to tell the driver to move the motor the given number - * of steps in the given direction. Positive values move the motor in one direction, negative values in the other direction. - * - * You can check with isMoving() if the mototr is still moving or stop it apruptely with stop(). - */ -class TMC26XStepper { - public: - /*! - * \brief creates a new represenatation of a stepper motor connected to a TMC26X stepper driver - * - * This is the main constructor. If in doubt use this. You must provide all parameters as described below. - * - * \param number_of_steps the number of steps the motor has per rotation. - * \param cs_pin The Arduino pin you have connected the Cient Select Pin (!CS) of the TMC26X for SPI - * \param dir_pin the number of the Arduino pin the Direction input of the TMC26X is connected - * \param step_pin the number of the Arduino pin the step pin of the TMC26X driver is connected. - * \param rms_current the maximum current to privide to the motor in mA (!). A value of 200 would send up to 200mA to the motor - * \param resistor the current sense resistor in milli Ohm, defaults to ,15 Ohm ( or 150 milli Ohm) as in the TMC260 Arduino Shield - * - * Keep in mind that you must also call TMC26XStepper.start() in order to configure the stepper driver for use. - * - * By default the Constant Off Time chopper is used, see TCM262Stepper.setConstantOffTimeChopper() for details. - * This should work on most motors (YMMV). You may want to configure and use the Spread Cycle Chopper, see setSpreadCycleChopper(). - * - * By default a microstepping of 1/32th is used to provide a smooth motor run, while still giving a good progression per step. - * You can select a different stepping with setMicrosteps() to aa different value. - * \sa start(), setMicrosteps() - */ - TMC26XStepper(int number_of_steps, int cs_pin, int dir_pin, int step_pin, unsigned int current, unsigned int resistor=150); - - /*! - * \brief configures and starts the TMC26X stepper driver. Before you called this function the stepper driver is in nonfunctional mode. - * - * This routine configures the TMC26X stepper driver for the given values via SPI. - * Most member functions are non functional if the driver has not been started. - * Therefore it is best to call this in your Arduino setup() function. - */ - void start(); - - /*! - * \brief resets the stepper in unconfigured mode. - * - * This routine enables you to call start again. It does not change anything - * in the internal stepper configuration or the desired configuration. - * It just marks the stepper as not yet startet. You do not have to reconfigure - * the stepper to start it again, but it is not reset to any factory settings - * this has to be configured back by yourself. - * (Hint: Normally you do not need this function) - */ - void un_start(); - - - /*! - * \brief Sets the rotation speed in revolutions per minute. - * \param whatSpeed the desired speed in rotations per minute. - */ - void setSpeed(unsigned int whatSpeed); - - /*! - * \brief reads out the currently selected speed in revolutions per minute. - * \sa setSpeed() - */ - unsigned int getSpeed(void); - - /*! - * \brief Set the number of microsteps in 2^i values (rounded) up to 256 - * - * This method set's the number of microsteps per step in 2^i interval. - * This means you can select 1, 2, 4, 16, 32, 64, 128 or 256 as valid microsteps. - * If you give any other value it will be rounded to the next smaller number (3 would give a microstepping of 2). - * You can always check the current microstepping with getMicrosteps(). - */ - void setMicrosteps(int number_of_steps); - - /*! - * \brief returns the effective current number of microsteps selected. - * - * This function always returns the effective number of microsteps. - * This can be a bit different than the micro steps set in setMicrosteps() since it is rounded to 2^i. - * - * \sa setMicrosteps() - */ - int getMicrosteps(void); - - /*! - * \brief Initiate a movement for the given number of steps. Positive numbers move in one, negative numbers in the other direction. - * - * \param number_of_steps The number of steps to move the motor. - * \return 0 if the motor was not moving and moves now. -1 if the motor is moving and the new steps could not be set. - * - * If the previous movement is not finished yet the function will return -1 and not change the steps to move the motor. - * If the motor does not move it return 0 - * - * The direction of the movement is indicated by the sign of the steps parameter. It is not determinable if positive values are right - * or left This depends on the internal construction of the motor and how you connected it to the stepper driver. - * - * You can always verify with isMoving() or even use stop() to stop the motor before giving it new step directions. - * \sa isMoving(), getStepsLeft(), stop() - */ - char step(int number_of_steps); - - /*! - * \brief Central movement method, must be called as often as possible in the lopp function and is very fast. - * - * This routine checks if the motor still has to move, if the waiting delay has passed to send a new step command to the motor - * and manages the number of steps yet to move to fulfill the current move command. - * - * This function is implemented to be as fast as possible to call it as often as possible in your loop routine. - * The more regurlarly you call this function the better. In both senses of 'regularly': Calling it as often as - * possible is not a bad idea and if you even manage that the intervals you call this function are not too irregular helps too. - * - * You can call this routine even if you know that the motor is not miving. It introduces just a very small penalty in your code. - * You must not call isMoving() to determine if you need to call this function, since taht is done internally already and only - * slows down you code. - * - * How often you call this function directly influences your top miving speed for the motor. It may be a good idea to call this - * from an timer overflow interrupt to ensure proper calling. - * \sa step() - */ - char move(void); - - /*! - * \brief checks if the motor still has to move to fulfill the last movement command. - * \return 0 if the motor stops, -1 if the motor is moving. - * - * This method can be used to determine if the motor is ready for new movements. - *\sa step(), move() - */ - char isMoving(void); - - /*! - * \brief Get the number of steps left in the current movement. - * \return The number of steps left in the movement. This number is always positive. - */ - unsigned int getStepsLeft(void); - - /*! - * \brief Stops the motor regardless if it moves or not. - * \return -1 if the motor was moving and is really stoped or 0 if it was not moving at all. - * - * This method directly and apruptely stops the motor and may be used as an emergency stop. - */ - char stop(void); - - /*! - * \brief Sets and configure the classical Constant Off Timer Chopper - * \param constant_off_time The off time setting controls the minimum chopper frequency. For most applications an off time within the range of 5μs to 20μs will fit. Setting this parameter to zero completely disables all driver transistors and the motor can free-wheel. 0: chopper off, 1:15: off time setting (1 will work with minimum blank time of 24 clocks) - * \param blank_time Selects the comparator blank time. This time needs to safely cover the switching event and the duration of the ringing on the sense resistor. For most low current drivers, a setting of 1 or 2 is good. For high current applications with large MOSFETs, a setting of 2 or 3 will be required. 0 (min setting) … (3) amx setting - * \param fast_decay_time_setting Fast decay time setting. Controls the portion of fast decay for each chopper cycle. 0: slow decay only, 1…15: duration of fast decay phase - * \param sine_wave_offset Sine wave offset. Controls the sine wave offset. A positive offset corrects for zero crossing error. -3…-1: negative offset, 0: no offset,1…12: positive offset - * \param use_curreent_comparator Selects usage of the current comparator for termination of the fast decay cycle. If current comparator is enabled, it terminates the fast decay cycle in case the current reaches a higher negative value than the actual positive value. (0 disable, -1 enable). - * - * The classic constant off time chopper uses a fixed portion of fast decay following each on phase. - * While the duration of the on time is determined by the chopper comparator, the fast decay time needs - * to be set by the user in a way, that the current decay is enough for the driver to be able to follow - * the falling slope of the sine wave, and on the other hand it should not be too long, in order to minimize - * motor current ripple and power dissipation. This best can be tuned using an oscilloscope or - * trying out motor smoothness at different velocities. A good starting value is a fast decay time setting - * similar to the slow decay time setting. - * After tuning of the fast decay time, the offset should be determined, in order to have a smooth zero transition. - * This is necessary, because the fast decay phase leads to the absolute value of the motor current being lower - * than the target current (see figure 17). If the zero offset is too low, the motor stands still for a short - * moment during current zero crossing, if it is set too high, it makes a larger microstep. - * Typically, a positive offset setting is required for optimum operation. - * - * \sa setSpreadCycleChoper() for other alternatives. - * \sa setRandomOffTime() for spreading the noise over a wider spectrum - */ - void setConstantOffTimeChopper(char constant_off_time, char blank_time, char fast_decay_time_setting, char sine_wave_offset, unsigned char use_current_comparator); - - /*! - * \brief Sets and configures with spread cycle chopper. - * \param constant_off_time The off time setting controls the minimum chopper frequency. For most applications an off time within the range of 5μs to 20μs will fit. Setting this parameter to zero completely disables all driver transistors and the motor can free-wheel. 0: chopper off, 1:15: off time setting (1 will work with minimum blank time of 24 clocks) - * \param blank_time Selects the comparator blank time. This time needs to safely cover the switching event and the duration of the ringing on the sense resistor. For most low current drivers, a setting of 1 or 2 is good. For high current applications with large MOSFETs, a setting of 2 or 3 will be required. 0 (min setting) … (3) amx setting - * \param hysteresis_start Hysteresis start setting. Please remark, that this value is an offset to the hysteresis end value. 1 … 8 - * \param hysteresis_end Hysteresis end setting. Sets the hysteresis end value after a number of decrements. Decrement interval time is controlled by hysteresis_decrement. The sum hysteresis_start + hysteresis_end must be <16. At a current setting CS of max. 30 (amplitude reduced to 240), the sum is not limited. - * \param hysteresis_decrement Hysteresis decrement setting. This setting determines the slope of the hysteresis during on time and during fast decay time. 0 (fast decrement) … 3 (slow decrement). - * - * The spreadCycle chopper scheme (pat.fil.) is a precise and simple to use chopper principle, which automatically determines - * the optimum fast decay portion for the motor. Anyhow, a number of settings can be made in order to optimally fit the driver - * to the motor. - * Each chopper cycle is comprised of an on-phase, a slow decay phase, a fast decay phase and a second slow decay phase. - * The slow decay phases limit the maximum chopper frequency and are important for low motor and driver power dissipation. - * The hysteresis start setting limits the chopper frequency by forcing the driver to introduce a minimum amount of - * current ripple into the motor coils. The motor inductivity determines the ability to follow a changing motor current. - * The duration of the on- and fast decay phase needs to cover at least the blank time, because the current comparator is - * disabled during this time. - * - * \sa setRandomOffTime() for spreading the noise over a wider spectrum - */ - void setSpreadCycleChopper(char constant_off_time, char blank_time, char hysteresis_start, char hysteresis_end, char hysteresis_decrement); - - /*! - * \brief Use random off time for noise reduction (0 for off, -1 for on). - * \param value 0 for off, -1 for on - * - * In a constant off time chopper scheme both coil choppers run freely, i.e. are not synchronized. - * The frequency of each chopper mainly depends on the coil current and the position dependant motor coil inductivity, - * thus it depends on the microstep position. With some motors a slightly audible beat can occur between the chopper - * frequencies, especially when they are near to each other. This typically occurs at a few microstep positions within - * each quarter wave. - * This effect normally is not audible when compared to mechanical noise generated by ball bearings, - * etc. Further factors which can cause a similar effect are a poor layout of sense resistor GND connection. - * In order to minimize the effect of a beat between both chopper frequencies, an internal random generator is provided. - * It modulates the slow decay time setting when switched on. The random off time feature further spreads the chopper spectrum, - * reducing electromagnetic emission on single frequencies. - */ - void setRandomOffTime(char value); - - /*! - * \brief set the maximum motor current in mA (1000 is 1 Amp) - * Keep in mind this is the maximum peak Current. The RMS current will be 1/sqrt(2) smaller. The actual current can also be smaller - * by employing CoolStep. - * \param current the maximum motor current in mA - * \sa getCurrent(), getCurrentCurrent() - */ - void setCurrent(unsigned int current); - - /*! - * \brief readout the motor maximum current in mA (1000 is an Amp) - * This is the maximum current. to get the current current - which may be affected by CoolStep us getCurrentCurrent() - *\return the maximum motor current in milli amps - * \sa getCurrentCurrent() - */ - unsigned int getCurrent(void); - - /*! - * \brief set the StallGuard threshold in order to get sensible StallGuard readings. - * \param stall_guard_threshold -64 … 63 the StallGuard threshold - * \param stall_guard_filter_enabled 0 if the filter is disabled, -1 if it is enabled - * - * The StallGuard threshold is used to optimize the StallGuard reading to sensible values. It should be at 0 at - * the maximum allowable load on the otor (but not before). = is a good starting point (and the default) - * If you get Stall Gaurd readings of 0 without any load or with too little laod increase the value. - * If you get readings of 1023 even with load decrease the setting. - * - * If you switch on the filter the StallGuard reading is only updated each 4th full step to reduce the noise in the - * reading. - * - * \sa getCurrentStallGuardReading() to read out the current value. - */ - void setStallGuardThreshold(char stall_guard_threshold, char stall_guard_filter_enabled); - - /*! - * \brief reads out the StallGuard threshold - * \return a number between -64 and 63. - */ - char getStallGuardThreshold(void); - - /*! - * \brief returns the current setting of the StallGuard filter - * \return 0 if not set, -1 if set - */ - char getStallGuardFilter(void); - - /*! - * \brief This method configures the CoolStep smart energy operation. You must have a proper StallGuard configuration for the motor situation (current, voltage, speed) in rder to use this feature. - * \param lower_SG_threshold Sets the lower threshold for stallGuard2TM reading. Below this value, the motor current becomes increased. Allowed values are 0...480 - * \param SG_hysteresis Sets the distance between the lower and the upper threshold for stallGuard2TM reading. Above the upper threshold (which is lower_SG_threshold+SG_hysteresis+1) the motor current becomes decreased. Allowed values are 0...480 - * \param current_decrement_step_size Sets the current decrement steps. If the StallGuard value is above the threshold the current gets decremented by this step size. 0...32 - * \param current_increment_step_size Sets the current increment step. The current becomes incremented for each measured stallGuard2TM value below the lower threshold. 0...8 - * \param lower_current_limit Sets the lower motor current limit for coolStepTM operation by scaling the CS value. Values can be COOL_STEP_HALF_CS_LIMIT, COOL_STEP_QUARTER_CS_LIMIT - * The CoolStep smart energy operation automatically adjust the current sent into the motor according to the current load, - * read out by the StallGuard in order to provide the optimum torque with the minimal current consumption. - * You configure the CoolStep current regulator by defining upper and lower bounds of StallGuard readouts. If the readout is above the - * limit the current gets increased, below the limit the current gets decreased. - * You can specify the upper an lower threshold of the StallGuard readout in order to adjust the current. You can also set the number of - * StallGuard readings neccessary above or below the limit to get a more stable current adjustement. - * The current adjustement itself is configured by the number of steps the current gests in- or decreased and the absolut minimum current - * (1/2 or 1/4th otf the configured current). - * \sa COOL_STEP_HALF_CS_LIMIT, COOL_STEP_QUARTER_CS_LIMIT - */ - void setCoolStepConfiguration(unsigned int lower_SG_threshold, unsigned int SG_hysteresis, unsigned char current_decrement_step_size, - unsigned char current_increment_step_size, unsigned char lower_current_limit); - - /*! - * \brief enables or disables the CoolStep smart energy operation feature. It must be configured before enabling it. - * \param enabled true if CoolStep should be enabled, false if not. - * \sa setCoolStepConfiguration() - */ - void setCoolStepEnabled(boolean enabled); - - - /*! - * \brief check if the CoolStep feature is enabled - * \sa setCoolStepEnabled() - */ - boolean isCoolStepEnabled(); - - /*! - * \brief returns the lower StallGuard threshold for the CoolStep operation - * \sa setCoolStepConfiguration() - */ - unsigned int getCoolStepLowerSgThreshold(); - - /*! - * \brief returns the upper StallGuard threshold for the CoolStep operation - * \sa setCoolStepConfiguration() - */ - unsigned int getCoolStepUpperSgThreshold(); - - /*! - * \brief returns the number of StallGuard readings befor CoolStep adjusts the motor current. - * \sa setCoolStepConfiguration() - */ - unsigned char getCoolStepNumberOfSGReadings(); - - /*! - * \brief returns the increment steps for the current for the CoolStep operation - * \sa setCoolStepConfiguration() - */ - unsigned char getCoolStepCurrentIncrementSize(); - - /*! - * \brief returns the absolut minium current for the CoolStep operation - * \sa setCoolStepConfiguration() - * \sa COOL_STEP_HALF_CS_LIMIT, COOL_STEP_QUARTER_CS_LIMIT - */ - unsigned char getCoolStepLowerCurrentLimit(); - - /*! - * \brief Get the current microstep position for phase A - * \return The current microstep position for phase A 0…255 - * - * Keep in mind that this routine reads and writes a value via SPI - so this may take a bit time. - */ - int getMotorPosition(void); - - /*! - * \brief Reads the current StallGuard value. - * \return The current StallGuard value, lesser values indicate higher load, 0 means stall detected. - * Keep in mind that this routine reads and writes a value via SPI - so this may take a bit time. - * \sa setStallGuardThreshold() for tuning the readout to sensible ranges. - */ - int getCurrentStallGuardReading(void); - - /*! - * \brief Reads the current current setting value as fraction of the maximum current - * Returns values between 0 and 31, representing 1/32 to 32/32 (=1) - * \sa setCoolStepConfiguration() - */ - unsigned char getCurrentCSReading(void); - - - /*! - *\brief a convenience method to determine if the current scaling uses 0.31V or 0.165V as reference. - *\return false if 0.13V is the reference voltage, true if 0.165V is used. - */ - boolean isCurrentScalingHalfed(); - - /*! - * \brief Reads the current current setting value and recalculates the absolute current in mA (1A would be 1000). - * This method calculates the currently used current setting (either by setting or by CoolStep) and reconstructs - * the current in mA by usinge the VSENSE and resistor value. This method uses floating point math - so it - * may not be the fastest. - * \sa getCurrentCSReading(), getResistor(), isCurrentScalingHalfed(), getCurrent() - */ - unsigned int getCurrentCurrent(void); - - /*! - * \brief checks if there is a StallGuard warning in the last status - * \return 0 if there was no warning, -1 if there was some warning. - * Keep in mind that this method does not enforce a readout but uses the value of the last status readout. - * You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout. - * - * \sa setStallGuardThreshold() for tuning the readout to sensible ranges. - */ - boolean isStallGuardOverThreshold(void); - - /*! - * \brief Return over temperature status of the last status readout - * return 0 is everything is OK, TMC26X_OVERTEMPERATURE_PREWARING if status is reached, TMC26X_OVERTEMPERATURE_SHUTDOWN is the chip is shutdown, -1 if the status is unknown. - * Keep in mind that this method does not enforce a readout but uses the value of the last status readout. - * You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout. - */ - char getOverTemperature(void); - - /*! - * \brief Is motor channel A shorted to ground detected in the last status readout. - * \return true is yes, false if not. - * Keep in mind that this method does not enforce a readout but uses the value of the last status readout. - * You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout. - */ - - boolean isShortToGroundA(void); - - /*! - * \brief Is motor channel B shorted to ground detected in the last status readout. - * \return true is yes, false if not. - * Keep in mind that this method does not enforce a readout but uses the value of the last status readout. - * You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout. - */ - boolean isShortToGroundB(void); - /*! - * \brief iIs motor channel A connected according to the last statu readout. - * \return true is yes, false if not. - * Keep in mind that this method does not enforce a readout but uses the value of the last status readout. - * You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout. - */ - boolean isOpenLoadA(void); - - /*! - * \brief iIs motor channel A connected according to the last statu readout. - * \return true is yes, false if not. - * Keep in mind that this method does not enforce a readout but uses the value of the last status readout. - * You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout. - */ - boolean isOpenLoadB(void); - - /*! - * \brief Is chopper inactive since 2^20 clock cycles - defaults to ~0,08s - * \return true is yes, false if not. - * Keep in mind that this method does not enforce a readout but uses the value of the last status readout. - * You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout. - */ - boolean isStandStill(void); - - /*! - * \brief checks if there is a StallGuard warning in the last status - * \return 0 if there was no warning, -1 if there was some warning. - * Keep in mind that this method does not enforce a readout but uses the value of the last status readout. - * You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout. - * - * \sa isStallGuardOverThreshold() - * TODO why? - * - * \sa setStallGuardThreshold() for tuning the readout to sensible ranges. - */ - boolean isStallGuardReached(void); - - /*! - *\brief enables or disables the motor driver bridges. If disabled the motor can run freely. If enabled not. - *\param enabled a boolean value true if the motor should be enabled, false otherwise. - */ - void setEnabled(boolean enabled); - - /*! - *\brief checks if the output bridges are enabled. If the bridges are not enabled the motor can run freely - *\return true if the bridges and by that the motor driver are enabled, false if not. - *\sa setEnabled() - */ - boolean isEnabled(); - - /*! - * \brief Manually read out the status register - * This function sends a byte to the motor driver in order to get the current readout. The parameter read_value - * seletcs which value will get returned. If the read_vlaue changes in respect to the previous readout this method - * automatically send two bytes to the motor: one to set the redout and one to get the actual readout. So this method - * may take time to send and read one or two bits - depending on the previous readout. - * \param read_value selects which value to read out (0..3). You can use the defines TMC26X_READOUT_POSITION, TMC_262_READOUT_STALLGUARD, or TMC_262_READOUT_CURRENT - * \sa TMC26X_READOUT_POSITION, TMC_262_READOUT_STALLGUARD, TMC_262_READOUT_CURRENT - */ - void readStatus(char read_value); - - /*! - * \brief Returns the current sense resistor value in milliohm. - * The default value of ,15 Ohm will return 150. - */ - int getResistor(); - - /*! - * \brief Prints out all the information that can be found in the last status read out - it does not force a status readout. - * The result is printed via Serial - */ - void debugLastStatus(void); - /*! - * \brief library version - * \return the version number as int. - */ - int version(void); - - private: - unsigned int steps_left; //the steps the motor has to do to complete the movement - int direction; // Direction of rotation - unsigned long step_delay; // delay between steps, in ms, based on speed - int number_of_steps; // total number of steps this motor can take - unsigned int speed; // we need to store the current speed in order to change the speed after changing microstepping - unsigned int resistor; //current sense resitor value in milliohm - - unsigned long last_step_time; // time stamp in ms of when the last step was taken - unsigned long next_step_time; // time stamp in ms of when the last step was taken - - //driver control register copies to easily set & modify the registers - unsigned long driver_control_register_value; - unsigned long chopper_config_register; - unsigned long cool_step_register_value; - unsigned long stall_guard2_current_register_value; - unsigned long driver_configuration_register_value; - //the driver status result - unsigned long driver_status_result; - - //helper routione to get the top 10 bit of the readout - inline int getReadoutValue(); - - //the pins for the stepper driver - unsigned char cs_pin; - unsigned char step_pin; - unsigned char dir_pin; - - //status values - boolean started; //if the stepper has been started yet - int microsteps; //the current number of micro steps - char constant_off_time; //we need to remember this value in order to enable and disable the motor - unsigned char cool_step_lower_threshold; // we need to remember the threshold to enable and disable the CoolStep feature - boolean cool_step_enabled; //we need to remember this to configure the coolstep if it si enabled - - //SPI sender - inline void send262(unsigned long datagram); -}; - -#endif - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8cpp.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8cpp.html deleted file mode 100644 index a577ca3ea1..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8cpp.html +++ /dev/null @@ -1,848 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: TMC26XStepper.cpp File Reference - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - -
-
- -
-
TMC26XStepper.cpp File Reference
-
-
-
#include <WProgram.h>
-#include <SPI.h>
-#include "TMC26XStepper.h"
-
-

Go to the source code of this file.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-Defines

#define DEFAULT_MICROSTEPPING_VALUE   32
#define DRIVER_CONTROL_REGISTER   0x0ul
#define CHOPPER_CONFIG_REGISTER   0x80000ul
#define COOL_STEP_REGISTER   0xA0000ul
#define STALL_GUARD2_LOAD_MEASURE_REGISTER   0xC0000ul
#define DRIVER_CONFIG_REGISTER   0xE0000ul
#define REGISTER_BIT_PATTERN   0xFFFFFul
#define MICROSTEPPING_PATTERN   0xFul
#define STEP_INTERPOLATION   0x200ul
#define DOUBLE_EDGE_STEP   0x100ul
#define VSENSE   0x40ul
#define READ_MICROSTEP_POSTION   0x0ul
#define READ_STALL_GUARD_READING   0x10ul
#define READ_STALL_GUARD_AND_COOL_STEP   0x20ul
#define READ_SELECTION_PATTERN   0x30ul
#define CHOPPER_MODE_STANDARD   0x0ul
#define CHOPPER_MODE_T_OFF_FAST_DECAY   0x4000ul
#define T_OFF_PATTERN   0xful
#define RANDOM_TOFF_TIME   0x2000ul
#define BLANK_TIMING_PATTERN   0x18000ul
#define BLANK_TIMING_SHIFT   15
#define HYSTERESIS_DECREMENT_PATTERN   0x1800ul
#define HYSTERESIS_DECREMENT_SHIFT   11
#define HYSTERESIS_LOW_VALUE_PATTERN   0x780ul
#define HYSTERESIS_LOW_SHIFT   7
#define HYSTERESIS_START_VALUE_PATTERN   0x78ul
#define HYSTERESIS_START_VALUE_SHIFT   4
#define T_OFF_TIMING_PATERN   0xFul
#define MINIMUM_CURRENT_FOURTH   0x8000ul
#define CURRENT_DOWN_STEP_SPEED_PATTERN   0x6000ul
#define SE_MAX_PATTERN   0xF00ul
#define SE_CURRENT_STEP_WIDTH_PATTERN   0x60ul
#define SE_MIN_PATTERN   0xful
#define STALL_GUARD_FILTER_ENABLED   0x10000ul
#define STALL_GUARD_TRESHHOLD_VALUE_PATTERN   0x17F00ul
#define CURRENT_SCALING_PATTERN   0x1Ful
#define STALL_GUARD_CONFIG_PATTERN   0x17F00ul
#define STALL_GUARD_VALUE_PATTERN   0x7F00ul
#define STATUS_STALL_GUARD_STATUS   0x1ul
#define STATUS_OVER_TEMPERATURE_SHUTDOWN   0x2ul
#define STATUS_OVER_TEMPERATURE_WARNING   0x4ul
#define STATUS_SHORT_TO_GROUND_A   0x8ul
#define STATUS_SHORT_TO_GROUND_B   0x10ul
#define STATUS_OPEN_LOAD_A   0x20ul
#define STATUS_OPEN_LOAD_B   0x40ul
#define STATUS_STAND_STILL   0x80ul
#define READOUT_VALUE_PATTERN   0xFFC00ul
#define INITIAL_MICROSTEPPING   0x3ul
-

Define Documentation

- -
-
- - - - -
#define BLANK_TIMING_PATTERN   0x18000ul
-
-
- -

Definition at line 63 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define BLANK_TIMING_SHIFT   15
-
-
- -

Definition at line 64 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define CHOPPER_CONFIG_REGISTER   0x80000ul
-
-
- -

Definition at line 41 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define CHOPPER_MODE_STANDARD   0x0ul
-
-
- -

Definition at line 59 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define CHOPPER_MODE_T_OFF_FAST_DECAY   0x4000ul
-
-
- -

Definition at line 60 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define COOL_STEP_REGISTER   0xA0000ul
-
-
- -

Definition at line 42 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define CURRENT_DOWN_STEP_SPEED_PATTERN   0x6000ul
-
-
- -

Definition at line 75 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define CURRENT_SCALING_PATTERN   0x1Ful
-
-
- -

Definition at line 83 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define DEFAULT_MICROSTEPPING_VALUE   32
-
-
- -

Definition at line 37 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define DOUBLE_EDGE_STEP   0x100ul
-
-
- -

Definition at line 51 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define DRIVER_CONFIG_REGISTER   0xE0000ul
-
-
- -

Definition at line 44 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define DRIVER_CONTROL_REGISTER   0x0ul
-
-
- -

Definition at line 40 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define HYSTERESIS_DECREMENT_PATTERN   0x1800ul
-
-
- -

Definition at line 65 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define HYSTERESIS_DECREMENT_SHIFT   11
-
-
- -

Definition at line 66 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define HYSTERESIS_LOW_SHIFT   7
-
-
- -

Definition at line 68 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define HYSTERESIS_LOW_VALUE_PATTERN   0x780ul
-
-
- -

Definition at line 67 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define HYSTERESIS_START_VALUE_PATTERN   0x78ul
-
-
- -

Definition at line 69 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define HYSTERESIS_START_VALUE_SHIFT   4
-
-
- -

Definition at line 70 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define INITIAL_MICROSTEPPING   0x3ul
-
-
- -

Definition at line 99 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define MICROSTEPPING_PATTERN   0xFul
-
-
- -

Definition at line 49 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define MINIMUM_CURRENT_FOURTH   0x8000ul
-
-
- -

Definition at line 74 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define RANDOM_TOFF_TIME   0x2000ul
-
-
- -

Definition at line 62 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define READ_MICROSTEP_POSTION   0x0ul
-
-
- -

Definition at line 53 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define READ_SELECTION_PATTERN   0x30ul
-
-
- -

Definition at line 56 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define READ_STALL_GUARD_AND_COOL_STEP   0x20ul
-
-
- -

Definition at line 55 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define READ_STALL_GUARD_READING   0x10ul
-
-
- -

Definition at line 54 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define READOUT_VALUE_PATTERN   0xFFC00ul
-
-
- -

Definition at line 96 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define REGISTER_BIT_PATTERN   0xFFFFFul
-
-
- -

Definition at line 46 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define SE_CURRENT_STEP_WIDTH_PATTERN   0x60ul
-
-
- -

Definition at line 77 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define SE_MAX_PATTERN   0xF00ul
-
-
- -

Definition at line 76 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define SE_MIN_PATTERN   0xful
-
-
- -

Definition at line 78 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STALL_GUARD2_LOAD_MEASURE_REGISTER   0xC0000ul
-
-
- -

Definition at line 43 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STALL_GUARD_CONFIG_PATTERN   0x17F00ul
-
-
- -

Definition at line 84 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STALL_GUARD_FILTER_ENABLED   0x10000ul
-
-
- -

Definition at line 81 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STALL_GUARD_TRESHHOLD_VALUE_PATTERN   0x17F00ul
-
-
- -

Definition at line 82 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STALL_GUARD_VALUE_PATTERN   0x7F00ul
-
-
- -

Definition at line 85 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STATUS_OPEN_LOAD_A   0x20ul
-
-
- -

Definition at line 93 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STATUS_OPEN_LOAD_B   0x40ul
-
-
- -

Definition at line 94 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STATUS_OVER_TEMPERATURE_SHUTDOWN   0x2ul
-
-
- -

Definition at line 89 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STATUS_OVER_TEMPERATURE_WARNING   0x4ul
-
-
- -

Definition at line 90 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STATUS_SHORT_TO_GROUND_A   0x8ul
-
-
- -

Definition at line 91 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STATUS_SHORT_TO_GROUND_B   0x10ul
-
-
- -

Definition at line 92 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STATUS_STALL_GUARD_STATUS   0x1ul
-
-
- -

Definition at line 88 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STATUS_STAND_STILL   0x80ul
-
-
- -

Definition at line 95 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define STEP_INTERPOLATION   0x200ul
-
-
- -

Definition at line 50 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define T_OFF_PATTERN   0xful
-
-
- -

Definition at line 61 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define T_OFF_TIMING_PATERN   0xFul
-
-
- -

Definition at line 71 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - -
#define VSENSE   0x40ul
-
-
- -

Definition at line 52 of file TMC26XStepper.cpp.

- -
-
-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8cpp_source.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8cpp_source.html deleted file mode 100644 index f7f4741ce1..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8cpp_source.html +++ /dev/null @@ -1,1067 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: TMC26XStepper.cpp Source File - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - -
-
-
-
TMC26XStepper.cpp
-
-
-Go to the documentation of this file.
00001 /*
-00002  TMC26XStepper.cpp - - TMC26X Stepper library for Wiring/Arduino - Version 0.1
-00003  
-00004  based on the stepper library by Tom Igoe, et. al.
-00005  
-00006  Copyright (c) 2011, Interactive Matter, Marcus Nowotny
-00007  
-00008  Permission is hereby granted, free of charge, to any person obtaining a copy
-00009  of this software and associated documentation files (the "Software"), to deal
-00010  in the Software without restriction, including without limitation the rights
-00011  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-00012  copies of the Software, and to permit persons to whom the Software is
-00013  furnished to do so, subject to the following conditions:
-00014  
-00015  The above copyright notice and this permission notice shall be included in
-00016  all copies or substantial portions of the Software.
-00017  
-00018  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-00019  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-00020  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-00021  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-00022  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-00023  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-00024  THE SOFTWARE.
-00025  
-00026  */
-00027 
-00028 #if defined(ARDUINO) && ARDUINO >= 100
-00029         #include <Arduino.h>
-00030 #else
-00031         #include <WProgram.h>
-00032 #endif
-00033 #include <SPI.h>
-00034 #include "TMC26XStepper.h"
-00035 
-00036 //some default values used in initialization
-00037 #define DEFAULT_MICROSTEPPING_VALUE 32
-00038 
-00039 //TMC26X register definitions
-00040 #define DRIVER_CONTROL_REGISTER 0x0ul
-00041 #define CHOPPER_CONFIG_REGISTER 0x80000ul
-00042 #define COOL_STEP_REGISTER  0xA0000ul
-00043 #define STALL_GUARD2_LOAD_MEASURE_REGISTER 0xC0000ul
-00044 #define DRIVER_CONFIG_REGISTER 0xE0000ul
-00045 
-00046 #define REGISTER_BIT_PATTERN 0xFFFFFul
-00047 
-00048 //definitions for the driver control register
-00049 #define MICROSTEPPING_PATTERN 0xFul
-00050 #define STEP_INTERPOLATION 0x200ul
-00051 #define DOUBLE_EDGE_STEP 0x100ul
-00052 #define VSENSE 0x40ul
-00053 #define READ_MICROSTEP_POSTION 0x0ul
-00054 #define READ_STALL_GUARD_READING 0x10ul
-00055 #define READ_STALL_GUARD_AND_COOL_STEP 0x20ul
-00056 #define READ_SELECTION_PATTERN 0x30ul
-00057 
-00058 //definitions for the chopper config register
-00059 #define CHOPPER_MODE_STANDARD 0x0ul
-00060 #define CHOPPER_MODE_T_OFF_FAST_DECAY 0x4000ul
-00061 #define T_OFF_PATTERN 0xful
-00062 #define RANDOM_TOFF_TIME 0x2000ul
-00063 #define BLANK_TIMING_PATTERN 0x18000ul
-00064 #define BLANK_TIMING_SHIFT 15
-00065 #define HYSTERESIS_DECREMENT_PATTERN 0x1800ul
-00066 #define HYSTERESIS_DECREMENT_SHIFT 11
-00067 #define HYSTERESIS_LOW_VALUE_PATTERN 0x780ul
-00068 #define HYSTERESIS_LOW_SHIFT 7
-00069 #define HYSTERESIS_START_VALUE_PATTERN 0x78ul
-00070 #define HYSTERESIS_START_VALUE_SHIFT 4
-00071 #define T_OFF_TIMING_PATERN 0xFul
-00072 
-00073 //definitions for cool step register
-00074 #define MINIMUM_CURRENT_FOURTH 0x8000ul
-00075 #define CURRENT_DOWN_STEP_SPEED_PATTERN 0x6000ul
-00076 #define SE_MAX_PATTERN 0xF00ul
-00077 #define SE_CURRENT_STEP_WIDTH_PATTERN 0x60ul
-00078 #define SE_MIN_PATTERN 0xful
-00079 
-00080 //definitions for stall guard2 current register
-00081 #define STALL_GUARD_FILTER_ENABLED 0x10000ul
-00082 #define STALL_GUARD_TRESHHOLD_VALUE_PATTERN 0x17F00ul
-00083 #define CURRENT_SCALING_PATTERN 0x1Ful
-00084 #define STALL_GUARD_CONFIG_PATTERN 0x17F00ul
-00085 #define STALL_GUARD_VALUE_PATTERN 0x7F00ul
-00086 
-00087 //definitions for the input from the TCM260
-00088 #define STATUS_STALL_GUARD_STATUS 0x1ul
-00089 #define STATUS_OVER_TEMPERATURE_SHUTDOWN 0x2ul
-00090 #define STATUS_OVER_TEMPERATURE_WARNING 0x4ul
-00091 #define STATUS_SHORT_TO_GROUND_A 0x8ul
-00092 #define STATUS_SHORT_TO_GROUND_B 0x10ul
-00093 #define STATUS_OPEN_LOAD_A 0x20ul
-00094 #define STATUS_OPEN_LOAD_B 0x40ul
-00095 #define STATUS_STAND_STILL 0x80ul
-00096 #define READOUT_VALUE_PATTERN 0xFFC00ul
-00097 
-00098 //default values
-00099 #define INITIAL_MICROSTEPPING 0x3ul //32th microstepping
-00100 
-00101 //debuging output
-00102 //#define DEBUG
-00103 
-00104 /*
-00105  * Constructor
-00106  * number_of_steps - the steps per rotation
-00107  * cs_pin - the SPI client select pin
-00108  * dir_pin - the pin where the direction pin is connected
-00109  * step_pin - the pin where the step pin is connected
-00110  */
-00111 TMC26XStepper::TMC26XStepper(int number_of_steps, int cs_pin, int dir_pin, int step_pin, unsigned int current, unsigned int resistor)
-00112 {
-00113         //we are not started yet
-00114         started=false;
-00115     //by default cool step is not enabled
-00116     cool_step_enabled=false;
-00117         
-00118         //save the pins for later use
-00119         this->cs_pin=cs_pin;
-00120         this->dir_pin=dir_pin;
-00121         this->step_pin = step_pin;
-00122     
-00123     //store the current sense resistor value for later use
-00124     this->resistor = resistor;
-00125         
-00126         //initizalize our status values
-00127         this->steps_left = 0;
-00128         this->direction = 0;
-00129         
-00130         //initialize register values
-00131         driver_control_register_value=DRIVER_CONTROL_REGISTER | INITIAL_MICROSTEPPING;
-00132         chopper_config_register=CHOPPER_CONFIG_REGISTER;
-00133         
-00134         //setting the default register values
-00135         driver_control_register_value=DRIVER_CONTROL_REGISTER|INITIAL_MICROSTEPPING;
-00136         microsteps = (1 << INITIAL_MICROSTEPPING);
-00137         chopper_config_register=CHOPPER_CONFIG_REGISTER;
-00138         cool_step_register_value=COOL_STEP_REGISTER;
-00139         stall_guard2_current_register_value=STALL_GUARD2_LOAD_MEASURE_REGISTER;
-00140         driver_configuration_register_value = DRIVER_CONFIG_REGISTER | READ_STALL_GUARD_READING;
-00141 
-00142         //set the current
-00143         setCurrent(current);
-00144         //set to a conservative start value
-00145         setConstantOffTimeChopper(7, 54, 13,12,1);
-00146     //set a nice microstepping value
-00147     setMicrosteps(DEFAULT_MICROSTEPPING_VALUE);
-00148     //save the number of steps
-00149     this->number_of_steps =   number_of_steps;
-00150 }
-00151 
-00152 
-00153 /*
-00154  * start & configure the stepper driver
-00155  * just must be called.
-00156  */
-00157 void TMC26XStepper::start() {
-00158 
-00159 #ifdef DEBUG    
-00160         Serial.println("TMC26X stepper library");
-00161         Serial.print("CS pin: ");
-00162         Serial.println(cs_pin);
-00163         Serial.print("DIR pin: ");
-00164         Serial.println(dir_pin);
-00165         Serial.print("STEP pin: ");
-00166         Serial.println(step_pin);
-00167         Serial.print("current scaling: ");
-00168         Serial.println(current_scaling,DEC);
-00169 #endif
-00170         //set the pins as output & its initial value
-00171         pinMode(step_pin, OUTPUT);     
-00172         pinMode(dir_pin, OUTPUT);     
-00173         pinMode(cs_pin, OUTPUT);     
-00174         digitalWrite(step_pin, LOW);     
-00175         digitalWrite(dir_pin, LOW);     
-00176         digitalWrite(cs_pin, HIGH);   
-00177         
-00178         //configure the SPI interface
-00179     SPI.setBitOrder(MSBFIRST);
-00180         SPI.setClockDivider(SPI_CLOCK_DIV8);
-00181         //todo this does not work reliably - find a way to foolprof set it (e.g. while communicating
-00182         //SPI.setDataMode(SPI_MODE3);
-00183         SPI.begin();
-00184                 
-00185         //set the initial values
-00186         send262(driver_control_register_value); 
-00187         send262(chopper_config_register);
-00188         send262(cool_step_register_value);
-00189         send262(stall_guard2_current_register_value);
-00190         send262(driver_configuration_register_value);
-00191         
-00192         //save that we are in running mode
-00193         started=true;
-00194 }
-00195 
-00196 /*
-00197  Mark the driver as unstarted to be able to start it again
-00198  */
-00199 void TMC26XStepper::un_start() {
-00200     started=false;
-00201 }
-00202 
-00203 
-00204 /*
-00205   Sets the speed in revs per minute
-00206 
-00207 */
-00208 void TMC26XStepper::setSpeed(unsigned int whatSpeed)
-00209 {
-00210   this->speed = whatSpeed;
-00211   this->step_delay = (60UL * 1000UL * 1000UL) / ((unsigned long)this->number_of_steps * (unsigned long)whatSpeed * (unsigned long)this->microsteps);
-00212 #ifdef DEBUG
-00213     Serial.print("Step delay in micros: ");
-00214     Serial.println(this->step_delay);
-00215 #endif
-00216     //update the next step time
-00217     this->next_step_time = this->last_step_time+this->step_delay; 
-00218 
-00219 }
-00220 
-00221 unsigned int TMC26XStepper::getSpeed(void) {
-00222     return this->speed;
-00223 }
-00224 
-00225 /*
-00226   Moves the motor steps_to_move steps.  If the number is negative, 
-00227    the motor moves in the reverse direction.
-00228  */
-00229 char TMC26XStepper::step(int steps_to_move)
-00230 {  
-00231         if (this->steps_left==0) {
-00232                 this->steps_left = abs(steps_to_move);  // how many steps to take
-00233   
-00234                 // determine direction based on whether steps_to_mode is + or -:
-00235                 if (steps_to_move > 0) {
-00236                         this->direction = 1;
-00237                 } else if (steps_to_move < 0) {
-00238                         this->direction = 0;
-00239                 }
-00240                 return 0;
-00241     } else {
-00242         return -1;
-00243     }
-00244 }
-00245 
-00246 char TMC26XStepper::move(void) {
-00247   // decrement the number of steps, moving one step each time:
-00248   if(this->steps_left>0) {
-00249       unsigned long time = micros();  
-00250           // move only if the appropriate delay has passed:
-00251          if (time >= this->next_step_time) {
-00252                 // increment or decrement the step number,
-00253                 // depending on direction:
-00254                 if (this->direction == 1) {
-00255                         digitalWrite(step_pin, HIGH);
-00256         } else { 
-00257                   digitalWrite(dir_pin, HIGH);
-00258                   digitalWrite(step_pin, HIGH);
-00259             }
-00260         // get the timeStamp of when you stepped:
-00261         this->last_step_time = time;
-00262         this->next_step_time = time+this->step_delay; 
-00263         // decrement the steps left:
-00264         steps_left--;
-00265                 //disable the step & dir pins
-00266                 digitalWrite(step_pin, LOW);
-00267                 digitalWrite(dir_pin, LOW);
-00268         }
-00269         return -1;
-00270         }
-00271     return 0;
-00272 }
-00273 
-00274 char TMC26XStepper::isMoving(void) {
-00275         return (this->steps_left>0);
-00276 }
-00277 
-00278 unsigned int TMC26XStepper::getStepsLeft(void) {
-00279         return this->steps_left;
-00280 }
-00281 
-00282 char TMC26XStepper::stop(void) {
-00283         //note to self if the motor is currently moving
-00284         char state = isMoving();
-00285         //stop the motor
-00286         this->steps_left = 0;
-00287         this->direction = 0;
-00288         //return if it was moving
-00289         return state;
-00290 }
-00291 
-00292 void TMC26XStepper::setCurrent(unsigned int current) {
-00293     unsigned char current_scaling = 0;
-00294         //calculate the current scaling from the max current setting (in mA)
-00295         double mASetting = (double)current;
-00296     double resistor_value = (double) this->resistor;
-00297         // remove vesense flag
-00298         this->driver_configuration_register_value &= ~(VSENSE); 
-00299         //this is derrived from I=(cs+1)/32*(Vsense/Rsense)
-00300     //leading to cs = CS = 32*R*I/V (with V = 0,31V oder 0,165V  and I = 1000*current)
-00301         //with Rsense=0,15
-00302         //for vsense = 0,310V (VSENSE not set)
-00303         //or vsense = 0,165V (VSENSE set)
-00304         current_scaling = (byte)((resistor_value*mASetting*32.0/(0.31*1000.0*1000.0))-0.5); //theoretically - 1.0 for better rounding it is 0.5
-00305         
-00306         //check if the current scalingis too low
-00307         if (current_scaling<16) {
-00308         //set the csense bit to get a use half the sense voltage (to support lower motor currents)
-00309                 this->driver_configuration_register_value |= VSENSE;
-00310         //and recalculate the current setting
-00311         current_scaling = (byte)((resistor_value*mASetting*32.0/(0.165*1000.0*1000.0))-0.5); //theoretically - 1.0 for better rounding it is 0.5
-00312 #ifdef DEBUG
-00313                 Serial.print("CS (Vsense=1): ");
-00314                 Serial.println(current_scaling);
-00315         } else {
-00316         Serial.print("CS: ");
-00317         Serial.println(current_scaling);
-00318 #endif
-00319     }
-00320 
-00321         //do some sanity checks
-00322         if (current_scaling>31) {
-00323                 current_scaling=31;
-00324         }
-00325         //delete the old value
-00326         stall_guard2_current_register_value &= ~(CURRENT_SCALING_PATTERN);
-00327         //set the new current scaling
-00328         stall_guard2_current_register_value |= current_scaling;
-00329         //if started we directly send it to the motor
-00330         if (started) {
-00331         send262(driver_configuration_register_value);
-00332                 send262(stall_guard2_current_register_value);
-00333         }
-00334 }
-00335 
-00336 unsigned int TMC26XStepper::getCurrent(void) {
-00337     //we calculate the current according to the datasheet to be on the safe side
-00338     //this is not the fastest but the most accurate and illustrative way
-00339     double result = (double)(stall_guard2_current_register_value & CURRENT_SCALING_PATTERN);
-00340     double resistor_value = (double)this->resistor;
-00341     double voltage = (driver_configuration_register_value & VSENSE)? 0.165:0.31;
-00342     result = (result+1.0)/32.0*voltage/resistor_value*1000.0*1000.0;
-00343     return (unsigned int)result;
-00344 }
-00345 
-00346 void TMC26XStepper::setStallGuardThreshold(char stall_guard_threshold, char stall_guard_filter_enabled) {
-00347         if (stall_guard_threshold<-64) {
-00348                 stall_guard_threshold = -64;
-00349         //We just have 5 bits   
-00350         } else if (stall_guard_threshold > 63) {
-00351                 stall_guard_threshold = 63;
-00352         }
-00353         //add trim down to 7 bits
-00354         stall_guard_threshold &=0x7f;
-00355         //delete old stall guard settings
-00356         stall_guard2_current_register_value &= ~(STALL_GUARD_CONFIG_PATTERN);
-00357         if (stall_guard_filter_enabled) {
-00358                 stall_guard2_current_register_value |= STALL_GUARD_FILTER_ENABLED;
-00359         }
-00360         //Set the new stall guard threshold
-00361         stall_guard2_current_register_value |= (((unsigned long)stall_guard_threshold << 8) & STALL_GUARD_CONFIG_PATTERN);
-00362         //if started we directly send it to the motor
-00363         if (started) {
-00364                 send262(stall_guard2_current_register_value);
-00365         }
-00366 }
-00367 
-00368 char TMC26XStepper::getStallGuardThreshold(void) {
-00369     unsigned long stall_guard_threshold = stall_guard2_current_register_value & STALL_GUARD_VALUE_PATTERN;
-00370     //shift it down to bit 0
-00371     stall_guard_threshold >>=8;
-00372     //convert the value to an int to correctly handle the negative numbers
-00373     char result = stall_guard_threshold;
-00374     //check if it is negative and fill it up with leading 1 for proper negative number representation
-00375     if (result & _BV(6)) {
-00376         result |= 0xC0;
-00377     }
-00378     return result;
-00379 }
-00380 
-00381 char TMC26XStepper::getStallGuardFilter(void) {
-00382     if (stall_guard2_current_register_value & STALL_GUARD_FILTER_ENABLED) {
-00383         return -1;
-00384     } else {
-00385         return 0;
-00386     }
-00387 }
-00388 /*
-00389  * Set the number of microsteps per step.
-00390  * 0,2,4,8,16,32,64,128,256 is supported
-00391  * any value in between will be mapped to the next smaller value
-00392  * 0 and 1 set the motor in full step mode
-00393  */
-00394 void TMC26XStepper::setMicrosteps(int number_of_steps) {
-00395         long setting_pattern;
-00396         //poor mans log
-00397         if (number_of_steps>=256) {
-00398                 setting_pattern=0;
-00399                 microsteps=256;
-00400         } else if (number_of_steps>=128) {
-00401                 setting_pattern=1;
-00402                 microsteps=128;
-00403         } else if (number_of_steps>=64) {
-00404                 setting_pattern=2;
-00405                 microsteps=64;
-00406         } else if (number_of_steps>=32) {
-00407                 setting_pattern=3;
-00408                 microsteps=32;
-00409         } else if (number_of_steps>=16) {
-00410                 setting_pattern=4;
-00411                 microsteps=16;
-00412         } else if (number_of_steps>=8) {
-00413                 setting_pattern=5;
-00414                 microsteps=8;
-00415         } else if (number_of_steps>=4) {
-00416                 setting_pattern=6;
-00417                 microsteps=4;
-00418         } else if (number_of_steps>=2) {
-00419                 setting_pattern=7;
-00420                 microsteps=2;
-00421     //1 and 0 lead to full step
-00422         } else if (number_of_steps<=1) {
-00423                 setting_pattern=8;
-00424                 microsteps=1;
-00425         }
-00426 #ifdef DEBUG
-00427         Serial.print("Microstepping: ");
-00428         Serial.println(microsteps);
-00429 #endif
-00430         //delete the old value
-00431         this->driver_control_register_value &=0xFFFF0ul;
-00432         //set the new value
-00433         this->driver_control_register_value |=setting_pattern;
-00434         
-00435         //if started we directly send it to the motor
-00436         if (started) {
-00437                 send262(driver_control_register_value);
-00438         }
-00439     //recalculate the stepping delay by simply setting the speed again
-00440     this->setSpeed(this->speed);
-00441 }
-00442 
-00443 /*
-00444  * returns the effective number of microsteps at the moment
-00445  */
-00446 int TMC26XStepper::getMicrosteps(void) {
-00447         return microsteps;
-00448 }
-00449 
-00450 /*
-00451  * constant_off_time: The off time setting controls the minimum chopper frequency. 
-00452  * For most applications an off time within     the range of 5μs to 20μs will fit.
-00453  *              2...15: off time setting
-00454  *
-00455  * blank_time: Selects the comparator blank time. This time needs to safely cover the switching event and the
-00456  * duration of the ringing on the sense resistor. For
-00457  *              0: min. setting 3: max. setting
-00458  *
-00459  * fast_decay_time_setting: Fast decay time setting. With CHM=1, these bits control the portion of fast decay for each chopper cycle.
-00460  *              0: slow decay only
-00461  *              1...15: duration of fast decay phase
-00462  *
-00463  * sine_wave_offset: Sine wave offset. With CHM=1, these bits control the sine wave offset. 
-00464  * A positive offset corrects for zero crossing error.
-00465  *              -3..-1: negative offset 0: no offset 1...12: positive offset
-00466  *
-00467  * use_current_comparator: Selects usage of the current comparator for termination of the fast decay cycle. 
-00468  * If current comparator is enabled, it terminates the fast decay cycle in case the current 
-00469  * reaches a higher negative value than the actual positive value.
-00470  *              1: enable comparator termination of fast decay cycle
-00471  *              0: end by time only
-00472  */
-00473 void TMC26XStepper::setConstantOffTimeChopper(char constant_off_time, char blank_time, char fast_decay_time_setting, char sine_wave_offset, unsigned char use_current_comparator) {
-00474         //perform some sanity checks
-00475         if (constant_off_time<2) {
-00476                 constant_off_time=2;
-00477         } else if (constant_off_time>15) {
-00478                 constant_off_time=15;
-00479         }
-00480     //save the constant off time
-00481     this->constant_off_time = constant_off_time;
-00482         char blank_value;
-00483         //calculate the value acc to the clock cycles
-00484         if (blank_time>=54) {
-00485                 blank_value=3;
-00486         } else if (blank_time>=36) {
-00487                 blank_value=2;
-00488         } else if (blank_time>=24) {
-00489                 blank_value=1;
-00490         } else {
-00491                 blank_value=0;
-00492         }
-00493         if (fast_decay_time_setting<0) {
-00494                 fast_decay_time_setting=0;
-00495         } else if (fast_decay_time_setting>15) {
-00496                 fast_decay_time_setting=15;
-00497         }
-00498         if (sine_wave_offset < -3) {
-00499                 sine_wave_offset = -3;
-00500         } else if (sine_wave_offset>12) {
-00501                 sine_wave_offset = 12;
-00502         }
-00503         //shift the sine_wave_offset
-00504         sine_wave_offset +=3;
-00505         
-00506         //calculate the register setting
-00507         //first of all delete all the values for this
-00508         chopper_config_register &= ~((1<<12) | BLANK_TIMING_PATTERN | HYSTERESIS_DECREMENT_PATTERN | HYSTERESIS_LOW_VALUE_PATTERN | HYSTERESIS_START_VALUE_PATTERN | T_OFF_TIMING_PATERN);
-00509         //set the constant off pattern
-00510         chopper_config_register |= CHOPPER_MODE_T_OFF_FAST_DECAY;
-00511         //set the blank timing value
-00512         chopper_config_register |= ((unsigned long)blank_value) << BLANK_TIMING_SHIFT;
-00513         //setting the constant off time
-00514         chopper_config_register |= constant_off_time;
-00515         //set the fast decay time
-00516         //set msb
-00517         chopper_config_register |= (((unsigned long)(fast_decay_time_setting & 0x8))<<HYSTERESIS_DECREMENT_SHIFT);
-00518         //other bits
-00519         chopper_config_register |= (((unsigned long)(fast_decay_time_setting & 0x7))<<HYSTERESIS_START_VALUE_SHIFT);
-00520         //set the sine wave offset
-00521         chopper_config_register |= (unsigned long)sine_wave_offset << HYSTERESIS_LOW_SHIFT;
-00522         //using the current comparator?
-00523         if (!use_current_comparator) {
-00524                 chopper_config_register |= (1<<12);
-00525         }
-00526         //if started we directly send it to the motor
-00527         if (started) {
-00528                 send262(driver_control_register_value);
-00529         }       
-00530 }
-00531 
-00532 /*
-00533  * constant_off_time: The off time setting controls the minimum chopper frequency. 
-00534  * For most applications an off time within     the range of 5μs to 20μs will fit.
-00535  *              2...15: off time setting
-00536  *
-00537  * blank_time: Selects the comparator blank time. This time needs to safely cover the switching event and the
-00538  * duration of the ringing on the sense resistor. For
-00539  *              0: min. setting 3: max. setting
-00540  *
-00541  * hysteresis_start: Hysteresis start setting. Please remark, that this value is an offset to the hysteresis end value HEND.
-00542  *              1...8
-00543  *
-00544  * hysteresis_end: Hysteresis end setting. Sets the hysteresis end value after a number of decrements. Decrement interval time is controlled by HDEC. 
-00545  * The sum HSTRT+HEND must be <16. At a current setting CS of max. 30 (amplitude reduced to 240), the sum is not limited.
-00546  *              -3..-1: negative HEND 0: zero HEND 1...12: positive HEND
-00547  *
-00548  * hysteresis_decrement: Hysteresis decrement setting. This setting determines the slope of the hysteresis during on time and during fast decay time.
-00549  *              0: fast decrement 3: very slow decrement
-00550  */
-00551 
-00552 void TMC26XStepper::setSpreadCycleChopper(char constant_off_time, char blank_time, char hysteresis_start, char hysteresis_end, char hysteresis_decrement) {
-00553         //perform some sanity checks
-00554         if (constant_off_time<2) {
-00555                 constant_off_time=2;
-00556         } else if (constant_off_time>15) {
-00557                 constant_off_time=15;
-00558         }
-00559     //save the constant off time
-00560     this->constant_off_time = constant_off_time;
-00561         char blank_value;
-00562         //calculate the value acc to the clock cycles
-00563         if (blank_time>=54) {
-00564                 blank_value=3;
-00565         } else if (blank_time>=36) {
-00566                 blank_value=2;
-00567         } else if (blank_time>=24) {
-00568                 blank_value=1;
-00569         } else {
-00570                 blank_value=0;
-00571         }
-00572         if (hysteresis_start<1) {
-00573                 hysteresis_start=1;
-00574         } else if (hysteresis_start>8) {
-00575                 hysteresis_start=8;
-00576         }
-00577         hysteresis_start--;
-00578 
-00579         if (hysteresis_end < -3) {
-00580                 hysteresis_end = -3;
-00581         } else if (hysteresis_end>12) {
-00582                 hysteresis_end = 12;
-00583         }
-00584         //shift the hysteresis_end
-00585         hysteresis_end +=3;
-00586 
-00587         if (hysteresis_decrement<0) {
-00588                 hysteresis_decrement=0;
-00589         } else if (hysteresis_decrement>3) {
-00590                 hysteresis_decrement=3;
-00591         }
-00592         
-00593         //first of all delete all the values for this
-00594         chopper_config_register &= ~(CHOPPER_MODE_T_OFF_FAST_DECAY | BLANK_TIMING_PATTERN | HYSTERESIS_DECREMENT_PATTERN | HYSTERESIS_LOW_VALUE_PATTERN | HYSTERESIS_START_VALUE_PATTERN | T_OFF_TIMING_PATERN);
-00595 
-00596         //set the blank timing value
-00597         chopper_config_register |= ((unsigned long)blank_value) << BLANK_TIMING_SHIFT;
-00598         //setting the constant off time
-00599         chopper_config_register |= constant_off_time;
-00600         //set the hysteresis_start
-00601         chopper_config_register |= ((unsigned long)hysteresis_start) << HYSTERESIS_START_VALUE_SHIFT;
-00602         //set the hysteresis end
-00603         chopper_config_register |= ((unsigned long)hysteresis_end) << HYSTERESIS_LOW_SHIFT;
-00604         //set the hystereis decrement
-00605         chopper_config_register |= ((unsigned long)blank_value) << BLANK_TIMING_SHIFT;
-00606         //if started we directly send it to the motor
-00607         if (started) {
-00608                 send262(driver_control_register_value);
-00609         }       
-00610 }
-00611 
-00612 /*
-00613  * In a constant off time chopper scheme both coil choppers run freely, i.e. are not synchronized. 
-00614  * The frequency of each chopper mainly depends on the coil current and the position dependant motor coil inductivity, thus it depends on the microstep position. 
-00615  * With some motors a slightly audible beat can occur between the chopper frequencies, especially when they are near to each other. This typically occurs at a 
-00616  * few microstep positions within each quarter wave. This effect normally is not audible when compared to mechanical noise generated by ball bearings, etc. 
-00617  * Further factors which can cause a similar effect are a poor layout of sense resistor GND connection.
-00618  * Hint: A common factor, which can cause motor noise, is a bad PCB layout causing coupling of both sense resistor voltages 
-00619  * (please refer to sense resistor layout hint in chapter 8.1).
-00620  * In order to minimize the effect of a beat between both chopper frequencies, an internal random generator is provided. 
-00621  * It modulates the slow decay time setting when switched on by the RNDTF bit. The RNDTF feature further spreads the chopper spectrum, 
-00622  * reducing electromagnetic emission on single frequencies.
-00623  */
-00624 void TMC26XStepper::setRandomOffTime(char value) {
-00625         if (value) {
-00626                 chopper_config_register |= RANDOM_TOFF_TIME;
-00627         } else {
-00628                 chopper_config_register &= ~(RANDOM_TOFF_TIME);
-00629         }
-00630         //if started we directly send it to the motor
-00631         if (started) {
-00632                 send262(driver_control_register_value);
-00633         }       
-00634 }       
-00635 
-00636 void TMC26XStepper::setCoolStepConfiguration(unsigned int lower_SG_threshold, unsigned int SG_hysteresis, unsigned char current_decrement_step_size,
-00637                               unsigned char current_increment_step_size, unsigned char lower_current_limit) {
-00638     //sanitize the input values
-00639     if (lower_SG_threshold>480) {
-00640         lower_SG_threshold = 480;
-00641     }
-00642     //divide by 32
-00643     lower_SG_threshold >>=5;
-00644     if (SG_hysteresis>480) {
-00645         SG_hysteresis=480;
-00646     }
-00647     //divide by 32
-00648     SG_hysteresis >>=5;
-00649     if (current_decrement_step_size>3) {
-00650         current_decrement_step_size=3;
-00651     }
-00652     if (current_increment_step_size>3) {
-00653         current_increment_step_size=3;
-00654     }
-00655     if (lower_current_limit>1) {
-00656         lower_current_limit=1;
-00657     }
-00658     //store the lower level in order to enable/disable the cool step
-00659     this->cool_step_lower_threshold=lower_SG_threshold;
-00660     //if cool step is not enabled we delete the lower value to keep it disabled
-00661     if (!this->cool_step_enabled) {
-00662         lower_SG_threshold=0;
-00663     }
-00664     //the good news is that we can start with a complete new cool step register value
-00665     //and simply set the values in the register
-00666     cool_step_register_value = ((unsigned long)lower_SG_threshold) | (((unsigned long)SG_hysteresis)<<8) | (((unsigned long)current_decrement_step_size)<<5)
-00667         | (((unsigned long)current_increment_step_size)<<13) | (((unsigned long)lower_current_limit)<<15)
-00668         //and of course we have to include the signature of the register
-00669         | COOL_STEP_REGISTER;
-00670     //Serial.println(cool_step_register_value,HEX);
-00671     if (started) {
-00672         send262(cool_step_register_value);
-00673     }
-00674 }
-00675 
-00676 void TMC26XStepper::setCoolStepEnabled(boolean enabled) {
-00677     //simply delete the lower limit to disable the cool step
-00678     cool_step_register_value &= ~SE_MIN_PATTERN;
-00679     //and set it to the proper value if cool step is to be enabled
-00680     if (enabled) {
-00681         cool_step_register_value |=this->cool_step_lower_threshold;
-00682     }
-00683     //and save the enabled status
-00684     this->cool_step_enabled = enabled;
-00685     //save the register value
-00686     if (started) {
-00687         send262(cool_step_register_value);
-00688     }
-00689 }
-00690 
-00691 boolean TMC26XStepper::isCoolStepEnabled(void) {
-00692     return this->cool_step_enabled;
-00693 }
-00694 
-00695 unsigned int TMC26XStepper::getCoolStepLowerSgThreshold() {
-00696     //we return our internally stored value - in order to provide the correct setting even if cool step is not enabled
-00697     return this->cool_step_lower_threshold<<5;
-00698 }
-00699 
-00700 unsigned int TMC26XStepper::getCoolStepUpperSgThreshold() {
-00701     return (unsigned char)((cool_step_register_value & SE_MAX_PATTERN)>>8)<<5;
-00702 }
-00703 
-00704 unsigned char TMC26XStepper::getCoolStepCurrentIncrementSize() {
-00705     return (unsigned char)((cool_step_register_value & CURRENT_DOWN_STEP_SPEED_PATTERN)>>13);
-00706 }
-00707 
-00708 unsigned char TMC26XStepper::getCoolStepNumberOfSGReadings() {
-00709     return (unsigned char)((cool_step_register_value & SE_CURRENT_STEP_WIDTH_PATTERN)>>5);
-00710 }
-00711 
-00712 unsigned char TMC26XStepper::getCoolStepLowerCurrentLimit() {
-00713     return (unsigned char)((cool_step_register_value & MINIMUM_CURRENT_FOURTH)>>15);
-00714 }
-00715 
-00716 void TMC26XStepper::setEnabled(boolean enabled) {
-00717     //delete the t_off in the chopper config to get sure
-00718     chopper_config_register &= ~(T_OFF_PATTERN);
-00719     if (enabled) {
-00720         //and set the t_off time
-00721         chopper_config_register |= this->constant_off_time;
-00722     }
-00723     //if not enabled we don't have to do anything since we already delete t_off from the register
-00724         if (started) {
-00725                 send262(chopper_config_register);
-00726         }       
-00727 }
-00728 
-00729 boolean TMC26XStepper::isEnabled() {
-00730     if (chopper_config_register & T_OFF_PATTERN) {
-00731         return true;
-00732     } else {
-00733         return false;
-00734     }
-00735 }
-00736 
-00737 /*
-00738  * reads a value from the TMC26X status register. The value is not obtained directly but can then 
-00739  * be read by the various status routines.
-00740  *
-00741  */
-00742 void TMC26XStepper::readStatus(char read_value) {
-00743     unsigned long old_driver_configuration_register_value = driver_configuration_register_value;
-00744         //reset the readout configuration
-00745         driver_configuration_register_value &= ~(READ_SELECTION_PATTERN);
-00746         //this now equals TMC26X_READOUT_POSITION - so we just have to check the other two options
-00747         if (read_value == TMC26X_READOUT_STALLGUARD) {
-00748                 driver_configuration_register_value |= READ_STALL_GUARD_READING;
-00749         } else if (read_value == TMC26X_READOUT_CURRENT) {
-00750                 driver_configuration_register_value |= READ_STALL_GUARD_AND_COOL_STEP;
-00751         }
-00752         //all other cases are ignored to prevent funny values
-00753     //check if the readout is configured for the value we are interested in
-00754     if (driver_configuration_register_value!=old_driver_configuration_register_value) {
-00755             //because then we need to write the value twice - one time for configuring, second time to get the value, see below
-00756             send262(driver_configuration_register_value);
-00757         }
-00758     //write the configuration to get the last status    
-00759         send262(driver_configuration_register_value);
-00760 }
-00761 
-00762 int TMC26XStepper::getMotorPosition(void) {
-00763         //we read it out even if we are not started yet - perhaps it is useful information for somebody
-00764         readStatus(TMC26X_READOUT_POSITION);
-00765     return getReadoutValue();
-00766 }
-00767 
-00768 //reads the stall guard setting from last status
-00769 //returns -1 if stallguard information is not present
-00770 int TMC26XStepper::getCurrentStallGuardReading(void) {
-00771         //if we don't yet started there cannot be a stall guard value
-00772         if (!started) {
-00773                 return -1;
-00774         }
-00775         //not time optimal, but solution optiomal:
-00776         //first read out the stall guard value
-00777         readStatus(TMC26X_READOUT_STALLGUARD);
-00778         return getReadoutValue();
-00779 }
-00780 
-00781 unsigned char TMC26XStepper::getCurrentCSReading(void) {
-00782         //if we don't yet started there cannot be a stall guard value
-00783         if (!started) {
-00784                 return 0;
-00785         }
-00786         //not time optimal, but solution optiomal:
-00787         //first read out the stall guard value
-00788         readStatus(TMC26X_READOUT_CURRENT);
-00789         return (getReadoutValue() & 0x1f);
-00790 }
-00791 
-00792 unsigned int TMC26XStepper::getCurrentCurrent(void) {
-00793     double result = (double)getCurrentCSReading();
-00794     double resistor_value = (double)this->resistor;
-00795     double voltage = (driver_configuration_register_value & VSENSE)? 0.165:0.31;
-00796     result = (result+1.0)/32.0*voltage/resistor_value*1000.0*1000.0;
-00797     return (unsigned int)result;
-00798 }
-00799 
-00800 /*
-00801  return true if the stallguard threshold has been reached
-00802 */
-00803 boolean TMC26XStepper::isStallGuardOverThreshold(void) {
-00804         if (!this->started) {
-00805                 return false;
-00806         }
-00807         return (driver_status_result & STATUS_STALL_GUARD_STATUS);
-00808 }
-00809 
-00810 /*
-00811  returns if there is any over temperature condition:
-00812  OVER_TEMPERATURE_PREWARING if pre warning level has been reached
-00813  OVER_TEMPERATURE_SHUTDOWN if the temperature is so hot that the driver is shut down
-00814  Any of those levels are not too good.
-00815 */
-00816 char TMC26XStepper::getOverTemperature(void) {
-00817         if (!this->started) {
-00818                 return 0;
-00819         }
-00820         if (driver_status_result & STATUS_OVER_TEMPERATURE_SHUTDOWN) {
-00821                 return TMC26X_OVERTEMPERATURE_SHUTDOWN;
-00822         }
-00823         if (driver_status_result & STATUS_OVER_TEMPERATURE_WARNING) {
-00824                 return TMC26X_OVERTEMPERATURE_PREWARING;
-00825         }
-00826         return 0;
-00827 }
-00828 
-00829 //is motor channel A shorted to ground
-00830 boolean TMC26XStepper::isShortToGroundA(void) {
-00831         if (!this->started) {
-00832                 return false;
-00833         }
-00834         return (driver_status_result & STATUS_SHORT_TO_GROUND_A);
-00835 }
-00836 
-00837 //is motor channel B shorted to ground
-00838 boolean TMC26XStepper::isShortToGroundB(void) {
-00839         if (!this->started) {
-00840                 return false;
-00841         }
-00842         return (driver_status_result & STATUS_SHORT_TO_GROUND_B);
-00843 }
-00844 
-00845 //is motor channel A connected
-00846 boolean TMC26XStepper::isOpenLoadA(void) {
-00847         if (!this->started) {
-00848                 return false;
-00849         }
-00850         return (driver_status_result & STATUS_OPEN_LOAD_A);
-00851 }
-00852 
-00853 //is motor channel B connected
-00854 boolean TMC26XStepper::isOpenLoadB(void) {
-00855         if (!this->started) {
-00856                 return false;
-00857         }
-00858         return (driver_status_result & STATUS_OPEN_LOAD_B);
-00859 }
-00860 
-00861 //is chopper inactive since 2^20 clock cycles - defaults to ~0,08s
-00862 boolean TMC26XStepper::isStandStill(void) {
-00863         if (!this->started) {
-00864                 return false;
-00865         }
-00866         return (driver_status_result & STATUS_STAND_STILL);
-00867 }
-00868 
-00869 //is chopper inactive since 2^20 clock cycles - defaults to ~0,08s
-00870 boolean TMC26XStepper::isStallGuardReached(void) {
-00871         if (!this->started) {
-00872                 return false;
-00873         }
-00874         return (driver_status_result & STATUS_STALL_GUARD_STATUS);
-00875 }
-00876 
-00877 //reads the stall guard setting from last status
-00878 //returns -1 if stallguard inforamtion is not present
-00879 int TMC26XStepper::getReadoutValue(void) {
-00880         return (int)(driver_status_result >> 10);
-00881 }
-00882 
-00883 int TMC26XStepper::getResistor() {
-00884     return this->resistor;
-00885 }
-00886 
-00887 boolean TMC26XStepper::isCurrentScalingHalfed() {
-00888     if (this->driver_configuration_register_value & VSENSE) {
-00889         return true;
-00890     } else {
-00891         return false;
-00892     }
-00893 }
-00894 /*
-00895  version() returns the version of the library:
-00896  */
-00897 int TMC26XStepper::version(void)
-00898 {
-00899         return 1;
-00900 }
-00901 
-00902 void TMC26XStepper::debugLastStatus() {
-00903 #ifdef DEBUG    
-00904 if (this->started) {
-00905                 if (this->getOverTemperature()&TMC26X_OVERTEMPERATURE_PREWARING) {
-00906                         Serial.println("WARNING: Overtemperature Prewarning!");
-00907                 } else if (this->getOverTemperature()&TMC26X_OVERTEMPERATURE_SHUTDOWN) {
-00908                         Serial.println("ERROR: Overtemperature Shutdown!");
-00909                 }
-00910                 if (this->isShortToGroundA()) {
-00911                         Serial.println("ERROR: SHORT to ground on channel A!");
-00912                 }
-00913                 if (this->isShortToGroundB()) {
-00914                         Serial.println("ERROR: SHORT to ground on channel A!");
-00915                 }
-00916                 if (this->isOpenLoadA()) {
-00917                         Serial.println("ERROR: Channel A seems to be unconnected!");
-00918                 }
-00919                 if (this->isOpenLoadB()) {
-00920                         Serial.println("ERROR: Channel B seems to be unconnected!");
-00921                 }
-00922                 if (this->isStallGuardReached()) {      
-00923                         Serial.println("INFO: Stall Guard level reached!");
-00924                 }
-00925                 if (this->isStandStill()) {
-00926                         Serial.println("INFO: Motor is standing still.");
-00927                 }
-00928                 unsigned long readout_config = driver_configuration_register_value & READ_SELECTION_PATTERN;
-00929                 int value = getReadoutValue();
-00930                 if (readout_config == READ_MICROSTEP_POSTION) {
-00931                         Serial.print("Microstep postion phase A: ");
-00932                         Serial.println(value);
-00933                 } else if (readout_config == READ_STALL_GUARD_READING) {
-00934                         Serial.print("Stall Guard value:");
-00935                         Serial.println(value);
-00936                 } else if (readout_config == READ_STALL_GUARD_AND_COOL_STEP) {
-00937                         int stallGuard = value & 0xf;
-00938                         int current = value & 0x1F0;
-00939                         Serial.print("Approx Stall Guard: ");
-00940                         Serial.println(stallGuard);
-00941                         Serial.print("Current level");
-00942                         Serial.println(current);
-00943                 }
-00944         }
-00945 #endif
-00946 }
-00947 
-00948 /*
-00949  * send register settings to the stepper driver via SPI
-00950  * returns the current status
-00951  */
-00952 inline void TMC26XStepper::send262(unsigned long datagram) {
-00953         unsigned long i_datagram;
-00954     
-00955     //preserver the previous spi mode
-00956     unsigned char oldMode =  SPCR & SPI_MODE_MASK;
-00957         
-00958     //if the mode is not correct set it to mode 3
-00959     if (oldMode != SPI_MODE3) {
-00960         SPI.setDataMode(SPI_MODE3);
-00961     }
-00962         
-00963         //select the TMC driver
-00964         digitalWrite(cs_pin,LOW);
-00965 
-00966         //ensure that only valid bist are set (0-19)
-00967         //datagram &=REGISTER_BIT_PATTERN;
-00968         
-00969 #ifdef DEBUG
-00970         Serial.print("Sending ");
-00971         Serial.println(datagram,HEX);
-00972 #endif
-00973 
-00974         //write/read the values
-00975         i_datagram = SPI.transfer((datagram >> 16) & 0xff);
-00976         i_datagram <<= 8;
-00977         i_datagram |= SPI.transfer((datagram >>  8) & 0xff);
-00978         i_datagram <<= 8;
-00979         i_datagram |= SPI.transfer((datagram) & 0xff);
-00980         i_datagram >>= 4;
-00981         
-00982 #ifdef DEBUG
-00983         Serial.print("Received ");
-00984         Serial.println(i_datagram,HEX);
-00985         debugLastStatus();
-00986 #endif
-00987         //deselect the TMC chip
-00988         digitalWrite(cs_pin,HIGH); 
-00989     
-00990     //restore the previous SPI mode if neccessary
-00991     //if the mode is not correct set it to mode 3
-00992     if (oldMode != SPI_MODE3) {
-00993         SPI.setDataMode(oldMode);
-00994     }
-00995 
-00996         
-00997         //store the datagram as status result
-00998         driver_status_result = i_datagram;
-00999 }
-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8h.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8h.html deleted file mode 100644 index 34fda0a433..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8h.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: TMC26XStepper.h File Reference - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - -
-
- -
-
TMC26XStepper.h File Reference
-
-
- -

Go to the source code of this file.

- - - - - - - - - - - - - - -

-Classes

class  TMC26XStepper
 Class representing a TMC26X stepper driver. More...

-Defines

#define TMC26X_OVERTEMPERATURE_PREWARING   1
 return value for TMC26XStepper.getOverTemperature() if there is a overtemperature situation in the TMC chip
#define TMC26X_OVERTEMPERATURE_SHUTDOWN   2
 return value for TMC26XStepper.getOverTemperature() if there is a overtemperature shutdown in the TMC chip
#define TMC26X_READOUT_POSITION   0
#define TMC26X_READOUT_STALLGUARD   1
#define TMC26X_READOUT_CURRENT   3
#define COOL_STEP_HALF_CS_LIMIT   0
#define COOL_STEP_QUARTDER_CS_LIMIT   1
-

Define Documentation

- -
-
- - - - -
#define COOL_STEP_HALF_CS_LIMIT   0
-
-
-

Define to set the minimum current for CoolStep operation to 1/2 of the selected CS minium.

-
See also:
setCoolStepConfiguration()
- -

Definition at line 70 of file TMC26XStepper.h.

- -
-
- -
-
- - - - -
#define COOL_STEP_QUARTDER_CS_LIMIT   1
-
-
-

Define to set the minimum current for CoolStep operation to 1/4 of the selected CS minium.

-
See also:
setCoolStepConfiguration()
- -

Definition at line 75 of file TMC26XStepper.h.

- -
-
- -
-
- - - - -
#define TMC26X_OVERTEMPERATURE_PREWARING   1
-
-
- -

return value for TMC26XStepper.getOverTemperature() if there is a overtemperature situation in the TMC chip

-

This warning indicates that the TCM chip is too warm. It is still working but some parameters may be inferior. You should do something against it.

- -

Definition at line 39 of file TMC26XStepper.h.

- -
-
- -
-
- - - - -
#define TMC26X_OVERTEMPERATURE_SHUTDOWN   2
-
-
- -

return value for TMC26XStepper.getOverTemperature() if there is a overtemperature shutdown in the TMC chip

-

This warning indicates that the TCM chip is too warm to operate and has shut down to prevent damage. It will stop working until it cools down again. If you encouter this situation you must do something against it. Like reducing the current or improving the PCB layout and/or heat management.

- -

Definition at line 47 of file TMC26XStepper.h.

- -
-
- -
-
- - - - -
#define TMC26X_READOUT_CURRENT   3
-
-
-

Selects to read out the current current setting (acc. to CoolStep) and the upper bits of the StallGuard value from the motor.

-
See also:
readStatus(), setCurrent()
- -

Definition at line 64 of file TMC26XStepper.h.

- -
-
- -
-
- - - - -
#define TMC26X_READOUT_POSITION   0
-
-
-

Selects to readout the microstep position from the motor.

-
See also:
readStatus()
- -

Definition at line 54 of file TMC26XStepper.h.

- -
-
- -
-
- - - - -
#define TMC26X_READOUT_STALLGUARD   1
-
-
-

Selects to read out the StallGuard value of the motor.

-
See also:
readStatus()
- -

Definition at line 59 of file TMC26XStepper.h.

- -
-
-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8h_source.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8h_source.html deleted file mode 100644 index 521b53af71..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/_t_m_c26_x_stepper_8h_source.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: TMC26XStepper.h Source File - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - -
-
-
-
TMC26XStepper.h
-
-
-Go to the documentation of this file.
00001 /*
-00002  TMC26XStepper.cpp - - TMC26X Stepper library for Wiring/Arduino - Version 0.1
-00003  
-00004  based on the stepper library by Tom Igoe, et. al.
-00005 
-00006  Copyright (c) 2011, Interactive Matter, Marcus Nowotny
-00007  
-00008  Permission is hereby granted, free of charge, to any person obtaining a copy
-00009  of this software and associated documentation files (the "Software"), to deal
-00010  in the Software without restriction, including without limitation the rights
-00011  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-00012  copies of the Software, and to permit persons to whom the Software is
-00013  furnished to do so, subject to the following conditions:
-00014  
-00015  The above copyright notice and this permission notice shall be included in
-00016  all copies or substantial portions of the Software.
-00017  
-00018  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-00019  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-00020  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-00021  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-00022  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-00023  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-00024  THE SOFTWARE.
-00025 
-00026  */
-00027 
-00028 
-00029 // ensure this library description is only included once
-00030 #ifndef TMC26XStepper_h
-00031 #define TMC26XStepper_h
-00032 
-00034 
-00039 #define TMC26X_OVERTEMPERATURE_PREWARING 1
-00040 
-00041 
-00047 #define TMC26X_OVERTEMPERATURE_SHUTDOWN 2
-00048 
-00049 //which values can be read out
-00054 #define TMC26X_READOUT_POSITION 0
-00055 
-00059 #define TMC26X_READOUT_STALLGUARD 1
-00060 
-00064 #define TMC26X_READOUT_CURRENT 3
-00065 
-00070 #define COOL_STEP_HALF_CS_LIMIT 0
-00071 
-00075 #define COOL_STEP_QUARTDER_CS_LIMIT 1
-00076 
-00101 class TMC26XStepper {
-00102   public:
-00124         TMC26XStepper(int number_of_steps, int cs_pin, int dir_pin, int step_pin, unsigned int current, unsigned int resistor=150);
-00125         
-00133         void start();
-00134     
-00145         void un_start();
-00146 
-00147 
-00152     void setSpeed(unsigned int whatSpeed);
-00153     
-00158     unsigned int getSpeed(void);
-00159 
-00168         void setMicrosteps(int number_of_steps);
-00169     
-00178         int getMicrosteps(void);
-00179 
-00195     char step(int number_of_steps);
-00196     
-00215     char move(void);
-00216 
-00224     char isMoving(void);
-00225     
-00230     unsigned int getStepsLeft(void);
-00231     
-00238     char stop(void);
-00239     
-00264         void setConstantOffTimeChopper(char constant_off_time, char blank_time, char fast_decay_time_setting, char sine_wave_offset, unsigned char use_current_comparator);
-00265     
-00286         void setSpreadCycleChopper(char constant_off_time, char blank_time, char hysteresis_start, char hysteresis_end, char hysteresis_decrement);
-00287 
-00303         void setRandomOffTime(char value);
-00304     
-00312         void setCurrent(unsigned int current);
-00313     
-00320     unsigned int getCurrent(void);
-00321     
-00337         void setStallGuardThreshold(char stall_guard_threshold, char stall_guard_filter_enabled);
-00338     
-00343     char getStallGuardThreshold(void);
-00344     
-00349     char getStallGuardFilter(void);
-00350     
-00368     void setCoolStepConfiguration(unsigned int lower_SG_threshold, unsigned int SG_hysteresis, unsigned char current_decrement_step_size,
-00369                                   unsigned char current_increment_step_size, unsigned char lower_current_limit);
-00370     
-00376     void setCoolStepEnabled(boolean enabled);
-00377     
-00378     
-00383     boolean isCoolStepEnabled();
-00384 
-00389     unsigned int getCoolStepLowerSgThreshold();
-00390     
-00395     unsigned int getCoolStepUpperSgThreshold();
-00396     
-00401     unsigned char getCoolStepNumberOfSGReadings();
-00402     
-00407     unsigned char getCoolStepCurrentIncrementSize();
-00408     
-00414     unsigned char getCoolStepLowerCurrentLimit();
-00415     
-00422         int getMotorPosition(void);
-00423     
-00430         int getCurrentStallGuardReading(void);
-00431     
-00437     unsigned char getCurrentCSReading(void);
-00438     
-00439     
-00444     boolean isCurrentScalingHalfed();
-00445 
-00453     unsigned int getCurrentCurrent(void);
-00454     
-00463         boolean isStallGuardOverThreshold(void);
-00464     
-00471         char getOverTemperature(void);
-00472     
-00480         boolean isShortToGroundA(void);
-00481 
-00488         boolean isShortToGroundB(void);
-00495         boolean isOpenLoadA(void);
-00496 
-00503         boolean isOpenLoadB(void);
-00504     
-00511         boolean isStandStill(void);
-00512 
-00524         boolean isStallGuardReached(void);
-00525     
-00530     void setEnabled(boolean enabled);
-00531     
-00537     boolean isEnabled();
-00538 
-00548         void readStatus(char read_value);
-00549     
-00554     int getResistor();
-00555 
-00560         void debugLastStatus(void);
-00565     int version(void);
-00566 
-00567   private:    
-00568         unsigned int steps_left;                //the steps the motor has to do to complete the movement
-00569     int direction;        // Direction of rotation
-00570     unsigned long step_delay;    // delay between steps, in ms, based on speed
-00571     int number_of_steps;      // total number of steps this motor can take
-00572     unsigned int speed; // we need to store the current speed in order to change the speed after changing microstepping
-00573     unsigned int resistor; //current sense resitor value in milliohm
-00574         
-00575     unsigned long last_step_time;      // time stamp in ms of when the last step was taken
-00576     unsigned long next_step_time;      // time stamp in ms of when the last step was taken
-00577         
-00578         //driver control register copies to easily set & modify the registers
-00579         unsigned long driver_control_register_value;
-00580         unsigned long chopper_config_register;
-00581         unsigned long cool_step_register_value;
-00582         unsigned long stall_guard2_current_register_value;
-00583         unsigned long driver_configuration_register_value;
-00584         //the driver status result
-00585         unsigned long driver_status_result;
-00586         
-00587         //helper routione to get the top 10 bit of the readout
-00588         inline int getReadoutValue();
-00589         
-00590         //the pins for the stepper driver
-00591         unsigned char cs_pin;
-00592         unsigned char step_pin;
-00593         unsigned char dir_pin;
-00594         
-00595         //status values 
-00596         boolean started; //if the stepper has been started yet
-00597         int microsteps; //the current number of micro steps
-00598     char constant_off_time; //we need to remember this value in order to enable and disable the motor
-00599     unsigned char cool_step_lower_threshold; // we need to remember the threshold to enable and disable the CoolStep feature
-00600     boolean cool_step_enabled; //we need to remember this to configure the coolstep if it si enabled
-00601         
-00602         //SPI sender
-00603         inline void send262(unsigned long datagram);
-00604 };
-00605 
-00606 #endif
-00607 
-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/annotated.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/annotated.html deleted file mode 100644 index 193044cff0..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/annotated.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: Class List - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - -
-
-
-
Class List
-
-
-
Here are the classes, structs, unions and interfaces with brief descriptions:
- -
TMC26XStepperClass representing a TMC26X stepper driver
-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/bc_s.png b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/bc_s.png deleted file mode 100644 index e4018628b5..0000000000 Binary files a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/bc_s.png and /dev/null differ diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/class_t_m_c26_x_stepper-members.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/class_t_m_c26_x_stepper-members.html deleted file mode 100644 index 4547542b9c..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/class_t_m_c26_x_stepper-members.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: Member List - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - -
-
-
-
TMC26XStepper Member List
-
-
-This is the complete list of members for TMC26XStepper, including all inherited members. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
debugLastStatus(void)TMC26XStepper
getCoolStepCurrentIncrementSize()TMC26XStepper
getCoolStepLowerCurrentLimit()TMC26XStepper
getCoolStepLowerSgThreshold()TMC26XStepper
getCoolStepNumberOfSGReadings()TMC26XStepper
getCoolStepUpperSgThreshold()TMC26XStepper
getCurrent(void)TMC26XStepper
getCurrentCSReading(void)TMC26XStepper
getCurrentCurrent(void)TMC26XStepper
getCurrentStallGuardReading(void)TMC26XStepper
getMicrosteps(void)TMC26XStepper
getMotorPosition(void)TMC26XStepper
getOverTemperature(void)TMC26XStepper
getResistor()TMC26XStepper
getSpeed(void)TMC26XStepper
getStallGuardFilter(void)TMC26XStepper
getStallGuardThreshold(void)TMC26XStepper
getStepsLeft(void)TMC26XStepper
isCoolStepEnabled()TMC26XStepper
isCurrentScalingHalfed()TMC26XStepper
isEnabled()TMC26XStepper
isMoving(void)TMC26XStepper
isOpenLoadA(void)TMC26XStepper
isOpenLoadB(void)TMC26XStepper
isShortToGroundA(void)TMC26XStepper
isShortToGroundB(void)TMC26XStepper
isStallGuardOverThreshold(void)TMC26XStepper
isStallGuardReached(void)TMC26XStepper
isStandStill(void)TMC26XStepper
move(void)TMC26XStepper
readStatus(char read_value)TMC26XStepper
setConstantOffTimeChopper(char constant_off_time, char blank_time, char fast_decay_time_setting, char sine_wave_offset, unsigned char use_current_comparator)TMC26XStepper
setCoolStepConfiguration(unsigned int lower_SG_threshold, unsigned int SG_hysteresis, unsigned char current_decrement_step_size, unsigned char current_increment_step_size, unsigned char lower_current_limit)TMC26XStepper
setCoolStepEnabled(boolean enabled)TMC26XStepper
setCurrent(unsigned int current)TMC26XStepper
setEnabled(boolean enabled)TMC26XStepper
setMicrosteps(int number_of_steps)TMC26XStepper
setRandomOffTime(char value)TMC26XStepper
setSpeed(unsigned int whatSpeed)TMC26XStepper
setSpreadCycleChopper(char constant_off_time, char blank_time, char hysteresis_start, char hysteresis_end, char hysteresis_decrement)TMC26XStepper
setStallGuardThreshold(char stall_guard_threshold, char stall_guard_filter_enabled)TMC26XStepper
start()TMC26XStepper
step(int number_of_steps)TMC26XStepper
stop(void)TMC26XStepper
TMC26XStepper(int number_of_steps, int cs_pin, int dir_pin, int step_pin, unsigned int current, unsigned int resistor=150)TMC26XStepper
un_start()TMC26XStepper
version(void)TMC26XStepper
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/class_t_m_c26_x_stepper.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/class_t_m_c26_x_stepper.html deleted file mode 100644 index 77c36f0bb9..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/class_t_m_c26_x_stepper.html +++ /dev/null @@ -1,1463 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: TMC26XStepper Class Reference - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - -
-
- -
-
TMC26XStepper Class Reference
-
-
- -

Class representing a TMC26X stepper driver. - More...

- -

#include <TMC26XStepper.h>

- -

List of all members.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

 TMC26XStepper (int number_of_steps, int cs_pin, int dir_pin, int step_pin, unsigned int current, unsigned int resistor=150)
 creates a new represenatation of a stepper motor connected to a TMC26X stepper driver
void start ()
 configures and starts the TMC26X stepper driver. Before you called this function the stepper driver is in nonfunctional mode.
void un_start ()
 resets the stepper in unconfigured mode.
void setSpeed (unsigned int whatSpeed)
 Sets the rotation speed in revolutions per minute.
unsigned int getSpeed (void)
 reads out the currently selected speed in revolutions per minute.
void setMicrosteps (int number_of_steps)
 Set the number of microsteps in 2^i values (rounded) up to 256.
int getMicrosteps (void)
 returns the effective current number of microsteps selected.
char step (int number_of_steps)
 Initiate a movement for the given number of steps. Positive numbers move in one, negative numbers in the other direction.
char move (void)
 Central movement method, must be called as often as possible in the lopp function and is very fast.
char isMoving (void)
 checks if the motor still has to move to fulfill the last movement command.
unsigned int getStepsLeft (void)
 Get the number of steps left in the current movement.
char stop (void)
 Stops the motor regardless if it moves or not.
void setConstantOffTimeChopper (char constant_off_time, char blank_time, char fast_decay_time_setting, char sine_wave_offset, unsigned char use_current_comparator)
 Sets and configure the classical Constant Off Timer Chopper.
void setSpreadCycleChopper (char constant_off_time, char blank_time, char hysteresis_start, char hysteresis_end, char hysteresis_decrement)
 Sets and configures with spread cycle chopper.
void setRandomOffTime (char value)
 Use random off time for noise reduction (0 for off, -1 for on).
void setCurrent (unsigned int current)
 set the maximum motor current in mA (1000 is 1 Amp) Keep in mind this is the maximum peak Current. The RMS current will be 1/sqrt(2) smaller. The actual current can also be smaller by employing CoolStep.
unsigned int getCurrent (void)
 readout the motor maximum current in mA (1000 is an Amp) This is the maximum current. to get the current current - which may be affected by CoolStep us getCurrentCurrent()
void setStallGuardThreshold (char stall_guard_threshold, char stall_guard_filter_enabled)
 set the StallGuard threshold in order to get sensible StallGuard readings.
char getStallGuardThreshold (void)
 reads out the StallGuard threshold
char getStallGuardFilter (void)
 returns the current setting of the StallGuard filter
void setCoolStepConfiguration (unsigned int lower_SG_threshold, unsigned int SG_hysteresis, unsigned char current_decrement_step_size, unsigned char current_increment_step_size, unsigned char lower_current_limit)
 This method configures the CoolStep smart energy operation. You must have a proper StallGuard configuration for the motor situation (current, voltage, speed) in rder to use this feature.
void setCoolStepEnabled (boolean enabled)
 enables or disables the CoolStep smart energy operation feature. It must be configured before enabling it.
boolean isCoolStepEnabled ()
 check if the CoolStep feature is enabled
unsigned int getCoolStepLowerSgThreshold ()
 returns the lower StallGuard threshold for the CoolStep operation
unsigned int getCoolStepUpperSgThreshold ()
 returns the upper StallGuard threshold for the CoolStep operation
unsigned char getCoolStepNumberOfSGReadings ()
 returns the number of StallGuard readings befor CoolStep adjusts the motor current.
unsigned char getCoolStepCurrentIncrementSize ()
 returns the increment steps for the current for the CoolStep operation
unsigned char getCoolStepLowerCurrentLimit ()
 returns the absolut minium current for the CoolStep operation
int getMotorPosition (void)
 Get the current microstep position for phase A.
int getCurrentStallGuardReading (void)
 Reads the current StallGuard value.
unsigned char getCurrentCSReading (void)
 Reads the current current setting value as fraction of the maximum current Returns values between 0 and 31, representing 1/32 to 32/32 (=1)
boolean isCurrentScalingHalfed ()
 a convenience method to determine if the current scaling uses 0.31V or 0.165V as reference.
unsigned int getCurrentCurrent (void)
 Reads the current current setting value and recalculates the absolute current in mA (1A would be 1000). This method calculates the currently used current setting (either by setting or by CoolStep) and reconstructs the current in mA by usinge the VSENSE and resistor value. This method uses floating point math - so it may not be the fastest.
boolean isStallGuardOverThreshold (void)
 checks if there is a StallGuard warning in the last status
char getOverTemperature (void)
 Return over temperature status of the last status readout return 0 is everything is OK, TMC26X_OVERTEMPERATURE_PREWARING if status is reached, TMC26X_OVERTEMPERATURE_SHUTDOWN is the chip is shutdown, -1 if the status is unknown. Keep in mind that this method does not enforce a readout but uses the value of the last status readout. You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout.
boolean isShortToGroundA (void)
 Is motor channel A shorted to ground detected in the last status readout.
boolean isShortToGroundB (void)
 Is motor channel B shorted to ground detected in the last status readout.
boolean isOpenLoadA (void)
 iIs motor channel A connected according to the last statu readout.
boolean isOpenLoadB (void)
 iIs motor channel A connected according to the last statu readout.
boolean isStandStill (void)
 Is chopper inactive since 2^20 clock cycles - defaults to ~0,08s.
boolean isStallGuardReached (void)
 checks if there is a StallGuard warning in the last status
void setEnabled (boolean enabled)
 enables or disables the motor driver bridges. If disabled the motor can run freely. If enabled not.
boolean isEnabled ()
 checks if the output bridges are enabled. If the bridges are not enabled the motor can run freely
void readStatus (char read_value)
 Manually read out the status register This function sends a byte to the motor driver in order to get the current readout. The parameter read_value seletcs which value will get returned. If the read_vlaue changes in respect to the previous readout this method automatically send two bytes to the motor: one to set the redout and one to get the actual readout. So this method may take time to send and read one or two bits - depending on the previous readout.
int getResistor ()
 Returns the current sense resistor value in milliohm. The default value of ,15 Ohm will return 150.
void debugLastStatus (void)
 Prints out all the information that can be found in the last status read out - it does not force a status readout. The result is printed via Serial.
int version (void)
 library version
-

Detailed Description

-

Class representing a TMC26X stepper driver.

-

In order to use one fo those drivers in your Arduino code you have to create an object of that class:

-
 TMC26XStepper stepper = TMC26XStepper(200,1,2,3,500);
-

see TMC26XStepper(int number_of_steps, int cs_pin, int dir_pin, int step_pin, unsigned int rms_current)

-

Keep in mind that you need to start the driver with start() in order to get the TMC26X configured.

-

The most important function is the move(). It checks if the motor has to do a step or not. It is important that you call move() as often as possible in your Arduino loop() routine. I suggest to use a very fast loop routine and always call it at the beginning or the end.

-

In order to move you have to provide a movement speed with setSpeed(). The speed is a positive value setting the rotations per minute.

-

To really move the motor you have to call step() to tell the driver to move the motor the given number of steps in the given direction. Positive values move the motor in one direction, negative values in the other direction.

-

You can check with isMoving() if the mototr is still moving or stop it apruptely with stop().

- -

Definition at line 101 of file TMC26XStepper.h.

-

Constructor & Destructor Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TMC26XStepper::TMC26XStepper (int number_of_steps,
int cs_pin,
int dir_pin,
int step_pin,
unsigned int current,
unsigned int resistor = 150 
)
-
-
- -

creates a new represenatation of a stepper motor connected to a TMC26X stepper driver

-

This is the main constructor. If in doubt use this. You must provide all parameters as described below.

-
Parameters:
- - - - - - - -
number_of_stepsthe number of steps the motor has per rotation.
cs_pinThe Arduino pin you have connected the Cient Select Pin (!CS) of the TMC26X for SPI
dir_pinthe number of the Arduino pin the Direction input of the TMC26X is connected
step_pinthe number of the Arduino pin the step pin of the TMC26X driver is connected.
rms_currentthe maximum current to privide to the motor in mA (!). A value of 200 would send up to 200mA to the motor
resistorthe current sense resistor in milli Ohm, defaults to ,15 Ohm ( or 150 milli Ohm) as in the TMC260 Arduino Shield
-
-
-

Keep in mind that you must also call TMC26XStepper.start() in order to configure the stepper driver for use.

-

By default the Constant Off Time chopper is used, see TCM262Stepper.setConstantOffTimeChopper() for details. This should work on most motors (YMMV). You may want to configure and use the Spread Cycle Chopper, see setSpreadCycleChopper().

-

By default a microstepping of 1/32th is used to provide a smooth motor run, while still giving a good progression per step. You can select a different stepping with setMicrosteps() to aa different value.

-
See also:
start(), setMicrosteps()
- -

Definition at line 111 of file TMC26XStepper.cpp.

- -
-
-

Member Function Documentation

- -
-
- - - - - - - - -
void TMC26XStepper::debugLastStatus (void )
-
-
- -

Prints out all the information that can be found in the last status read out - it does not force a status readout. The result is printed via Serial.

- -

Definition at line 902 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
unsigned char TMC26XStepper::getCoolStepCurrentIncrementSize ()
-
-
- -

returns the increment steps for the current for the CoolStep operation

-
See also:
setCoolStepConfiguration()
- -

Definition at line 704 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
unsigned char TMC26XStepper::getCoolStepLowerCurrentLimit ()
-
-
- -

returns the absolut minium current for the CoolStep operation

-
See also:
setCoolStepConfiguration()
-
-COOL_STEP_HALF_CS_LIMIT, COOL_STEP_QUARTER_CS_LIMIT
- -

Definition at line 712 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
unsigned int TMC26XStepper::getCoolStepLowerSgThreshold ()
-
-
- -

returns the lower StallGuard threshold for the CoolStep operation

-
See also:
setCoolStepConfiguration()
- -

Definition at line 695 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
unsigned char TMC26XStepper::getCoolStepNumberOfSGReadings ()
-
-
- -

returns the number of StallGuard readings befor CoolStep adjusts the motor current.

-
See also:
setCoolStepConfiguration()
- -

Definition at line 708 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
unsigned int TMC26XStepper::getCoolStepUpperSgThreshold ()
-
-
- -

returns the upper StallGuard threshold for the CoolStep operation

-
See also:
setCoolStepConfiguration()
- -

Definition at line 700 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
unsigned int TMC26XStepper::getCurrent (void )
-
-
- -

readout the motor maximum current in mA (1000 is an Amp) This is the maximum current. to get the current current - which may be affected by CoolStep us getCurrentCurrent()

-
Returns:
the maximum motor current in milli amps
-
See also:
getCurrentCurrent()
- -

Definition at line 336 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
unsigned char TMC26XStepper::getCurrentCSReading (void )
-
-
- -

Reads the current current setting value as fraction of the maximum current Returns values between 0 and 31, representing 1/32 to 32/32 (=1)

-
See also:
setCoolStepConfiguration()
- -

Definition at line 781 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
unsigned int TMC26XStepper::getCurrentCurrent (void )
-
-
- -

Reads the current current setting value and recalculates the absolute current in mA (1A would be 1000). This method calculates the currently used current setting (either by setting or by CoolStep) and reconstructs the current in mA by usinge the VSENSE and resistor value. This method uses floating point math - so it may not be the fastest.

-
See also:
getCurrentCSReading(), getResistor(), isCurrentScalingHalfed(), getCurrent()
- -

Definition at line 792 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
int TMC26XStepper::getCurrentStallGuardReading (void )
-
-
- -

Reads the current StallGuard value.

-
Returns:
The current StallGuard value, lesser values indicate higher load, 0 means stall detected. Keep in mind that this routine reads and writes a value via SPI - so this may take a bit time.
-
See also:
setStallGuardThreshold() for tuning the readout to sensible ranges.
- -

Definition at line 770 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
int TMC26XStepper::getMicrosteps (void )
-
-
- -

returns the effective current number of microsteps selected.

-

This function always returns the effective number of microsteps. This can be a bit different than the micro steps set in setMicrosteps() since it is rounded to 2^i.

-
See also:
setMicrosteps()
- -

Definition at line 446 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
int TMC26XStepper::getMotorPosition (void )
-
-
- -

Get the current microstep position for phase A.

-
Returns:
The current microstep position for phase A 0…255
-

Keep in mind that this routine reads and writes a value via SPI - so this may take a bit time.

- -

Definition at line 762 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
char TMC26XStepper::getOverTemperature (void )
-
-
- -

Return over temperature status of the last status readout return 0 is everything is OK, TMC26X_OVERTEMPERATURE_PREWARING if status is reached, TMC26X_OVERTEMPERATURE_SHUTDOWN is the chip is shutdown, -1 if the status is unknown. Keep in mind that this method does not enforce a readout but uses the value of the last status readout. You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout.

- -

Definition at line 816 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
int TMC26XStepper::getResistor ()
-
-
- -

Returns the current sense resistor value in milliohm. The default value of ,15 Ohm will return 150.

- -

Definition at line 883 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
unsigned int TMC26XStepper::getSpeed (void )
-
-
- -

reads out the currently selected speed in revolutions per minute.

-
See also:
setSpeed()
- -

Definition at line 221 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
char TMC26XStepper::getStallGuardFilter (void )
-
-
- -

returns the current setting of the StallGuard filter

-
Returns:
0 if not set, -1 if set
- -

Definition at line 381 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
char TMC26XStepper::getStallGuardThreshold (void )
-
-
- -

reads out the StallGuard threshold

-
Returns:
a number between -64 and 63.
- -

Definition at line 368 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
unsigned int TMC26XStepper::getStepsLeft (void )
-
-
- -

Get the number of steps left in the current movement.

-
Returns:
The number of steps left in the movement. This number is always positive.
- -

Definition at line 278 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
boolean TMC26XStepper::isCoolStepEnabled (void )
-
-
- -

check if the CoolStep feature is enabled

-
See also:
setCoolStepEnabled()
- -

Definition at line 691 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
boolean TMC26XStepper::isCurrentScalingHalfed ()
-
-
- -

a convenience method to determine if the current scaling uses 0.31V or 0.165V as reference.

-
Returns:
false if 0.13V is the reference voltage, true if 0.165V is used.
- -

Definition at line 887 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
boolean TMC26XStepper::isEnabled ()
-
-
- -

checks if the output bridges are enabled. If the bridges are not enabled the motor can run freely

-
Returns:
true if the bridges and by that the motor driver are enabled, false if not.
-
See also:
setEnabled()
- -

Definition at line 729 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
char TMC26XStepper::isMoving (void )
-
-
- -

checks if the motor still has to move to fulfill the last movement command.

-
Returns:
0 if the motor stops, -1 if the motor is moving.
-

This method can be used to determine if the motor is ready for new movements.

-
See also:
step(), move()
- -

Definition at line 274 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
boolean TMC26XStepper::isOpenLoadA (void )
-
-
- -

iIs motor channel A connected according to the last statu readout.

-
Returns:
true is yes, false if not. Keep in mind that this method does not enforce a readout but uses the value of the last status readout. You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout.
- -

Definition at line 846 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
boolean TMC26XStepper::isOpenLoadB (void )
-
-
- -

iIs motor channel A connected according to the last statu readout.

-
Returns:
true is yes, false if not. Keep in mind that this method does not enforce a readout but uses the value of the last status readout. You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout.
- -

Definition at line 854 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
boolean TMC26XStepper::isShortToGroundA (void )
-
-
- -

Is motor channel A shorted to ground detected in the last status readout.

-
Returns:
true is yes, false if not. Keep in mind that this method does not enforce a readout but uses the value of the last status readout. You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout.
- -

Definition at line 830 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
boolean TMC26XStepper::isShortToGroundB (void )
-
-
- -

Is motor channel B shorted to ground detected in the last status readout.

-
Returns:
true is yes, false if not. Keep in mind that this method does not enforce a readout but uses the value of the last status readout. You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout.
- -

Definition at line 838 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
boolean TMC26XStepper::isStallGuardOverThreshold (void )
-
-
- -

checks if there is a StallGuard warning in the last status

-
Returns:
0 if there was no warning, -1 if there was some warning. Keep in mind that this method does not enforce a readout but uses the value of the last status readout. You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout.
-
See also:
setStallGuardThreshold() for tuning the readout to sensible ranges.
- -

Definition at line 803 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
boolean TMC26XStepper::isStallGuardReached (void )
-
-
- -

checks if there is a StallGuard warning in the last status

-
Returns:
0 if there was no warning, -1 if there was some warning. Keep in mind that this method does not enforce a readout but uses the value of the last status readout. You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout.
-
See also:
isStallGuardOverThreshold() TODO why?
-
-setStallGuardThreshold() for tuning the readout to sensible ranges.
- -

Definition at line 870 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
boolean TMC26XStepper::isStandStill (void )
-
-
- -

Is chopper inactive since 2^20 clock cycles - defaults to ~0,08s.

-
Returns:
true is yes, false if not. Keep in mind that this method does not enforce a readout but uses the value of the last status readout. You may want to use getMotorPosition() or getCurrentStallGuardReading() to enforce an updated status readout.
- -

Definition at line 862 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
char TMC26XStepper::move (void )
-
-
- -

Central movement method, must be called as often as possible in the lopp function and is very fast.

-

This routine checks if the motor still has to move, if the waiting delay has passed to send a new step command to the motor and manages the number of steps yet to move to fulfill the current move command.

-

This function is implemented to be as fast as possible to call it as often as possible in your loop routine. The more regurlarly you call this function the better. In both senses of 'regularly': Calling it as often as possible is not a bad idea and if you even manage that the intervals you call this function are not too irregular helps too.

-

You can call this routine even if you know that the motor is not miving. It introduces just a very small penalty in your code. You must not call isMoving() to determine if you need to call this function, since taht is done internally already and only slows down you code.

-

How often you call this function directly influences your top miving speed for the motor. It may be a good idea to call this from an timer overflow interrupt to ensure proper calling.

-
See also:
step()
- -

Definition at line 246 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
void TMC26XStepper::readStatus (char read_value)
-
-
- -

Manually read out the status register This function sends a byte to the motor driver in order to get the current readout. The parameter read_value seletcs which value will get returned. If the read_vlaue changes in respect to the previous readout this method automatically send two bytes to the motor: one to set the redout and one to get the actual readout. So this method may take time to send and read one or two bits - depending on the previous readout.

-
Parameters:
- - -
read_valueselects which value to read out (0..3). You can use the defines TMC26X_READOUT_POSITION, TMC_262_READOUT_STALLGUARD, or TMC_262_READOUT_CURRENT
-
-
-
See also:
TMC26X_READOUT_POSITION, TMC_262_READOUT_STALLGUARD, TMC_262_READOUT_CURRENT
- -

Definition at line 742 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void TMC26XStepper::setConstantOffTimeChopper (char constant_off_time,
char blank_time,
char fast_decay_time_setting,
char sine_wave_offset,
unsigned char use_current_comparator 
)
-
-
- -

Sets and configure the classical Constant Off Timer Chopper.

-
Parameters:
- - - - - - -
constant_off_timeThe off time setting controls the minimum chopper frequency. For most applications an off time within the range of 5μs to 20μs will fit. Setting this parameter to zero completely disables all driver transistors and the motor can free-wheel. 0: chopper off, 1:15: off time setting (1 will work with minimum blank time of 24 clocks)
blank_timeSelects the comparator blank time. This time needs to safely cover the switching event and the duration of the ringing on the sense resistor. For most low current drivers, a setting of 1 or 2 is good. For high current applications with large MOSFETs, a setting of 2 or 3 will be required. 0 (min setting) … (3) amx setting
fast_decay_time_settingFast decay time setting. Controls the portion of fast decay for each chopper cycle. 0: slow decay only, 1…15: duration of fast decay phase
sine_wave_offsetSine wave offset. Controls the sine wave offset. A positive offset corrects for zero crossing error. -3…-1: negative offset, 0: no offset,1…12: positive offset
use_curreent_comparatorSelects usage of the current comparator for termination of the fast decay cycle. If current comparator is enabled, it terminates the fast decay cycle in case the current reaches a higher negative value than the actual positive value. (0 disable, -1 enable).
-
-
-

The classic constant off time chopper uses a fixed portion of fast decay following each on phase. While the duration of the on time is determined by the chopper comparator, the fast decay time needs to be set by the user in a way, that the current decay is enough for the driver to be able to follow the falling slope of the sine wave, and on the other hand it should not be too long, in order to minimize motor current ripple and power dissipation. This best can be tuned using an oscilloscope or trying out motor smoothness at different velocities. A good starting value is a fast decay time setting similar to the slow decay time setting. After tuning of the fast decay time, the offset should be determined, in order to have a smooth zero transition. This is necessary, because the fast decay phase leads to the absolute value of the motor current being lower than the target current (see figure 17). If the zero offset is too low, the motor stands still for a short moment during current zero crossing, if it is set too high, it makes a larger microstep. Typically, a positive offset setting is required for optimum operation.

-
See also:
setSpreadCycleChoper() for other alternatives.
-
-setRandomOffTime() for spreading the noise over a wider spectrum
- -

Definition at line 473 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void TMC26XStepper::setCoolStepConfiguration (unsigned int lower_SG_threshold,
unsigned int SG_hysteresis,
unsigned char current_decrement_step_size,
unsigned char current_increment_step_size,
unsigned char lower_current_limit 
)
-
-
- -

This method configures the CoolStep smart energy operation. You must have a proper StallGuard configuration for the motor situation (current, voltage, speed) in rder to use this feature.

-
Parameters:
- - - - - - -
lower_SG_thresholdSets the lower threshold for stallGuard2TM reading. Below this value, the motor current becomes increased. Allowed values are 0...480
SG_hysteresisSets the distance between the lower and the upper threshold for stallGuard2TM reading. Above the upper threshold (which is lower_SG_threshold+SG_hysteresis+1) the motor current becomes decreased. Allowed values are 0...480
current_decrement_step_sizeSets the current decrement steps. If the StallGuard value is above the threshold the current gets decremented by this step size. 0...32
current_increment_step_sizeSets the current increment step. The current becomes incremented for each measured stallGuard2TM value below the lower threshold. 0...8
lower_current_limitSets the lower motor current limit for coolStepTM operation by scaling the CS value. Values can be COOL_STEP_HALF_CS_LIMIT, COOL_STEP_QUARTER_CS_LIMIT The CoolStep smart energy operation automatically adjust the current sent into the motor according to the current load, read out by the StallGuard in order to provide the optimum torque with the minimal current consumption. You configure the CoolStep current regulator by defining upper and lower bounds of StallGuard readouts. If the readout is above the limit the current gets increased, below the limit the current gets decreased. You can specify the upper an lower threshold of the StallGuard readout in order to adjust the current. You can also set the number of StallGuard readings neccessary above or below the limit to get a more stable current adjustement. The current adjustement itself is configured by the number of steps the current gests in- or decreased and the absolut minimum current (1/2 or 1/4th otf the configured current).
-
-
-
See also:
COOL_STEP_HALF_CS_LIMIT, COOL_STEP_QUARTER_CS_LIMIT
- -

Definition at line 636 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
void TMC26XStepper::setCoolStepEnabled (boolean enabled)
-
-
- -

enables or disables the CoolStep smart energy operation feature. It must be configured before enabling it.

-
Parameters:
- - -
enabledtrue if CoolStep should be enabled, false if not.
-
-
-
See also:
setCoolStepConfiguration()
- -

Definition at line 676 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
void TMC26XStepper::setCurrent (unsigned int current)
-
-
- -

set the maximum motor current in mA (1000 is 1 Amp) Keep in mind this is the maximum peak Current. The RMS current will be 1/sqrt(2) smaller. The actual current can also be smaller by employing CoolStep.

-
Parameters:
- - -
currentthe maximum motor current in mA
-
-
-
See also:
getCurrent(), getCurrentCurrent()
- -

Definition at line 292 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
void TMC26XStepper::setEnabled (boolean enabled)
-
-
- -

enables or disables the motor driver bridges. If disabled the motor can run freely. If enabled not.

-
Parameters:
- - -
enableda boolean value true if the motor should be enabled, false otherwise.
-
-
- -

Definition at line 716 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
void TMC26XStepper::setMicrosteps (int number_of_steps)
-
-
- -

Set the number of microsteps in 2^i values (rounded) up to 256.

-

This method set's the number of microsteps per step in 2^i interval. This means you can select 1, 2, 4, 16, 32, 64, 128 or 256 as valid microsteps. If you give any other value it will be rounded to the next smaller number (3 would give a microstepping of 2). You can always check the current microstepping with getMicrosteps().

- -

Definition at line 394 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
void TMC26XStepper::setRandomOffTime (char value)
-
-
- -

Use random off time for noise reduction (0 for off, -1 for on).

-
Parameters:
- - -
value0 for off, -1 for on
-
-
-

In a constant off time chopper scheme both coil choppers run freely, i.e. are not synchronized. The frequency of each chopper mainly depends on the coil current and the position dependant motor coil inductivity, thus it depends on the microstep position. With some motors a slightly audible beat can occur between the chopper frequencies, especially when they are near to each other. This typically occurs at a few microstep positions within each quarter wave. This effect normally is not audible when compared to mechanical noise generated by ball bearings, etc. Further factors which can cause a similar effect are a poor layout of sense resistor GND connection. In order to minimize the effect of a beat between both chopper frequencies, an internal random generator is provided. It modulates the slow decay time setting when switched on. The random off time feature further spreads the chopper spectrum, reducing electromagnetic emission on single frequencies.

- -

Definition at line 624 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
void TMC26XStepper::setSpeed (unsigned int whatSpeed)
-
-
- -

Sets the rotation speed in revolutions per minute.

-
Parameters:
- - -
whatSpeedthe desired speed in rotations per minute.
-
-
- -

Definition at line 208 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void TMC26XStepper::setSpreadCycleChopper (char constant_off_time,
char blank_time,
char hysteresis_start,
char hysteresis_end,
char hysteresis_decrement 
)
-
-
- -

Sets and configures with spread cycle chopper.

-
Parameters:
- - - - - - -
constant_off_timeThe off time setting controls the minimum chopper frequency. For most applications an off time within the range of 5μs to 20μs will fit. Setting this parameter to zero completely disables all driver transistors and the motor can free-wheel. 0: chopper off, 1:15: off time setting (1 will work with minimum blank time of 24 clocks)
blank_timeSelects the comparator blank time. This time needs to safely cover the switching event and the duration of the ringing on the sense resistor. For most low current drivers, a setting of 1 or 2 is good. For high current applications with large MOSFETs, a setting of 2 or 3 will be required. 0 (min setting) … (3) amx setting
hysteresis_startHysteresis start setting. Please remark, that this value is an offset to the hysteresis end value. 1 … 8
hysteresis_endHysteresis end setting. Sets the hysteresis end value after a number of decrements. Decrement interval time is controlled by hysteresis_decrement. The sum hysteresis_start + hysteresis_end must be <16. At a current setting CS of max. 30 (amplitude reduced to 240), the sum is not limited.
hysteresis_decrementHysteresis decrement setting. This setting determines the slope of the hysteresis during on time and during fast decay time. 0 (fast decrement) … 3 (slow decrement).
-
-
-

The spreadCycle chopper scheme (pat.fil.) is a precise and simple to use chopper principle, which automatically determines the optimum fast decay portion for the motor. Anyhow, a number of settings can be made in order to optimally fit the driver to the motor. Each chopper cycle is comprised of an on-phase, a slow decay phase, a fast decay phase and a second slow decay phase. The slow decay phases limit the maximum chopper frequency and are important for low motor and driver power dissipation. The hysteresis start setting limits the chopper frequency by forcing the driver to introduce a minimum amount of current ripple into the motor coils. The motor inductivity determines the ability to follow a changing motor current. The duration of the on- and fast decay phase needs to cover at least the blank time, because the current comparator is disabled during this time.

-
See also:
setRandomOffTime() for spreading the noise over a wider spectrum
- -

Definition at line 552 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
void TMC26XStepper::setStallGuardThreshold (char stall_guard_threshold,
char stall_guard_filter_enabled 
)
-
-
- -

set the StallGuard threshold in order to get sensible StallGuard readings.

-
Parameters:
- - - -
stall_guard_threshold-64 … 63 the StallGuard threshold
stall_guard_filter_enabled0 if the filter is disabled, -1 if it is enabled
-
-
-

The StallGuard threshold is used to optimize the StallGuard reading to sensible values. It should be at 0 at the maximum allowable load on the otor (but not before). = is a good starting point (and the default) If you get Stall Gaurd readings of 0 without any load or with too little laod increase the value. If you get readings of 1023 even with load decrease the setting.

-

If you switch on the filter the StallGuard reading is only updated each 4th full step to reduce the noise in the reading.

-
See also:
getCurrentStallGuardReading() to read out the current value.
- -

Definition at line 346 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
void TMC26XStepper::start ()
-
-
- -

configures and starts the TMC26X stepper driver. Before you called this function the stepper driver is in nonfunctional mode.

-

This routine configures the TMC26X stepper driver for the given values via SPI. Most member functions are non functional if the driver has not been started. Therefore it is best to call this in your Arduino setup() function.

- -

Definition at line 157 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
char TMC26XStepper::step (int number_of_steps)
-
-
- -

Initiate a movement for the given number of steps. Positive numbers move in one, negative numbers in the other direction.

-
Parameters:
- - -
number_of_stepsThe number of steps to move the motor.
-
-
-
Returns:
0 if the motor was not moving and moves now. -1 if the motor is moving and the new steps could not be set.
-

If the previous movement is not finished yet the function will return -1 and not change the steps to move the motor. If the motor does not move it return 0

-

The direction of the movement is indicated by the sign of the steps parameter. It is not determinable if positive values are right or left This depends on the internal construction of the motor and how you connected it to the stepper driver.

-

You can always verify with isMoving() or even use stop() to stop the motor before giving it new step directions.

-
See also:
isMoving(), getStepsLeft(), stop()
- -

Definition at line 229 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
char TMC26XStepper::stop (void )
-
-
- -

Stops the motor regardless if it moves or not.

-
Returns:
-1 if the motor was moving and is really stoped or 0 if it was not moving at all.
-

This method directly and apruptely stops the motor and may be used as an emergency stop.

- -

Definition at line 282 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - -
void TMC26XStepper::un_start ()
-
-
- -

resets the stepper in unconfigured mode.

-

This routine enables you to call start again. It does not change anything in the internal stepper configuration or the desired configuration. It just marks the stepper as not yet startet. You do not have to reconfigure the stepper to start it again, but it is not reset to any factory settings this has to be configured back by yourself. (Hint: Normally you do not need this function)

- -

Definition at line 199 of file TMC26XStepper.cpp.

- -
-
- -
-
- - - - - - - - -
int TMC26XStepper::version (void )
-
-
- -

library version

-
Returns:
the version number as int.
- -

Definition at line 897 of file TMC26XStepper.cpp.

- -
-
-
The documentation for this class was generated from the following files: -
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/classes.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/classes.html deleted file mode 100644 index 5b5e667a20..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/classes.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: Class Index - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - -
-
-
-
Class Index
-
-
- - - - - - -
  T  
-
TMC26XStepper   
- -
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/closed.png b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/closed.png deleted file mode 100644 index b7d4bd9fef..0000000000 Binary files a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/closed.png and /dev/null differ diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/doxygen.css b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/doxygen.css deleted file mode 100644 index cee0d06b57..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/doxygen.css +++ /dev/null @@ -1,949 +0,0 @@ -/* The standard CSS for doxygen */ - -body, table, div, p, dl { - font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; - font-size: 13px; - line-height: 1.3; -} - -/* @group Heading Levels */ - -h1 { - font-size: 150%; -} - -.title { - font-size: 150%; - font-weight: bold; - margin: 10px 2px; -} - -h2 { - font-size: 120%; -} - -h3 { - font-size: 100%; -} - -dt { - font-weight: bold; -} - -div.multicol { - -moz-column-gap: 1em; - -webkit-column-gap: 1em; - -moz-column-count: 3; - -webkit-column-count: 3; -} - -p.startli, p.startdd, p.starttd { - margin-top: 2px; -} - -p.endli { - margin-bottom: 0px; -} - -p.enddd { - margin-bottom: 4px; -} - -p.endtd { - margin-bottom: 2px; -} - -/* @end */ - -caption { - font-weight: bold; -} - -span.legend { - font-size: 70%; - text-align: center; -} - -h3.version { - font-size: 90%; - text-align: center; -} - -div.qindex, div.navtab{ - background-color: #EBEFF6; - border: 1px solid #A3B4D7; - text-align: center; -} - -div.qindex, div.navpath { - width: 100%; - line-height: 140%; -} - -div.navtab { - margin-right: 15px; -} - -/* @group Link Styling */ - -a { - color: #3D578C; - font-weight: normal; - text-decoration: none; -} - -.contents a:visited { - color: #4665A2; -} - -a:hover { - text-decoration: underline; -} - -a.qindex { - font-weight: bold; -} - -a.qindexHL { - font-weight: bold; - background-color: #9CAFD4; - color: #ffffff; - border: 1px double #869DCA; -} - -.contents a.qindexHL:visited { - color: #ffffff; -} - -a.el { - font-weight: bold; -} - -a.elRef { -} - -a.code, a.code:visited { - color: #4665A2; -} - -a.codeRef, a.codeRef:visited { - color: #4665A2; -} - -/* @end */ - -dl.el { - margin-left: -1cm; -} - -.fragment { - font-family: monospace, fixed; - font-size: 105%; -} - -pre.fragment { - border: 1px solid #C4CFE5; - background-color: #FBFCFD; - padding: 4px 6px; - margin: 4px 8px 4px 2px; - overflow: auto; - word-wrap: break-word; - font-size: 9pt; - line-height: 125%; -} - -div.ah { - background-color: black; - font-weight: bold; - color: #ffffff; - margin-bottom: 3px; - margin-top: 3px; - padding: 0.2em; - border: solid thin #333; - border-radius: 0.5em; - -webkit-border-radius: .5em; - -moz-border-radius: .5em; - box-shadow: 2px 2px 3px #999; - -webkit-box-shadow: 2px 2px 3px #999; - -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; - background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); - background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); -} - -div.groupHeader { - margin-left: 16px; - margin-top: 12px; - font-weight: bold; -} - -div.groupText { - margin-left: 16px; - font-style: italic; -} - -body { - background-color: white; - color: black; - margin: 0; -} - -div.contents { - margin-top: 10px; - margin-left: 8px; - margin-right: 8px; -} - -td.indexkey { - background-color: #EBEFF6; - font-weight: bold; - border: 1px solid #C4CFE5; - margin: 2px 0px 2px 0; - padding: 2px 10px; - white-space: nowrap; - vertical-align: top; -} - -td.indexvalue { - background-color: #EBEFF6; - border: 1px solid #C4CFE5; - padding: 2px 10px; - margin: 2px 0px; -} - -tr.memlist { - background-color: #EEF1F7; -} - -p.formulaDsp { - text-align: center; -} - -img.formulaDsp { - -} - -img.formulaInl { - vertical-align: middle; -} - -div.center { - text-align: center; - margin-top: 0px; - margin-bottom: 0px; - padding: 0px; -} - -div.center img { - border: 0px; -} - -address.footer { - text-align: right; - padding-right: 12px; -} - -img.footer { - border: 0px; - vertical-align: middle; -} - -/* @group Code Colorization */ - -span.keyword { - color: #008000 -} - -span.keywordtype { - color: #604020 -} - -span.keywordflow { - color: #e08000 -} - -span.comment { - color: #800000 -} - -span.preprocessor { - color: #806020 -} - -span.stringliteral { - color: #002080 -} - -span.charliteral { - color: #008080 -} - -span.vhdldigit { - color: #ff00ff -} - -span.vhdlchar { - color: #000000 -} - -span.vhdlkeyword { - color: #700070 -} - -span.vhdllogic { - color: #ff0000 -} - -/* @end */ - -/* -.search { - color: #003399; - font-weight: bold; -} - -form.search { - margin-bottom: 0px; - margin-top: 0px; -} - -input.search { - font-size: 75%; - color: #000080; - font-weight: normal; - background-color: #e8eef2; -} -*/ - -td.tiny { - font-size: 75%; -} - -.dirtab { - padding: 4px; - border-collapse: collapse; - border: 1px solid #A3B4D7; -} - -th.dirtab { - background: #EBEFF6; - font-weight: bold; -} - -hr { - height: 0px; - border: none; - border-top: 1px solid #4A6AAA; -} - -hr.footer { - height: 1px; -} - -/* @group Member Descriptions */ - -table.memberdecls { - border-spacing: 0px; - padding: 0px; -} - -.mdescLeft, .mdescRight, -.memItemLeft, .memItemRight, -.memTemplItemLeft, .memTemplItemRight, .memTemplParams { - background-color: #F9FAFC; - border: none; - margin: 4px; - padding: 1px 0 0 8px; -} - -.mdescLeft, .mdescRight { - padding: 0px 8px 4px 8px; - color: #555; -} - -.memItemLeft, .memItemRight, .memTemplParams { - border-top: 1px solid #C4CFE5; -} - -.memItemLeft, .memTemplItemLeft { - white-space: nowrap; -} - -.memItemRight { - width: 100%; -} - -.memTemplParams { - color: #4665A2; - white-space: nowrap; -} - -/* @end */ - -/* @group Member Details */ - -/* Styles for detailed member documentation */ - -.memtemplate { - font-size: 80%; - color: #4665A2; - font-weight: normal; - margin-left: 9px; -} - -.memnav { - background-color: #EBEFF6; - border: 1px solid #A3B4D7; - text-align: center; - margin: 2px; - margin-right: 15px; - padding: 2px; -} - -.mempage { - width: 100%; -} - -.memitem { - padding: 0; - margin-bottom: 10px; - margin-right: 5px; -} - -.memname { - white-space: nowrap; - font-weight: bold; - margin-left: 6px; -} - -.memproto, dl.reflist dt { - border-top: 1px solid #A8B8D9; - border-left: 1px solid #A8B8D9; - border-right: 1px solid #A8B8D9; - padding: 6px 0px 6px 0px; - color: #253555; - font-weight: bold; - text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); - /* opera specific markup */ - box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); - border-top-right-radius: 8px; - border-top-left-radius: 8px; - /* firefox specific markup */ - -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; - -moz-border-radius-topright: 8px; - -moz-border-radius-topleft: 8px; - /* webkit specific markup */ - -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); - -webkit-border-top-right-radius: 8px; - -webkit-border-top-left-radius: 8px; - background-image:url('nav_f.png'); - background-repeat:repeat-x; - background-color: #E2E8F2; - -} - -.memdoc, dl.reflist dd { - border-bottom: 1px solid #A8B8D9; - border-left: 1px solid #A8B8D9; - border-right: 1px solid #A8B8D9; - padding: 2px 5px; - background-color: #FBFCFD; - border-top-width: 0; - /* opera specific markup */ - border-bottom-left-radius: 8px; - border-bottom-right-radius: 8px; - box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); - /* firefox specific markup */ - -moz-border-radius-bottomleft: 8px; - -moz-border-radius-bottomright: 8px; - -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; - background-image: -moz-linear-gradient(center top, #FFFFFF 0%, #FFFFFF 60%, #F7F8FB 95%, #EEF1F7); - /* webkit specific markup */ - -webkit-border-bottom-left-radius: 8px; - -webkit-border-bottom-right-radius: 8px; - -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); - background-image: -webkit-gradient(linear,center top,center bottom,from(#FFFFFF), color-stop(0.6,#FFFFFF), color-stop(0.60,#FFFFFF), color-stop(0.95,#F7F8FB), to(#EEF1F7)); -} - -dl.reflist dt { - padding: 5px; -} - -dl.reflist dd { - margin: 0px 0px 10px 0px; - padding: 5px; -} - -.paramkey { - text-align: right; -} - -.paramtype { - white-space: nowrap; -} - -.paramname { - color: #602020; - white-space: nowrap; -} -.paramname em { - font-style: normal; -} - -.params, .retval, .exception, .tparams { - border-spacing: 6px 2px; -} - -.params .paramname, .retval .paramname { - font-weight: bold; - vertical-align: top; -} - -.params .paramtype { - font-style: italic; - vertical-align: top; -} - -.params .paramdir { - font-family: "courier new",courier,monospace; - vertical-align: top; -} - - - - -/* @end */ - -/* @group Directory (tree) */ - -/* for the tree view */ - -.ftvtree { - font-family: sans-serif; - margin: 0px; -} - -/* these are for tree view when used as main index */ - -.directory { - font-size: 9pt; - font-weight: bold; - margin: 5px; -} - -.directory h3 { - margin: 0px; - margin-top: 1em; - font-size: 11pt; -} - -/* -The following two styles can be used to replace the root node title -with an image of your choice. Simply uncomment the next two styles, -specify the name of your image and be sure to set 'height' to the -proper pixel height of your image. -*/ - -/* -.directory h3.swap { - height: 61px; - background-repeat: no-repeat; - background-image: url("yourimage.gif"); -} -.directory h3.swap span { - display: none; -} -*/ - -.directory > h3 { - margin-top: 0; -} - -.directory p { - margin: 0px; - white-space: nowrap; -} - -.directory div { - display: none; - margin: 0px; -} - -.directory img { - vertical-align: -30%; -} - -/* these are for tree view when not used as main index */ - -.directory-alt { - font-size: 100%; - font-weight: bold; -} - -.directory-alt h3 { - margin: 0px; - margin-top: 1em; - font-size: 11pt; -} - -.directory-alt > h3 { - margin-top: 0; -} - -.directory-alt p { - margin: 0px; - white-space: nowrap; -} - -.directory-alt div { - display: none; - margin: 0px; -} - -.directory-alt img { - vertical-align: -30%; -} - -/* @end */ - -div.dynheader { - margin-top: 8px; -} - -address { - font-style: normal; - color: #2A3D61; -} - -table.doxtable { - border-collapse:collapse; -} - -table.doxtable td, table.doxtable th { - border: 1px solid #2D4068; - padding: 3px 7px 2px; -} - -table.doxtable th { - background-color: #374F7F; - color: #FFFFFF; - font-size: 110%; - padding-bottom: 4px; - padding-top: 5px; - text-align:left; -} - -table.fieldtable { - width: 100%; - margin-bottom: 10px; - border: 1px solid #A8B8D9; - border-spacing: 0px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - border-radius: 4px; - -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; - -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); - box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); -} - -.fieldtable td, .fieldtable th { - padding: 3px 7px 2px; -} - -.fieldtable td.fieldtype, .fieldtable td.fieldname { - white-space: nowrap; - border-right: 1px solid #A8B8D9; - border-bottom: 1px solid #A8B8D9; - vertical-align: top; -} - -.fieldtable td.fielddoc { - border-bottom: 1px solid #A8B8D9; - width: 100%; -} - -.fieldtable tr:last-child td { - border-bottom: none; -} - -.fieldtable th { - background-image:url('nav_f.png'); - background-repeat:repeat-x; - background-color: #E2E8F2; - font-size: 90%; - color: #253555; - padding-bottom: 4px; - padding-top: 5px; - text-align:left; - -moz-border-radius-topleft: 4px; - -moz-border-radius-topright: 4px; - -webkit-border-top-left-radius: 4px; - -webkit-border-top-right-radius: 4px; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - border-bottom: 1px solid #A8B8D9; -} - - -.tabsearch { - top: 0px; - left: 10px; - height: 36px; - background-image: url('tab_b.png'); - z-index: 101; - overflow: hidden; - font-size: 13px; -} - -.navpath ul -{ - font-size: 11px; - background-image:url('tab_b.png'); - background-repeat:repeat-x; - height:30px; - line-height:30px; - color:#8AA0CC; - border:solid 1px #C2CDE4; - overflow:hidden; - margin:0px; - padding:0px; -} - -.navpath li -{ - list-style-type:none; - float:left; - padding-left:10px; - padding-right:15px; - background-image:url('bc_s.png'); - background-repeat:no-repeat; - background-position:right; - color:#364D7C; -} - -.navpath li.navelem a -{ - height:32px; - display:block; - text-decoration: none; - outline: none; -} - -.navpath li.navelem a:hover -{ - color:#6884BD; -} - -.navpath li.footer -{ - list-style-type:none; - float:right; - padding-left:10px; - padding-right:15px; - background-image:none; - background-repeat:no-repeat; - background-position:right; - color:#364D7C; - font-size: 8pt; -} - - -div.summary -{ - float: right; - font-size: 8pt; - padding-right: 5px; - width: 50%; - text-align: right; -} - -div.summary a -{ - white-space: nowrap; -} - -div.ingroups -{ - margin-left: 5px; - font-size: 8pt; - padding-left: 5px; - width: 50%; - text-align: left; -} - -div.ingroups a -{ - white-space: nowrap; -} - -div.header -{ - background-image:url('nav_h.png'); - background-repeat:repeat-x; - background-color: #F9FAFC; - margin: 0px; - border-bottom: 1px solid #C4CFE5; -} - -div.headertitle -{ - padding: 5px 5px 5px 7px; -} - -dl -{ - padding: 0 0 0 10px; -} - -dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug -{ - border-left:4px solid; - padding: 0 0 0 6px; -} - -dl.note -{ - border-color: #D0C000; -} - -dl.warning, dl.attention -{ - border-color: #FF0000; -} - -dl.pre, dl.post, dl.invariant -{ - border-color: #00D000; -} - -dl.deprecated -{ - border-color: #505050; -} - -dl.todo -{ - border-color: #00C0E0; -} - -dl.test -{ - border-color: #3030E0; -} - -dl.bug -{ - border-color: #C08050; -} - -#projectlogo -{ - text-align: center; - vertical-align: bottom; - border-collapse: separate; -} - -#projectlogo img -{ - border: 0px none; -} - -#projectname -{ - font: 300% Tahoma, Arial,sans-serif; - margin: 0px; - padding: 2px 0px; -} - -#projectbrief -{ - font: 120% Tahoma, Arial,sans-serif; - margin: 0px; - padding: 0px; -} - -#projectnumber -{ - font: 50% Tahoma, Arial,sans-serif; - margin: 0px; - padding: 0px; -} - -#titlearea -{ - padding: 0px; - margin: 0px; - width: 100%; - border-bottom: 1px solid #5373B4; -} - -.image -{ - text-align: center; -} - -.dotgraph -{ - text-align: center; -} - -.mscgraph -{ - text-align: center; -} - -.caption -{ - font-weight: bold; -} - -div.zoom -{ - border: 1px solid #90A5CE; -} - -dl.citelist { - margin-bottom:50px; -} - -dl.citelist dt { - color:#334975; - float:left; - font-weight:bold; - margin-right:10px; - padding:5px; -} - -dl.citelist dd { - margin:2px 0; - padding:5px 0; -} - -@media print -{ - #top { display: none; } - #side-nav { display: none; } - #nav-path { display: none; } - body { overflow:visible; } - h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } - .summary { display: none; } - .memitem { page-break-inside: avoid; } - #doc-content - { - margin-left:0 !important; - height:auto !important; - width:auto !important; - overflow:inherit; - display:inline; - } - pre.fragment - { - overflow: visible; - text-wrap: unrestricted; - white-space: -moz-pre-wrap; /* Moz */ - white-space: -pre-wrap; /* Opera 4-6 */ - white-space: -o-pre-wrap; /* Opera 7 */ - white-space: pre-wrap; /* CSS3 */ - word-wrap: break-word; /* IE 5.5+ */ - } -} - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/doxygen.png b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/doxygen.png deleted file mode 100644 index 635ed52fce..0000000000 Binary files a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/doxygen.png and /dev/null differ diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/files.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/files.html deleted file mode 100644 index 3d40b88682..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/files.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: File List - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - -
-
-
-
File List
-
-
-
Here is a list of all files with brief descriptions:
- - -
TMC26XStepper.cpp [code]
TMC26XStepper.h [code]
-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/functions.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/functions.html deleted file mode 100644 index f53a7334a2..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/functions.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: Class Members - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - - - -
-
-
Here is a list of all class members with links to the classes they belong to:
- -

- d -

- - -

- g -

- - -

- i -

- - -

- m -

- - -

- r -

- - -

- s -

- - -

- t -

- - -

- u -

- - -

- v -

-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/functions_func.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/functions_func.html deleted file mode 100644 index 1730ddd311..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/functions_func.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: Class Members - Functions - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - - - -
-
-  - -

- d -

- - -

- g -

- - -

- i -

- - -

- m -

- - -

- r -

- - -

- s -

- - -

- t -

- - -

- u -

- - -

- v -

-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/globals.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/globals.html deleted file mode 100644 index 438a5e8566..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/globals.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: File Members - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - - - -
-
-
Here is a list of all file members with links to the files they belong to:
- -

- b -

- - -

- c -

- - -

- d -

- - -

- h -

- - -

- i -

- - -

- m -

- - -

- r -

- - -

- s -

- - -

- t -

- - -

- v -

-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/globals_defs.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/globals_defs.html deleted file mode 100644 index 58a880e352..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/globals_defs.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: File Members - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - - - - -
-
-  - -

- b -

- - -

- c -

- - -

- d -

- - -

- h -

- - -

- i -

- - -

- m -

- - -

- r -

- - -

- s -

- - -

- t -

- - -

- v -

-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/index.html b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/index.html deleted file mode 100644 index 35d5d3b869..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/index.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - -Trinamic TMC26X Stepper Driver for Arduino: TMC 260, 261, 262 Stepper Driver for Arduino - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Trinamic TMC26X Stepper Driver for Arduino - -
- -
-
- - - -
-
-
-
TMC 260, 261, 262 Stepper Driver for Arduino
-
-
-
Author:
Interactive MAtter, MArcus Nowotny, marcus@interactive-matter.eu
-

-How to use the driver

-

Here we go with aminial how to description

-

-COPYRIGHT NOTIFICATION

-
(c) 2011 Interactive MAtter, Marcus Nowotny
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

-

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-
- - - - - - diff --git a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/jquery.js b/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/jquery.js deleted file mode 100644 index 90b3a2bc39..0000000000 --- a/ArduinoAddons/Arduino_1.6.4+/Marlin/avr/libraries/TMC26XStepper/documentation/html/jquery.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
","
"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); -/* - * Sizzle CSS Selector Engine - v0.9.3 - * Copyright 2009, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * More information: http://sizzlejs.com/ - */ -(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0) -{I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function() -{G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); - -/* - * jQuery hashchange event - v1.3 - 7/21/2010 - * http://benalman.com/projects/jquery-hashchange-plugin/ - * - * Copyright (c) 2010 "Cowboy" Ben Alman - * Dual licensed under the MIT and GPL licenses. - * http://benalman.com/about/license/ - */ -(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('