I am a beginner in programming in C, and I am trying to make my code as modular as possible, so I want to declare a structure,
enum TRANSMITER_INT
{
DISABLE,
ENABLE
};
typedef struct Config
{
enum TRANSMITER_INT TRANSMITER ;
}Config;
and initialize the values of this structure in a different header file, so the user will only have access to this file only to configure the module with it.
Config global_Config =
{
DISABLE ,
};
But when I Build the project it keeps giving me this error
expected '=', ',', ';', 'asm' or '__attribute__' before 'global_Config'
Any tips on how I can get this to work?