Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

MSP430F247: ADC12_B or ADC12_PLUS ?

$
0
0

Hello,

 

i'm a newbie and trying to use the ergia-ide for an custom-board with MSP430F247. After a lot of trial and error i've ctreated a new entry in 'boards.txt' an have a '#include <msp430f247.h>' in my project.

 

When i want to compile, i get the following errors:

...\hardware\msp430\cores\msp430\wiring_analog.c: In function 'analogFrequency':
...\hardware\msp430\cores\msp430\wiring_analog.c:87:3: error: 'analog_div' undeclared (first use in this function)
...\hardware\msp430\cores\msp430\wiring_analog.c:87:3: note: each undeclared identifier is reported only once for each function it appears in
...and so on

wiring_analog.c contains expressions like:

#if defined(__MSP430_HAS_ADC10__) || defined(__MSP430_HAS_ADC10_B__) || defined(__MSP430_HAS_ADC12_PLUS__) || defined(__MSP430_HAS_ADC12_B__)

but mps430f247.h only contains:

#define __MSP430_HAS_ADC12__

Is it possible that the mps430f247.h contained in catual Energia (0101E0015) is not compatible to wiring_analog.c ?

 

I give it a try, to edit mps430f247.h to ADC12_PLUS or ADC12_B, but it failed.

 

Has a anybody updated mps430f247.h to work with actual Energia, or can give me a hint?

 

Regards

Boensch

 

 

 

 

 


Viewing all articles
Browse latest Browse all 2077

Trending Articles