ctl_api.h - error when compiling

Comments

3 comments

  • Avatar
    Christoph Klein

    Let me re-phrase that ;)

    It's very probably a typical beginner's error: I added an include file and expected the compiler to find the functions somehow without adding the source itself. Without the include I got an "implicit definition" warning, with it I got an error because some of the functions from the include file were not added to the project.

    I re-made the project, using a different package for my board/processor combination now which adds some other sources. So now it seems to work :)

     

    Sorry for the noise (which reminds me: a "bloody beginners forum" would be nice ;) )

    Christoph

     

    0
    Comment actions Permalink
  • Avatar
    Christoph Klein

    Sorry. No work, more noise ;)

    I've now added the complete project for inspection. I gues it's very simple but I don't get it ...

    In the current version, compiling will work but with warnings for the 'implicit declaration of function 'ctl_at91sam7_get_mck_frequency' '.

    When I uncomment line '//#include "ctl_api.h"' in 'main.c' and/or 'delay.c' I get an error:

    ---------------------------------------------------------------------

    Find    delay.c

    Error   ctl_api.h   expected ';', ',' or ')' before numeric constant

    ---------------------------------------------------------------------

    What is it? Please help ...

    Christoph

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    typedefs.h contains

    #define set 1

    ctl_api.h has

    void ctl_board_set_leds(unsigned set);

    Regards

    Michael

    0
    Comment actions Permalink

Please sign in to leave a comment.