caneralp 0 Posted March 13, 2017 Share Posted March 13, 2017 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 Quote Link to post Share on other sites
energia 485 Posted March 13, 2017 Share Posted March 13, 2017 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 Quote Link to post Share on other sites
Rei Vilo 695 Posted March 13, 2017 Share Posted March 13, 2017 About libraries: Some Misconceptions about Libraries Posting a Library for Energia How To: Porting Libraries Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.