tasks.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. {
  2. // See https://go.microsoft.com/fwlink/?LinkId=733558
  3. // for the documentation about the tasks.json format
  4. "version": "2.0.0",
  5. "tasks": [
  6. {
  7. "label": "make MAC=.. SERIAL=.. NETTRACE=..",
  8. "type": "shell",
  9. "command": "make",
  10. "group": {
  11. "kind": "build",
  12. "isDefault": true
  13. },
  14. "args": [
  15. "MAC=${input:mac}",
  16. "SERIAL=${input:serial}",
  17. "NETTRACE=${input:nettrace}"
  18. ],
  19. "runOptions": {
  20. "reevaluateOnRerun": false
  21. },
  22. "problemMatcher": {
  23. "base": "$gcc",
  24. "fileLocation": [
  25. "relative",
  26. "${workspaceFolder}/stm32fw"
  27. ]
  28. },
  29. "presentation": {
  30. "clear": true
  31. }
  32. },
  33. {
  34. "label": "make MAC=.. SERIAL=.. SWOTRACE=..",
  35. "type": "shell",
  36. "command": "make",
  37. "group": {
  38. "kind": "build",
  39. "isDefault": true
  40. },
  41. "args": [
  42. "MAC=${input:mac}",
  43. "SERIAL=${input:serial}",
  44. "SWOTRACE=${input:swotrace}"
  45. ],
  46. "runOptions": {
  47. "reevaluateOnRerun": false
  48. },
  49. "problemMatcher": {
  50. "base": "$gcc",
  51. "fileLocation": [
  52. "relative",
  53. "${workspaceFolder}/stm32fw"
  54. ]
  55. },
  56. "presentation": {
  57. "clear": true
  58. }
  59. },
  60. {
  61. "label": "make",
  62. "type": "shell",
  63. "command": "make",
  64. "group": {
  65. "kind": "build",
  66. "isDefault": true
  67. },
  68. "problemMatcher": {
  69. "base": "$gcc",
  70. "fileLocation": [
  71. "relative",
  72. "${workspaceFolder}/stm32fw"
  73. ]
  74. },
  75. "presentation": {
  76. "clear": true
  77. }
  78. },
  79. {
  80. "label": "make upper",
  81. "type": "shell",
  82. "command": "make stm32fw_upper",
  83. "group": {
  84. "kind": "build",
  85. "isDefault": true
  86. },
  87. "problemMatcher": {
  88. "base": "$gcc",
  89. "fileLocation": [
  90. "relative",
  91. "${workspaceFolder}/stm32fw_upper"
  92. ]
  93. },
  94. "presentation": {
  95. "clear": true
  96. }
  97. },
  98. {
  99. "label": "make tools",
  100. "type": "shell",
  101. "command": "make tools",
  102. "group": {
  103. "kind": "build",
  104. "isDefault": true
  105. },
  106. "problemMatcher": {
  107. "base": "$gcc",
  108. "fileLocation": [
  109. "relative",
  110. "${workspaceFolder}/tools"
  111. ]
  112. },
  113. "presentation": {
  114. "clear": true
  115. }
  116. },
  117. {
  118. "label": "make testall",
  119. "type": "shell",
  120. "command": "make testall",
  121. "group": {
  122. "kind": "build",
  123. "isDefault": true
  124. },
  125. "problemMatcher": {
  126. "base": "$gcc",
  127. "fileLocation": [
  128. "relative",
  129. "${workspaceFolder}/tests"
  130. ]
  131. },
  132. "presentation": {
  133. "clear": true
  134. }
  135. },
  136. {
  137. "label": "make TEST=test_alarm_manager_rectifier_alarms",
  138. "type": "shell",
  139. "command": "make test TEST=test_alarm_manager_rectifier_alarms",
  140. "group": {
  141. "kind": "build",
  142. "isDefault": true
  143. },
  144. "problemMatcher": {
  145. "base": "$gcc",
  146. "fileLocation": [
  147. "relative",
  148. "${workspaceFolder}/tests"
  149. ]
  150. },
  151. "presentation": {
  152. "clear": true
  153. }
  154. },
  155. {
  156. "label": "make clobber",
  157. "type": "shell",
  158. "command": "make clobber",
  159. "group": {
  160. "kind": "build",
  161. "isDefault": true
  162. },
  163. "problemMatcher": {
  164. "base": "$gcc",
  165. "fileLocation": [
  166. "relative",
  167. "${workspaceFolder}/tests"
  168. ]
  169. },
  170. "presentation": {
  171. "clear": true
  172. }
  173. },
  174. {
  175. "label": "make distclean",
  176. "type": "shell",
  177. "command": "make distclean",
  178. "group": {
  179. "kind": "build",
  180. "isDefault": true
  181. },
  182. "problemMatcher": {
  183. "base": "$gcc",
  184. "fileLocation": [
  185. "relative",
  186. "${workspaceFolder}/modules"
  187. ]
  188. },
  189. "presentation": {
  190. "clear": true
  191. }
  192. },
  193. ],
  194. "inputs": [
  195. {
  196. "id": "mac",
  197. "description": "Type default MAC",
  198. "default": "EC-4C-4D-00-C7-FF",
  199. "type": "promptString"
  200. },
  201. {
  202. "id": "serial",
  203. "description": "Type default S/N",
  204. "default": "5700000",
  205. "type": "promptString"
  206. },
  207. {
  208. "id": "buzzer",
  209. "description": "BUZZER=[0|1]",
  210. "default": "0",
  211. "type": "pickString",
  212. "options": ["0", "1"]
  213. },
  214. {
  215. "id": "debug",
  216. "description": "DEBUG=[0|1]",
  217. "default": "0",
  218. "type": "pickString",
  219. "options": ["0", "1"]
  220. },
  221. {
  222. "id": "swotrace",
  223. "description": "SWOTRACE=[0|1]",
  224. "default": "0",
  225. "type": "pickString",
  226. "options": ["0", "1"]
  227. },
  228. {
  229. "id": "nettrace",
  230. "description": "NETTRACE=[0|1]",
  231. "default": "0",
  232. "type": "pickString",
  233. "options": ["0", "1"]
  234. }
  235. ]
  236. }