Topic : MULTIPLE PUBLIC DEFINITIONS error when using hbit

Forum : ST7/STM8

Original Post
Post Information Post
May 12, 2010 - 12:08pm
Guest

Hello.

I am using STM8S105K4. I try to define a bit in hardware register in the device file (STM8S105K).

e.g. at (0x5401*8+0) hbit ADC_CR1_ADON;

The device file is included in several c files, and the following error occurs during linking.

***ERROR 104 : MULTIPLE PUBLIC DEFINITIONS
SYMBOL: ADC_CR1_ADON

Is there any way I can solve it?
Thanks a lot.