doxygen에서 관련 #define 들을 간편하게 grouping 하는 방법?

gudokim의 이미지

아래 소스는 doxygen에서 grouping 하는 것을 테스트 해본것입니다만... 좀더 간편한 방법이 없을까요??
원래는 라인끝 주석으로 보기에 간편했습니다만...
문서화 목적으로 doxygen에 맞게 수정하다 보니...
좀 정신없어 지는군요....
아무리 문서화 라지만... 코드가 넘 조잡해지는거 같아서..
좋은 조언 부탁 드립니다.
----------------------- 수정 전 --------------------------
// instruction sets for SPI EEPROM
#define WREN_CMD 0x06 // set write enable latch
#define WRDI_CMD 0x04 // reset write enabme latch
#define RDSR_CMD 0x05 // read status register
#define WRSR_CMD 0x01 // write status register
#define READ_CMD 0x03 // read data from memory array
#define WRITE_CMD 0x02 // write data to memory array
----------------------- 수정 후 --------------------------

/// @name instruction sets for SPI EEPROM
//@{
/** set write enable latch */
#define WREN_CMD 0x06
/** reset write enabme latch */
#define WRDI_CMD 0x04
/** read status register */
#define RDSR_CMD 0x05
/** write status register */
#define WRSR_CMD 0x01
/** read data from memory array */
#define READ_CMD 0x03
/** write data to memory array */
#define WRITE_CMD 0x02
//@}

File attachments: 
첨부파일 크기
HTML icon test_8h.html4.18 KB
파일 test.h463바이트
HTML icon test_8h-source.html3.11 KB
HTML icon test_8h.html2.36 KB
gudokim의 이미지

//--------------------------------------------------------------
/// @name instruction sets for SPI EEPROM
//--------------------------------------------------------------
//@{
#define WREN_CMD 0x06 /**< set write enable latch */
#define WRDI_CMD 0x04 /**< reset write enabme latch */
#define RDSR_CMD 0x05 /**< read status register */
#define WRSR_CMD 0x01 /**< write status register */
#define READ_CMD 0x03 /**< read data from memory array */
#define WRITE_CMD 0x02 /**< write data to memory array */
//@}
//--------------------------------------------------------------

위와 같이 바꾸었습니다만..
여전히...귀차니즘이...흘

Finds a way...

Fe.head의 이미지

cpp 이라면.

//@{
#define WREN_CMD	0x06 ///< set write enable latch
#define WRDI_CMD	0x04 ///< reset write enabme latch 
...

고작 블로킹 하나, 고작 25점 중에 1점, 고작 부활동
"만약 그 순간이 온다면 그때가 네가 배구에 빠지는 순간이야"

익명 사용자의 이미지

cpp 이라면 은 무엇을 의미하는 것인지요..??
확장자가 cpp는 아닐테고...

위와 같이 변경하니까..
이상하게 나옵니다.

댓글 첨부 파일: 
첨부파일 크기
HTML icon 0바이트
gudokim의 이미지

앗 손님모드였다니..
위 첨부파일 잘못 올렸습니다. ^^;;

댓글 첨부 파일: 
첨부파일 크기
HTML icon 0바이트

Finds a way...

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.