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 8101661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:01:55+00:00 2026-06-05T23:01:55+00:00

I am attempting to compile some code, but am running into some problems that

  • 0

I am attempting to compile some code, but am running into some problems that I cannot seem to figure out. Originally, I had three errors, but I have narrowed it down to one that I cannot seem to solve. There are three files I am working with right now: voltcon.c, mss_ace.c, and mss_ace.h. I have pasted the relevant code below:

Within mss_ace.c

    void ACE_init( void )
    {
    /* Initialize driver's internal data. */
        ace_init_flags();

    /* Initialize the data structures used by conversion functions. */
    ace_init_convert();
    }

    void ACE_configure_sdd
    (
sdd_id_t            sdd_id,
sdd_resolution_t    resolution,
    uint8_t             mode,
    sdd_update_method_t sync_update
    )
    {
    ...
    }

Within mss_ace.h

    typedef enum
    {
        SDD0_OUT = 0,    /*!< Analog Module 0 Sigma Delta DAC */
        SDD1_OUT = 1,    /*!< Analog Module 1 Sigma Delta DAC */
        SDD2_OUT = 2,    /*!< Analog Module 2 Sigma Delta DAC */
        NB_OF_SDD = 3
    } sdd_id_t;

    typedef enum
    {
        SDD_8_BITS = 0,
        SDD_16_BITS = 4,
        SDD_24_BITS = 8
    } sdd_resolution_t;

    #define SDD_CURRENT_MODE    1
    #define SDD_VOLTAGE_MODE    0
    #define SDD_RETURN_TO_ZERO  0
    #define SDD_NON_RTZ         2

    typedef enum
    {
        INDIVIDUAL_UPDATE = 0,
        SYNC_UPDATE = 1
    } sdd_update_method_t;

    void ACE_init(void);

    void ACE_configure_sdd(sdd_id_t sdd_id, sdd_resolution_t resolution, uint8_t mode, sdd_update_method_t sync_update);

Within voltcon.c

    #include <stdint.h>
    #include <math.h>
    #include <string.h>
    #include <stdio.h>
    #include "../../N3V2_hardware/biarri/firmware/drivers/mss_ace/mss_ace.h"

    sdd_id_t this_sdd_id = SDD0_OUT;
    sdd_resolution_t this_sdd_resolution = SDD_16_BITS;
    uint8_t this_mode = SDD_VOLTAGE_MODE;
    sdd_update_method_t this_sdd_update_method = INDIVIDUAL_UPDATE;

    void ACE_init();

    void ACE_configure_sdd(this_sdd_id, this_sdd_resolution, this_mode, this_sdd_update_method);

The error I am getting is as follows:

voltcon.c: error: #92: identifier-list parameters may only be used in a function definition

What this error says to me is that it probably has to do with the third argument to my function.

—Update—
The error is caused by the last line in the code (the void ACE_configure_sdd one). My apologies on that. The #92 is just a code, it doesn’t refer to the actual lines of code.

  • 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-05T23:01:58+00:00Added an answer on June 5, 2026 at 11:01 pm

    Try deleting the declaration of ACE_configure_sdd from voltcon.c. As it is already there in mss_ace.h.

    It seems you are trying to call ACE_configure_sdd from voltcon.c but in c you can only call a function from inside of another function.

    You can try doing this in voltcon.c :

    void func1()
    {
    ACE_configure_sdd(this_sdd_id, this_sdd_resolution, this_mode, this_sdd_update_method);
    }
    

    now func1 can be called from some other function in your code or main() itself.
    Hope this helps.

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

Sidebar

Related Questions

Okay so I had originally been attempting to use some headers that were supposedly
Currently attempting to get some code to compile using Lejos for the Lego NXT
I'm attempting to compile some C# with gmcs version 2.11.0 that includes System.Tuple. Supposedly
I need to compile some code originally written in C++ in C for a
I have some code written that is attempting to connect to a mysql db.
Attempting to use XStream's JavaBeanConverter and running into an issue. Most likely I'm missng
I am having a problem with code that worked fine in .NET 2.0 but
I am converting some functioning Haskell code that uses Parsec to instead use Attoparsec
I'm attempting to import code written in linux into eclipse's perl plugin 'epic', and
I'm attempting to utilize some code found here: http://androidtabs.googlecode.com/svn/trunk/ This includes the bases classes

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.