caneralp

Having Library Problem CC3200

3 posts in this topic

Hi All,

I want to use a library which is made for Arduino. But Im having problems when Im trying to compile by using Energia.

The First problem is ADC settings

bvsm.setAudioInput(BVSM_AUDIO_INPUT, EXTERNAL);

There is no EXTERNAL adc reference, How Can I correct this issue?

ISR(TIMER2_COMPA_vect)
	{
		if (globalBVSMic != NULL && globalBVSMic->isRecording)
		{
			//Starts ADC conversion  
			sbi(ADCSRA, ADSC);
		}
	}

And in this part I get errors,

Quote

 

expected constructor, destructor, or type conversion before '(' token

  ISR(TIMER2_COMPA_vect)

     ^

 


I think I should change the value of ISR which is "TIMER2_COMPA_vect" to something suitable for CC3200, but I couldnt find anything.

Can you help me please, I also attach the libraries that I try to use. 

BVSMic.cpp

BVSMic.h

Share this post


Link to post
Share on other sites

There is a significant amount of SAM and AVR specific code in the library. It does not seem like this is going to be easily portable to Energia. All the AVR / SAM specific code will need to be replaced with CC3200 specific code.

Robert

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now