Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7872599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:14:59+00:00 2026-06-03T02:14:59+00:00

I have a program that multiple people write and edit. Some parts of the

  • 0

I have a program that multiple people write and edit. Some parts of the program link software values to specific pins specified by the user. The pins that are in use, are spread out between multiple files, and I would like to create one central reference. I would like to use doxygen to create a reference that lists the pin number, and then the assigned purpose. All of the pin assignments are defined in header files like so:

//spi1.h
// Pin assignments (GPIO row A)
#define SPI_SS_1            (0)
#define SPI_CLK_1           (1)
#define SPI_MOSI_1          (2)
#define SPI_MISO_1          (3)

//spi2.h
// Pin assignments (GPIO row A)
#define SPI_CLK_2           (7)
#define SPI_DOUT_2          (8)
#define SPI_DIN_2           (9)
#define SPI_CS_2_0          (10)
#define SPI_CS_2_1          (11)
#define SPI_CS_2_2          (12)
#define SPI_CS_2_3          (13)

How would I use doxygen to create a reference chart for these values?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:15:01+00:00Added an answer on June 3, 2026 at 2:15 am

    You can group these #defines together using doxygen’s grouping mechanisms. From this page:

    To define a group, you should put the \defgroup command in a special comment block. The first argument of the command is a label that should uniquely identify the group. The second argument is the name or title of the group as it should appear in the documentation.

    You can make an entity a member of a specific group by putting a \ingroup command inside its documentation block.

    To avoid putting \ingroup commands in the documentation for each member you can also group members together by the open marker @{ before the group and the closing marker @} after the group. The markers can be put in the documentation of the group definition or in a separate documentation block.

    In practice, you could put in each of your header files something like:

    /** \addtogroup pin-assignments
     *  @{
     */
    #define SPI_SS_1            (0)
    #define SPI_CLK_1           (1)
    #define SPI_MOSI_1          (2)
    #define SPI_MISO_1          (3)
    /** @}*/
    

    to add each of the above #defines to the pin-assignments group. You can then document this group in more detail using the defgroup command, for example:

    /** \defgroup pin-assignments Pin assignments (GPIO row A) 
    
    More detailed description goes here.
    */
    

    (note: the above has not been tested)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that works with multiple threads. For each I set uncaught
I have been making a program that creates multiple CSV's from another source CSV
I have a contact manager program that I'd like to design for multiple network
I have a C# program that retrieves multiple rows from a DB but currently
I have a program that scales badly to multiple threads, although – theoretically –
I have a program that is creating multiple files. There is a function for
I have a program that subscribes to multiple Exchange 2010 mailboxes using EWS Managed
I have a search program that has multiple input text boxes that correspond to
I have a program that scans an image and converts gems to specific numbers.
I can understand how one can write a program that uses multiple processes or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.