- Joined
- Jan 22, 2008
- Messages
- 53,226
- Helped
- 14,794
- Reputation
- 29,875
- Reaction score
- 14,318
- Trophy points
- 1,393
- Location
- Bochum, Germany
- Activity points
- 301,550
The constants are defined wrongly. Correct C syntax would beYes I tried changing "CONFIG3" to CONFIG3.
But it gave the following errors:
ecgcode1.c:127: error: (195) expression syntax
ecgcode1.c:127: error: (187) too few function arguments
ecgcode1.c:127: error: (194) ")" expected
ecgcode1.c:127: error: (195) expression syntax
Code:
#define CONFIG3 0x03
I'm also not sure if CONFIG3 is already otherwise defined as processor config register, you could change it to a less ambiguous name like ADC_CONFIG3.