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.

846 lines
29 KiB

  1. /** \file
  2. *
  3. * This file contains special DoxyGen information for the generation of the main page and other special
  4. * documentation pages. It is not a project source file.
  5. */
  6. /** \page Page_BuildSystem The LUFA Build System
  7. *
  8. * \section Sec_BuildSystemOverview Overview of the LUFA Build System
  9. * The LUFA build system is an attempt at making a set of re-usable, modular build make files which
  10. * can be referenced in a LUFA powered project, to minimise the amount of code required in an
  11. * application makefile. The system is written in GNU Make, and each module is independant of
  12. * one-another.
  13. *
  14. * For details on the prerequisites needed for Linux and Windows machines to be able to use the LUFA
  15. * build system, see \ref Sec_Prerequisites.
  16. *
  17. * To use a LUFA build system module, simply add an include to your project makefile:
  18. * \code
  19. * include $(LUFA_PATH)/Build/lufa_core.mk
  20. * \endcode
  21. *
  22. * And the associated build module targets will be added to your project's build makefile automatically.
  23. * To call a build target, run <tt>make {TARGET_NAME}</tt> from the command line, substituting in
  24. * the appropriate target name.
  25. *
  26. * \see \ref Sec_AppConfigParams for a copy of the sample LUFA project makefile.
  27. *
  28. * Each build module may have one or more mandatory parameters (GNU Make variables) which <i>must</i>
  29. * be supplied in the project makefile for the module to work, and one or more optional parameters which
  30. * may be defined and which will assume a sensible default if not.
  31. *
  32. * \section SSec_BuildSystemModules Available Modules
  33. *
  34. * The following modules are included in this LUFA release:
  35. *
  36. * \li \subpage Page_BuildModule_ATPROGRAM - Device Programming
  37. * \li \subpage Page_BuildModule_AVRDUDE - Device Programming
  38. * \li \subpage Page_BuildModule_BUILD - Compiling/Assembling/Linking
  39. * \li \subpage Page_BuildModule_CORE - Core Build System Functions
  40. * \li \subpage Page_BuildModule_CPPCHECK - Static Code Analysis
  41. * \li \subpage Page_BuildModule_DFU - Device Programming
  42. * \li \subpage Page_BuildModule_DOXYGEN - Automated Source Code Documentation
  43. * \li \subpage Page_BuildModule_HID - Device Programming
  44. * \li \subpage Page_BuildModule_SOURCES - LUFA Module Source Code Variables
  45. */
  46. /** \page Page_BuildModule_BUILD The BUILD build module
  47. *
  48. * The BUILD LUFA build system module, providing targets for the compilation,
  49. * assembling and linking of an application from source code into binary files
  50. * suitable for programming into a target device.
  51. *
  52. * To use this module in your application makefile, add the following code:
  53. * \code
  54. * include $(LUFA_PATH)/Build/lufa_build.mk
  55. * \endcode
  56. *
  57. * \section SSec_BuildModule_BUILD_Requirements Requirements
  58. * This module requires the the architecture appropriate binaries of the GCC compiler are available in your
  59. * system's <b>PATH</b> variable. The GCC compiler and associated toolchain is distributed in Atmel AVR Studio
  60. * 5.x and Atmel Studio 6.x installation directories, as well as in many third party distribution packages.
  61. *
  62. * \section SSec_BuildModule_BUILD_Targets Targets
  63. *
  64. * <table>
  65. * <tr>
  66. * <td><tt>size</tt></td>
  67. * <td>Display size of the compiled application FLASH and SRAM segments.</td>
  68. * </tr>
  69. * <tr>
  70. * <td><tt>symbol-sizes</tt></td>
  71. * <td>Display a size-sorted list of symbols from the compiled application, in decimal bytes.</td>
  72. * </tr>
  73. * <tr>
  74. * <td><tt>check-source</tt></td>
  75. * <td>Display a list of input SRC source files which cannot be found (if any).</td>
  76. * </tr>
  77. * <tr>
  78. * <td><tt>lib</tt></td>
  79. * <td>Build and archive all source files into a library A binary file.</td>
  80. * </tr>
  81. * <tr>
  82. * <td><tt>all</tt></td>
  83. * <td>Build and link the application into ELF debug and HEX binary files.</td>
  84. * </tr>
  85. * <tr>
  86. * <td><tt>elf</tt></td>
  87. * <td>Build and link the application into an ELF debug file.</td>
  88. * </tr>
  89. * <tr>
  90. * <td><tt>hex</tt></td>
  91. * <td>Build and link the application and produce HEX and EEP binary files.</td>
  92. * </tr>
  93. * <tr>
  94. * <td><tt>lss</tt></td>
  95. * <td>Build and link the application and produce a LSS source code/assembly code mixed listing file.</td>
  96. * </tr>
  97. * <tr>
  98. * <td><tt>clean</tt></td>
  99. * <td>Remove all intermediatary files and binary output files.</td>
  100. * </tr>
  101. * <tr>
  102. * <td><tt>mostlyclean</tt></td>
  103. * <td>Remove all intermediatary files but preserve any binary output files.</td>
  104. * </tr>
  105. * </table>
  106. *
  107. * \section SSec_BuildModule_BUILD_MandatoryParams Mandatory Parameters
  108. *
  109. * <table>
  110. * <tr>
  111. * <td><tt>TARGET</tt></td>
  112. * <td>Name of the application output file prefix (e.g. <tt>TestApplication</tt>).</td>
  113. * </tr>
  114. * <tr>
  115. * <td><tt>ARCH</tt></td>
  116. * <td>Architecture of the target processor (see \ref Page_DeviceSupport).</td>
  117. * </tr>
  118. * <tr>
  119. * <td><tt>MCU</tt></td>
  120. * <td>Name of the Atmel processor model (e.g. <tt>at90usb1287</tt>).</td>
  121. * </tr>
  122. * <tr>
  123. * <td><tt>SRC</tt></td>
  124. * <td>List of relative or absolute paths to the application C (.c), C++ (.cpp) and Assembly (.S) source files.</td>
  125. * </tr>
  126. * <tr>
  127. * <td><tt>F_USB</tt></td>
  128. * <td>Speed in Hz of the input clock frequency to the target's USB controller.</td>
  129. * </tr>
  130. * <tr>
  131. * <td><tt>LUFA_PATH</tt></td>
  132. * <td>Path to the LUFA library core, either relative or absolute (e.g. <tt>../LUFA-000000/LUFA/</tt>).</td>
  133. * </tr>
  134. * </table>
  135. *
  136. * \section SSec_BuildModule_BUILD_OptionalParams Optional Parameters
  137. *
  138. * <table>
  139. * <tr>
  140. * <td><tt>BOARD</tt></td>
  141. * <td>LUFA board hardware drivers to use (see \ref Page_DeviceSupport).</td>
  142. * </tr>
  143. * <tr>
  144. * <td><tt>OPTIMIZATION</tt></td>
  145. * <td>Optimization level to use when compiling source files (see GCC manual).</td>
  146. * </tr>
  147. * <tr>
  148. * <td><tt>C_STANDARD</tt></td>
  149. * <td>Version of the C standard to apply when compiling C++ source files (see GCC manual).</td>
  150. * </tr>
  151. * <tr>
  152. * <td><tt>CPP_STANDARD</tt></td>
  153. * <td>Version of the C++ standard to apply when compiling C++ source files (see GCC manual).</td>
  154. * </tr>
  155. * <tr>
  156. * <td><tt>DEBUG_FORMAT</tt></td>
  157. * <td>Format of the debug information to embed in the generated object files (see GCC manual).</td>
  158. * </tr>
  159. * <tr>
  160. * <td><tt>DEBUG_LEVEL</tt></td>
  161. * <td>Level of the debugging information to embed in the generated object files (see GCC manual).</td>
  162. * </tr>
  163. * <tr>
  164. * <td><tt>F_CPU</tt></td>
  165. * <td>Speed of the processor CPU clock, in Hz.</td>
  166. * </tr>
  167. * <tr>
  168. * <td><tt>C_FLAGS</tt></td>
  169. * <td>Flags to pass to the C compiler only, after the automatically generated flags.</td>
  170. * </tr>
  171. * <tr>
  172. * <td><tt>CPP_FLAGS</tt></td>
  173. * <td>Flags to pass to the C++ compiler only, after the automatically generated flags.</td>
  174. * </tr>
  175. * <tr>
  176. * <td><tt>ASM_FLAGS</tt></td>
  177. * <td>Flags to pass to the assembler only, after the automatically generated flags.</td>
  178. * </tr>
  179. * <tr>
  180. * <td><tt>CC_FLAGS</tt></td>
  181. * <td>Common flags to pass to the C/C++ compiler and assembler, after the automatically generated flags.</td>
  182. * </tr>
  183. * <tr>
  184. * <td><tt>LD_FLAGS</tt></td>
  185. * <td>Flags to pass to the linker, after the automatically generated flags.</td>
  186. * </tr>
  187. * <tr>
  188. * <td><tt>OBJDIR</tt></td>
  189. * <td>Directory to place the generated object and dependency files. If set to "." the same folder as the source file will be used.
  190. * \note When this option is enabled, all source filenames <b>must</b> be unique.</td>
  191. * </tr>
  192. * <tr>
  193. * <td><tt>OBJECT_FILES</tt></td>
  194. * <td>List of additional object files that should be linked into the resulting binary.</td>
  195. * </tr>
  196. * </table>
  197. *
  198. * \section SSec_BuildModule_BUILD_ProvidedVariables Module Provided Variables
  199. *
  200. * <table>
  201. * <tr>
  202. * <td><i>None</i></td>
  203. * </tr>
  204. * </table>
  205. *
  206. * \section SSec_BuildModule_BUILD_ProvidedMacros Module Provided Macros
  207. *
  208. * <table>
  209. * <tr>
  210. * <td><i>None</i></td>
  211. * </tr>
  212. * </table>
  213. */
  214. /** \page Page_BuildModule_CORE The CORE build module
  215. *
  216. * The core LUFA build system module, providing common build system help and information targets.
  217. *
  218. * To use this module in your application makefile, add the following code:
  219. * \code
  220. * include $(LUFA_PATH)/Build/lufa_core.mk
  221. * \endcode
  222. *
  223. * \section SSec_BuildModule_CORE_Requirements Requirements
  224. * This module has no requirements outside a standard *nix shell like environment; the <tt>sh</tt>
  225. * shell, GNU <tt>make</tt> and *nix CoreUtils (<tt>echo</tt>, <tt>printf</tt>, etc.).
  226. *
  227. * \section SSec_BuildModule_CORE_Targets Targets
  228. *
  229. * <table>
  230. * <tr>
  231. * <td><tt>help</tt></td>
  232. * <td>Display build system help and configuration information.</td>
  233. * </tr>
  234. * <tr>
  235. * <td><tt>list_targets</tt></td>
  236. * <td>List all available build targets from the build system.</td>
  237. * </tr>
  238. * <tr>
  239. * <td><tt>list_modules</tt></td>
  240. * <td>List all available build modules from the build system.</td>
  241. * </tr>
  242. * <tr>
  243. * <td><tt>list_mandatory</tt></td>
  244. * <td>List all mandatory parameters required by the included modules.</td>
  245. * </tr>
  246. * <tr>
  247. * <td><tt>list_optional</tt></td>
  248. * <td>List all optional parameters required by the included modules.</td>
  249. * </tr>
  250. * <tr>
  251. * <td><tt>list_provided</tt></td>
  252. * <td>List all variables provided by the included modules.</td>
  253. * </tr>
  254. * <tr>
  255. * <td><tt>list_macros</tt></td>
  256. * <td>List all macros provided by the included modules.</td>
  257. * </tr>
  258. * </table>
  259. *
  260. * \section SSec_BuildModule_CORE_MandatoryParams Mandatory Parameters
  261. *
  262. * <table>
  263. * <tr>
  264. * <td><i>None</i></td>
  265. * </tr>
  266. * </table>
  267. *
  268. * \section SSec_BuildModule_CORE_OptionalParams Optional Parameters
  269. *
  270. * <table>
  271. * <tr>
  272. * <td><i>None</i></td>
  273. * </tr>
  274. * </table>
  275. *
  276. * \section SSec_BuildModule_CORE_ProvidedVariables Module Provided Variables
  277. *
  278. * <table>
  279. * <tr>
  280. * <td><i>None</i></td>
  281. * </tr>
  282. * </table>
  283. *
  284. * \section SSec_BuildModule_CORE_ProvidedMacros Module Provided Macros
  285. *
  286. * <table>
  287. * <tr>
  288. * <td><i>None</i></td>
  289. * </tr>
  290. * </table>
  291. */
  292. /** \page Page_BuildModule_ATPROGRAM The ATPROGRAM build module
  293. *
  294. * The ATPROGRAM programming utility LUFA build system module, providing targets to reprogram an
  295. * Atmel processor FLASH and EEPROM memories with a project's compiled binary output files.
  296. *
  297. * To use this module in your application makefile, add the following code:
  298. * \code
  299. * include $(LUFA_PATH)/Build/lufa_atprogram.mk
  300. * \endcode
  301. *
  302. * \section SSec_BuildModule_ATPROGRAM_Requirements Requirements
  303. * This module requires the <tt>atprogram.exe</tt> utility to be available in your system's <b>PATH</b>
  304. * variable. The <tt>atprogram.exe</tt> utility is distributed in Atmel AVR Studio 5.x and Atmel Studio 6.x
  305. * inside the application install folder's "\avrdbg" subdirectory.
  306. *
  307. * \section SSec_BuildModule_ATPROGRAM_Targets Targets
  308. *
  309. * <table>
  310. * <tr>
  311. * <td><tt>atprogram</tt></td>
  312. * <td>Program the device FLASH memory with the application's executable data.</td>
  313. * </tr>
  314. * <tr>
  315. * <td><tt>atprogram-ee</tt></td>
  316. * <td>Program the device EEPROM memory with the application's EEPROM data.</td>
  317. * </tr>
  318. * </table>
  319. *
  320. * \section SSec_BuildModule_ATPROGRAM_MandatoryParams Mandatory Parameters
  321. *
  322. * <table>
  323. * <tr>
  324. * <td><tt>MCU</tt></td>
  325. * <td>Name of the Atmel processor model (e.g. <tt>at90usb1287</tt>).</td>
  326. * </tr>
  327. * <tr>
  328. * <td><tt>TARGET</tt></td>
  329. * <td>Name of the application output file prefix (e.g. <tt>TestApplication</tt>).</td>
  330. * </tr>
  331. * </table>
  332. *
  333. * \section SSec_BuildModule_ATPROGRAM_OptionalParams Optional Parameters
  334. *
  335. * <table>
  336. * <tr>
  337. * <td><tt>ATPROGRAM_PROGRAMMER</tt></td>
  338. * <td>Name of the Atmel programmer or debugger tool to communicate with (e.g. <tt>jtagice3</tt>).</td>
  339. * </tr>
  340. * <tr>
  341. * <td><tt>ATPROGRAM_INTERFACE</tt></td>
  342. * <td>Name of the programming interface to use when programming the target (e.g. <tt>spi</tt>).</td>
  343. * </tr>
  344. * <tr>
  345. * <td><tt>ATPROGRAM_PORT</tt></td>
  346. * <td>Name of the communication port to use when when programming with a serially connected tool (e.g. <tt>COM2</tt>).</td>
  347. * </tr>
  348. * </table>
  349. *
  350. * \section SSec_BuildModule_ATPROGRAM_ProvidedVariables Module Provided Variables
  351. *
  352. * <table>
  353. * <tr>
  354. * <td><i>None</i></td>
  355. * </tr>
  356. * </table>
  357. *
  358. * \section SSec_BuildModule_ATPROGRAM_ProvidedMacros Module Provided Macros
  359. *
  360. * <table>
  361. * <tr>
  362. * <td><i>None</i></td>
  363. * </tr>
  364. * </table>
  365. */
  366. /** \page Page_BuildModule_AVRDUDE The AVRDUDE build module
  367. *
  368. * The AVRDUDE programming utility LUFA build system module, providing targets to reprogram an
  369. * Atmel processor FLASH and EEPROM memories with a project's compiled binary output files.
  370. *
  371. * To use this module in your application makefile, add the following code:
  372. * \code
  373. * include $(LUFA_PATH)/Build/lufa_avrdude.mk
  374. * \endcode
  375. *
  376. * \section SSec_BuildModule_AVRDUDE_Requirements Requirements
  377. * This module requires the <tt>avrdude</tt> utility to be available in your system's <b>PATH</b>
  378. * variable. The <tt>avrdude</tt> utility is distributed in the old WinAVR project releases for
  379. * Windows (<a>winavr.sourceforge.net</a>) or can be installed on *nix systems via the project's
  380. * source code (<a>https://savannah.nongnu.org/projects/avrdude</a>) or through the package manager.
  381. *
  382. * \section SSec_BuildModule_AVRDUDE_Targets Targets
  383. *
  384. * <table>
  385. * <tr>
  386. * <td><tt>avrdude</tt></td>
  387. * <td>Program the device FLASH memory with the application's executable data.</td>
  388. * </tr>
  389. * <tr>
  390. * <td><tt>avrdude</tt></td>
  391. * <td>Program the device EEPROM memory with the application's EEPROM data.</td>
  392. * </tr>
  393. * </table>
  394. *
  395. * \section SSec_BuildModule_AVRDUDE_MandatoryParams Mandatory Parameters
  396. *
  397. * <table>
  398. * <tr>
  399. * <td><tt>MCU</tt></td>
  400. * <td>Name of the Atmel processor model (e.g. <tt>at90usb1287</tt>).</td>
  401. * </tr>
  402. * <tr>
  403. * <td><tt>TARGET</tt></td>
  404. * <td>Name of the application output file prefix (e.g. <tt>TestApplication</tt>).</td>
  405. * </tr>
  406. * </table>
  407. *
  408. * \section SSec_BuildModule_AVRDUDE_OptionalParams Optional Parameters
  409. *
  410. * <table>
  411. * <tr>
  412. * <td><tt>AVRDUDE_PROGRAMMER</tt></td>
  413. * <td>Name of the programmer or debugger tool to communicate with (e.g. <tt>jtagicemkii</tt>).</td>
  414. * </tr>
  415. * <tr>
  416. * <td><tt>ATPROGRAM_PORT</tt></td>
  417. * <td>Name of the communication port to use when when programming with the connected tool (e.g. <tt>COM2</tt>, <tt>/dev/ttyUSB0</tt> or <tt>usb</tt>).</td>
  418. * </tr>
  419. * <tr>
  420. * <td><tt>ATPROGRAM_FLAGS</tt></td>
  421. * <td>Additional flags to pass to avrdude when programming, applied after the automatically generated flags.</td>
  422. * </tr>
  423. * </table>
  424. *
  425. * \section SSec_BuildModule_AVRDUDE_ProvidedVariables Module Provided Variables
  426. *
  427. * <table>
  428. * <tr>
  429. * <td><i>None</i></td>
  430. * </tr>
  431. * </table>
  432. *
  433. * \section SSec_BuildModule_AVRDUDE_ProvidedMacros Module Provided Macros
  434. *
  435. * <table>
  436. * <tr>
  437. * <td><i>None</i></td>
  438. * </tr>
  439. * </table>
  440. */
  441. /** \page Page_BuildModule_CPPCHECK The CPPCHECK build module
  442. *
  443. * The CPPCHECK programming utility LUFA build system module, providing targets to statically
  444. * analyze C and C++ source code for errors and performance/style issues.
  445. *
  446. * To use this module in your application makefile, add the following code:
  447. * \code
  448. * include $(LUFA_PATH)/Build/lufa_cppcheck.mk
  449. * \endcode
  450. *
  451. * \section SSec_BuildModule_CPPCHECK_Requirements Requirements
  452. * This module requires the <tt>cppcheck</tt> utility to be available in your system's <b>PATH</b>
  453. * variable. The <tt>cppcheck</tt> utility is distributed through the project's home page
  454. * (<a>http://cppcheck.sourceforge.net</a>) for Windows, and can be installed on *nix systems via
  455. * the project's source code or through the package manager.
  456. *
  457. * \section SSec_BuildModule_CPPCHECK_Targets Targets
  458. *
  459. * <table>
  460. * <tr>
  461. * <td><tt>cppcheck</tt></td>
  462. * <td>Statically analyze the project source code for issues.</td>
  463. * </tr>
  464. * <tr>
  465. * <td><tt>cppcheck-config</tt></td>
  466. * <td>Check the <tt>cppcheck</tt> configuration - scan source code and warn about missing header files and other issues.</td>
  467. * </tr>
  468. * </table>
  469. *
  470. * \section SSec_BuildModule_CPPCHECK_MandatoryParams Mandatory Parameters
  471. *
  472. * <table>
  473. * <tr>
  474. * <td><tt>SRC</tt></td>
  475. * <td>List of source files to statically analyze.</td>
  476. * </tr>
  477. * </table>
  478. *
  479. * \section SSec_BuildModule_CPPCHECK_OptionalParams Optional Parameters
  480. *
  481. * <table>
  482. * <tr>
  483. * <td><tt>CPPCHECK_INCLUDES</tt></td>
  484. * <td>Path of extra directories to check when attemting to resolve C/C++ header file includes.</td>
  485. * </tr>
  486. * <tr>
  487. * <td><tt>CPPCHECK_EXCLUDES</tt></td>
  488. * <td>Paths or path fragments to exclude when analyzing.</td>
  489. * </tr>
  490. * <tr>
  491. * <td><tt>CPPCHECK_MSG_TEMPLATE</tt></td>
  492. * <td>Output message template to use when printing errors, warnings and information (see <tt>cppcheck</tt> documentation).</td>
  493. * </tr>
  494. * <tr>
  495. * <td><tt>CPPCHECK_ENABLE</tt></td>
  496. * <td>Analysis rule categories to enable (see <tt>cppcheck</tt> documentation).</td>
  497. * </tr>
  498. * <tr>
  499. * <td><tt>CPPCHECK_SUPPRESS</tt></td>
  500. * <td>Specific analysis rules to suppress (see <tt>cppcheck</tt> documentation).</td>
  501. * </tr>
  502. * <tr>
  503. * <td><tt>CPPCHECK_FAIL_ON_WARNING</tt></td>
  504. * <td>Set to <b>Y</b> to fail the analysis job with an error exit code if warnings are found, <b>N</b> to continue without failing.</td>
  505. * </tr>
  506. * <tr>
  507. * <td><tt>CPPCHECK_QUIET</tt></td>
  508. * <td>Set to <b>Y</b> to suppress all output except warnings and errors, <b>N</b> to show verbose output information.</td>
  509. * </tr>
  510. * <tr>
  511. * <td><tt>CPPCHECK_FLAGS</tt></td>
  512. * <td>Extra flags to pass to <tt>cppcheck</tt>, after the automatically generated flags.</td>
  513. * </tr>
  514. * </table>
  515. *
  516. * \section SSec_BuildModule_CPPCHECK_ProvidedVariables Module Provided Variables
  517. *
  518. * <table>
  519. * <tr>
  520. * <td><i>None</i></td>
  521. * </tr>
  522. * </table>
  523. *
  524. * \section SSec_BuildModule_CPPCHECK_ProvidedMacros Module Provided Macros
  525. *
  526. * <table>
  527. * <tr>
  528. * <td><i>None</i></td>
  529. * </tr>
  530. * </table>
  531. */
  532. /** \page Page_BuildModule_DFU The DFU build module
  533. *
  534. * The DFU programming utility LUFA build system module, providing targets to reprogram an
  535. * Atmel processor FLASH and EEPROM memories with a project's compiled binary output files.
  536. * This module requires a DFU class bootloader to be running in the target, compatible with
  537. * the DFU bootloader protocol as published by Atmel.
  538. *
  539. * To use this module in your application makefile, add the following code:
  540. * \code
  541. * include $(LUFA_PATH)/Build/lufa_dfu.mk
  542. * \endcode
  543. *
  544. * \section SSec_BuildModule_DFU_Requirements Requirements
  545. * This module requires either the <tt>batchisp</tt> utility from Atmel's FLIP utility, or the open
  546. * source <tt>dfu-programmer</tt> utility (<a>http://dfu-programmer.sourceforge.net/</a>) to be
  547. * available in your system's <b>PATH</b> variable. On *nix systems the <tt>dfu-programmer</tt> utility
  548. * can be installed via the project's source code or through the package manager.
  549. *
  550. * \section SSec_BuildModule_DFU_Targets Targets
  551. *
  552. * <table>
  553. * <tr>
  554. * <td><tt>dfu</tt></td>
  555. * <td>Program the device FLASH memory with the application's executable data using <tt>dfu-programmer</tt>.</td>
  556. * </tr>
  557. * <tr>
  558. * <td><tt>dfu-ee</tt></td>
  559. * <td>Program the device EEPROM memory with the application's EEPROM data using <tt>dfu-programmer</tt>.</td>
  560. * </tr>
  561. * <tr>
  562. * <td><tt>flip</tt></td>
  563. * <td>Program the device FLASH memory with the application's executable data using <tt>batchisp</tt>.</td>
  564. * </tr>
  565. * <tr>
  566. * <td><tt>flip-ee</tt></td>
  567. * <td>Program the device EEPROM memory with the application's EEPROM data using <tt>batchisp</tt>.</td>
  568. * </tr>
  569. * </table>
  570. *
  571. * \section SSec_BuildModule_DFU_MandatoryParams Mandatory Parameters
  572. *
  573. * <table>
  574. * <tr>
  575. * <td><tt>MCU</tt></td>
  576. * <td>Name of the Atmel processor model (e.g. <tt>at90usb1287</tt>).</td>
  577. * </tr>
  578. * <tr>
  579. * <td><tt>TARGET</tt></td>
  580. * <td>Name of the application output file prefix (e.g. <tt>TestApplication</tt>).</td>
  581. * </tr>
  582. * </table>
  583. *
  584. * \section SSec_BuildModule_DFU_OptionalParams Optional Parameters
  585. *
  586. * <table>
  587. * <tr>
  588. * <td><i>None</i></td>
  589. * </tr>
  590. * </table>
  591. *
  592. * \section SSec_BuildModule_DFU_ProvidedVariables Module Provided Variables
  593. *
  594. * <table>
  595. * <tr>
  596. * <td><i>None</i></td>
  597. * </tr>
  598. * </table>
  599. *
  600. * \section SSec_BuildModule_DFU_ProvidedMacros Module Provided Macros
  601. *
  602. * <table>
  603. * <tr>
  604. * <td><i>None</i></td>
  605. * </tr>
  606. * </table>
  607. */
  608. /** \page Page_BuildModule_DOXYGEN The DOXYGEN build module
  609. *
  610. * The DOXYGEN code documentation utility LUFA build system module, providing targets to generate
  611. * project HTML and other format documentation from a set of source files that include special
  612. * Doxygen comments.
  613. *
  614. * To use this module in your application makefile, add the following code:
  615. * \code
  616. * include $(LUFA_PATH)/Build/lufa_doxygen.mk
  617. * \endcode
  618. *
  619. * \section SSec_BuildModule_DOXYGEN_Requirements Requirements
  620. * This module requires the <tt>doxygen</tt> utility from the Doxygen website
  621. * (<a>http://www.stack.nl/~dimitri/doxygen/</a>) to be available in your system's <b>PATH</b>
  622. * variable. On *nix systems the <tt>doxygen</tt> utility can be installed via the project's source
  623. * code or through the package manager.
  624. *
  625. * \section SSec_BuildModule_DOXYGEN_Targets Targets
  626. *
  627. * <table>
  628. * <tr>
  629. * <td><tt>doxygen</tt></td>
  630. * <td>Generate project documentation.</td>
  631. * </tr>
  632. * </table>
  633. *
  634. * \section SSec_BuildModule_DOXYGEN_MandatoryParams Mandatory Parameters
  635. *
  636. * <table>
  637. * <tr>
  638. * <td><tt>LUFA_PATH</tt></td>
  639. * <td>Path to the LUFA library core, either relative or absolute (e.g. <tt>../LUFA-000000/LUFA/</tt>).</td>
  640. * </tr>
  641. * </table>
  642. *
  643. * \section SSec_BuildModule_DOXYGEN_OptionalParams Optional Parameters
  644. *
  645. * <table>
  646. * <tr>
  647. * <td><tt>DOXYGEN_CONF</tt></td>
  648. * <td>Name and path of the base Doxygen configuration file for the project.</td>
  649. * </tr>
  650. * <tr>
  651. * <td><tt>DOXYGEN_FAIL_ON_WARNING</tt></td>
  652. * <td>Set to <b>Y</b> to fail the generation with an error exit code if warnings are found other than unsupported configuration parameters, <b>N</b> to continue without failing.</td>
  653. * </tr>
  654. * <tr>
  655. * <td><tt>DOXYGEN_OVERRIDE_PARAMS</tt></td>
  656. * <td>Extra Doxygen configuration parameters to apply, overriding the corresponding config entry in the project's configuration file (e.g. <tt>QUIET=YES</tt>).</td>
  657. * </tr>
  658. * </table>
  659. *
  660. * \section SSec_BuildModule_DOXYGEN_ProvidedVariables Module Provided Variables
  661. *
  662. * <table>
  663. * <tr>
  664. * <td><i>None</i></td>
  665. * </tr>
  666. * </table>
  667. *
  668. * \section SSec_BuildModule_DOXYGEN_ProvidedMacros Module Provided Macros
  669. *
  670. * <table>
  671. * <tr>
  672. * <td><i>None</i></td>
  673. * </tr>
  674. * </table>
  675. */
  676. /** \page Page_BuildModule_HID The HID build module
  677. *
  678. * The HID programming utility LUFA build system module, providing targets to reprogram an
  679. * Atmel processor's FLASH memory with a project's compiled binary output file. This module
  680. * requires a HID class bootloader to be running in the target, using a protocol compatible
  681. * with the PJRC "HalfKay" protocol (<a>http://www.pjrc.com/teensy/halfkay_protocol.html</a>).
  682. *
  683. * To use this module in your application makefile, add the following code:
  684. * \code
  685. * include $(LUFA_PATH)/Build/lufa_hid.mk
  686. * \endcode
  687. *
  688. * \section SSec_BuildModule_HID_Requirements Requirements
  689. * This module requires either the <tt>hid_bootloader_cli</tt> utility from the included LUFA HID
  690. * class bootloader API subdirectory, or the <tt>teensy_loader_cli</tt> utility from PJRC
  691. * (<a>http://www.pjrc.com/teensy/loader_cli.html</a>) to be available in your system's <b>PATH</b>
  692. * variable.
  693. *
  694. * \section SSec_BuildModule_HID_Targets Targets
  695. *
  696. * <table>
  697. * <tr>
  698. * <td><tt>hid</tt></td>
  699. * <td>Program the device FLASH memory with the application's executable data using <tt>hid_bootloader_cli</tt>.</td>
  700. * </tr>
  701. * <tr>
  702. * <td><tt>hid-ee</tt></td>
  703. * <td>Program the device EEPROM memory with the application's EEPROM data using <tt>hid_bootloader_cli</tt> and
  704. * a temporary AVR application programmed into the target's FLASH.
  705. * \note This will erase the currently loaded application in the target.</td>
  706. * </tr>
  707. * <tr>
  708. * <td><tt>teensy</tt></td>
  709. * <td>Program the device FLASH memory with the application's executable data using <tt>teensy_loader_cli</tt>.</td>
  710. * </tr>
  711. * <tr>
  712. * <td><tt>teensy-ee</tt></td>
  713. * <td>Program the device EEPROM memory with the application's EEPROM data using <tt>teensy_loader_cli</tt> and
  714. * a temporary AVR application programmed into the target's FLASH.
  715. * \note This will erase the currently loaded application in the target.</td>
  716. * </tr>
  717. * </table>
  718. *
  719. * \section SSec_BuildModule_HID_MandatoryParams Mandatory Parameters
  720. *
  721. * <table>
  722. * <tr>
  723. * <td><tt>MCU</tt></td>
  724. * <td>Name of the Atmel processor model (e.g. <tt>at90usb1287</tt>).</td>
  725. * </tr>
  726. * <tr>
  727. * <td><tt>TARGET</tt></td>
  728. * <td>Name of the application output file prefix (e.g. <tt>TestApplication</tt>).</td>
  729. * </tr>
  730. * </table>
  731. *
  732. * \section SSec_BuildModule_HID_OptionalParams Optional Parameters
  733. *
  734. * <table>
  735. * <tr>
  736. * <td><i>None</i></td>
  737. * </tr>
  738. * </table>
  739. *
  740. * \section SSec_BuildModule_HID_ProvidedVariables Module Provided Variables
  741. *
  742. * <table>
  743. * <tr>
  744. * <td><i>None</i></td>
  745. * </tr>
  746. * </table>
  747. *
  748. * \section SSec_BuildModule_HID_ProvidedMacros Module Provided Macros
  749. *
  750. * <table>
  751. * <tr>
  752. * <td><i>None</i></td>
  753. * </tr>
  754. * </table>
  755. */
  756. /** \page Page_BuildModule_SOURCES The SOURCES build module
  757. *
  758. * The SOURCES LUFA build system module, providing variables listing the various LUFA source files
  759. * required to be build by a project for a given LUFA module. This module gives a way to reference
  760. * LUFA source files symbollically, so that changes to the library structure do not break the library
  761. * makefile.
  762. *
  763. * To use this module in your application makefile, add the following code:
  764. * \code
  765. * include $(LUFA_PATH)/Build/lufa_sources.mk
  766. * \endcode
  767. *
  768. * \section SSec_BuildModule_SOURCES_Requirements Requirements
  769. * None.
  770. *
  771. * \section SSec_BuildModule_SOURCES_Targets Targets
  772. *
  773. * <table>
  774. * <tr>
  775. * <td><i>None</i></td>
  776. * </tr>
  777. * </table>
  778. *
  779. * \section SSec_BuildModule_SOURCES_MandatoryParams Mandatory Parameters
  780. *
  781. * <table>
  782. * <tr>
  783. * <td><tt>LUFA_PATH</tt></td>
  784. * <td>Path to the LUFA library core, either relative or absolute (e.g. <tt>../LUFA-000000/LUFA/</tt>).</td>
  785. * </tr>
  786. * <tr>
  787. * <td><tt>ARCH</tt></td>
  788. * <td>Architecture of the target processor (see \ref Page_DeviceSupport).</td>
  789. * </tr>
  790. * </table>
  791. *
  792. * \section SSec_BuildModule_SOURCES_OptionalParams Optional Parameters
  793. *
  794. * <table>
  795. * <tr>
  796. * <td><i>None</i></td>
  797. * </tr>
  798. * </table>
  799. *
  800. * \section SSec_BuildModule_SOURCES_ProvidedVariables Module Provided Variables
  801. *
  802. * <table>
  803. * <tr>
  804. * <td><tt>LUFA_SRC_USB</tt></td>
  805. * <td>List of LUFA USB driver source files.</td>
  806. * </tr>
  807. * <tr>
  808. * <td><tt>LUFA_SRC_USBCLASS</tt></td>
  809. * <td>List of LUFA USB Class driver source files.</td>
  810. * </tr>
  811. * <tr>
  812. * <td><tt>LUFA_SRC_TEMPERATURE</tt></td>
  813. * <td>List of LUFA temperature sensor driver source files.</td>
  814. * </tr>
  815. * <tr>
  816. * <td><tt>LUFA_SRC_SERIAL</tt></td>
  817. * <td>List of LUFA Serial U(S)ART driver source files.</td>
  818. * </tr>
  819. * <tr>
  820. * <td><tt>LUFA_SRC_TWI</tt></td>
  821. * <td>List of LUFA TWI driver source files.</td>
  822. * </tr>
  823. * <tr>
  824. * <td><tt>LUFA_SRC_PLATFORM</tt></td>
  825. * <td>List of LUFA architecture specific platform management source files.</td>
  826. * </tr>
  827. * </table>
  828. *
  829. * \section SSec_BuildModule_SOURCES_ProvidedMacros Module Provided Macros
  830. *
  831. * <table>
  832. * <tr>
  833. * <td><i>None</i></td>
  834. * </tr>
  835. * </table>
  836. */