嵌入式開發_Keil_USE DOXYGEN FOR AUTOMATED CODE DOCUMENTATION

轉載自http://www.keil.com/support/docs/2734.htm

µVISION: USE DOXYGEN FOR AUTOMATED CODE DOCUMENTATION


Information in this article applies to:

  • µVision Version 2.3x
  • µVision Version 3.00

QUESTION

I use DoxyGen which is a documentation system for C/C++ to document my source. Is there a way to use it with µVision projects?

ANSWER

Yes. DoxyGen can be integrated with a few simple steps:

Installation

  1. Get the Windows Installation of DoxyGen from http://www.doxygen.org and run it.
  2. Optionally you may install AT&T GraphViz, if you want DoxyGen to be able generate graphics. (See link below)
  3. Open Tools - Customize Tools Menu... in µVision.
  4. Add a new entry and call it "DoxyGen: Make Template". Settings are:
    • Command: C:\Program Files\doxyGen\bin\DoxyGen.exe
    • Initial Folder: not required
    • Arguments: -g @P.doxy
  5. Add a new entry and call it "DoxyGen: Generate Documentation". Settings are:
    • Command: C:\Program Files\doxyGen\bin\DoxyGen.exe
    • Initial Folder: not required
    • Arguments: @P.doxy

Usage

  1. Open the project that you want to document in µVision.
  2. Use Tools - DoxyGen: Make Template to generate a configuration template for DoxyGen. The file will be placed in the folder where your uv2-file is stored. It will have the project name and the extension .doxy.
  3. Add the projectname.doxy file to your Source-Tree and open it in the µVision editor. The following settings should be changed:
    OPTIMIZE_OUTPUT_FOR_C = YES
    WARN_FORMAT = "$file($line): $text"
    You should look through the other settings and adjust them. All of them are commented in the .doxy file.
  4. Use Tools - DoxyGen: Make Documentation to start DoxyGen for source files in the project folder.

MORE INFORMATION

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Thursday, May 6, 2004

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章