Jump to content
43oh

caneralp

Members
  • Content Count

    2
  • Joined

  • Last visited

Posts posted by caneralp

  1. 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

  2. Hello,


     


    I have a problem with optimization. Can anyone help me?


     


    my code is below which is for loop and delaying.


     


    volatile unsigned int b;

     

    b = 30000;

    do

    {

    b--;

    }while(b != 0);

     

    normally unless I define b as a volatile variable, it doesnt work, Can anyone explain why it doesnt work?

     

    Also when I debug step by step, It works. Also without this loop it works but I can not see the changes.

     

    Thanks

×
×
  • Create New...