Other Parts Discussed in Thread: CC1200
I am using SmartRF to generate configurations for mi RF chip. It generates a .c and here is an example what is in the .c file:
#include "CC1200_address.h"
static const registerSetting_s slowTransmitSettings[] =
{
{CC1200_ADDRESS_IOCFG3, 0x30},
{CC1200_ADDRESS_IOCFG2, 0x02},
};
This array has a lot of elements but i deleted them to not clog the question.
Now I want to use that array in my main. I just did:
#include "CC1200_slow_transmit_config.c"
//extern const registerSetting_s slowTransmitSettings[];
void main(void)
{
// Code in which I use the variable and send it to some functions. So it is definitely used.
}
I constantly get the warning #179-D variable "slowTransmitSettings" was declared but never referenced
The commented section in the main file is somethign I tried to resolve the warning but it didn't work. Can someone help?
I am using the TI 15.12.3 LTS compiler. Not GCC.
Thanks in advance.