You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
3.1 KiB

11 years ago
11 years ago
11 years ago
11 years ago
  1. @ECHO off
  2. @ECHO ***** Batch file for BlHeli (from 4712) v.2 *****
  3. @ECHO ***** All Messages will be saved to MakeHex_Result.txt *****
  4. @ECHO ***** Start compile with any key - CTRL-C to abort *****
  5. Break ON
  6. @pause
  7. DEL MakeHex_Result.txt /Q
  8. rem ***** Adapt settings to your enviroment ****
  9. DEL Output\Hex\*.* /Q
  10. DEL Output\Eep\*.* /Q
  11. RMDIR Output\Hex
  12. RMDIR Output\Eep
  13. DEL Output\*.* /Q
  14. RMDIR Output
  15. MKDIR Output
  16. MKDIR Output\Hex
  17. MKDIR Output\Eep
  18. SET Revision=REV14_9
  19. SET AtmelPath=C:\Atmel\avrassembler
  20. rem SET AtmelPath="C:\Dev\Atmel\AVR Tools\AvrAssembler2"
  21. @ECHO Revision: %Revision% >> MakeHex_Result.txt
  22. @ECHO Path for Atmel assembler: %AtmelPath% >> MakeHex_Result.txt
  23. @ECHO Start compile ..... >> MakeHex_Result.txt
  24. SET NAME=BLUESERIES_12A
  25. call:compile
  26. SET NAME=BLUESERIES_20A
  27. call:compile
  28. SET NAME=BLUESERIES_30A
  29. call :compile
  30. SET NAME=BLUESERIES_40A
  31. call :compile
  32. SET NAME=BLUESERIES_60A
  33. call :compile
  34. SET NAME=BLUESERIES_70A
  35. call :compile
  36. SET NAME=HK_UBEC_6A
  37. call :compile
  38. SET NAME=HK_UBEC_10A
  39. call :compile
  40. SET NAME=HK_UBEC_20A
  41. call :compile
  42. SET NAME=HK_UBEC_30A
  43. call :compile
  44. SET NAME=HK_UBEC_40A
  45. call :compile
  46. SET NAME=SUPERSIMPLE_18A
  47. call :compile
  48. SET NAME=SUPERSIMPLE_20A
  49. call :compile
  50. SET NAME=SUPERSIMPLE_30A
  51. call :compile
  52. SET NAME=SUPERSIMPLE_40A
  53. call :compile
  54. SET NAME=MULTISTAR_10Av2
  55. call :compile
  56. SET NAME=MULTISTAR_15A
  57. call :compile
  58. SET NAME=MULTISTAR_20A
  59. call :compile
  60. SET NAME=MULTISTAR_20A_NFET
  61. call :compile
  62. SET NAME=MULTISTAR_20Av2
  63. call :compile
  64. SET NAME=MULTISTAR_30A
  65. call :compile
  66. SET NAME=MULTISTAR_40Av2
  67. call :compile
  68. SET NAME=MULTISTAR_45A
  69. call :compile
  70. SET NAME=MYSTERY_12A
  71. call :compile
  72. SET NAME=MYSTERY_30A
  73. call :compile
  74. SET NAME=MYSTERY_40A
  75. call :compile
  76. SET NAME=SUNRISE_HIMULTI_20A
  77. call :compile
  78. SET NAME=SUNRISE_HIMULTI_30A
  79. call :compile
  80. SET NAME=SUNRISE_HIMULTI_40A
  81. call :compile
  82. SET NAME=RCTIMER_40A
  83. call :compile
  84. SET NAME=RCTIMER_NFS_30A
  85. call :compile
  86. SET NAME=YEP_7A
  87. call :compile
  88. SET NAME=AFRO_12A
  89. call :compile
  90. SET NAME=AFRO_20A
  91. call :compile
  92. SET NAME=AFRO_20A_HV
  93. call :compile
  94. SET NAME=AFRO_30A
  95. call :compile
  96. SET NAME=SUNRISE_BLHELI_SLIM_20A
  97. call :compile
  98. SET NAME=SUNRISE_BLHELI_SLIM_30A
  99. call :compile
  100. SET NAME=DYS_SN20A
  101. call :compile
  102. SET NAME=TBS_CUBE_20A
  103. call :compile
  104. SET NAME=ZTW_SPIDER_LITE_18Av2
  105. call :compile
  106. SET NAME=HTIRC_DRAGONFLY_6A
  107. call :compile
  108. SET NAME=HTIRC_DRAGONFLY_12A
  109. call :compile
  110. SET NAME=HTIRC_DRAGONFLY_20A
  111. call :compile
  112. SET NAME=HTIRC_DRAGONFLY_30A
  113. call :compile
  114. SET NAME=HTIRC_DRAGONFLY_40A
  115. call :compile
  116. SET NAME=TBS_BULLETPROOF_4A
  117. call :compile
  118. SET NAME=TBS_BULLETPROOF_30A
  119. call :compile
  120. goto :end
  121. :compile
  122. SET BESC=%NAME%_MAIN
  123. call :compile2
  124. SET BESC=%NAME%_TAIL
  125. call:compile2
  126. SET BESC=%NAME%_MULTI
  127. call:compile2
  128. goto :eof
  129. :compile2
  130. @ECHO compiling %BESC%
  131. @ECHO. >> MakeHex_Result.txt
  132. @ECHO ******************************************************************** >> MakeHex_Result.txt
  133. @ECHO %BESC% >> MakeHex_Result.txt
  134. @ECHO ******************************************************************** >> MakeHex_Result.txt
  135. %AtmelPath%\avrasm2.exe -D %BESC% -fI -o "Output\Hex\%BESC%_%Revision%.HEX" BLHeli.asm -e "Output\Eep\%BESC%_%Revision%.EEP" >> MakeHex_Result.txt
  136. @ECHO. >> MakeHex_Result.txt
  137. goto :eof
  138. :end
  139. @pause
  140. exit