Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/CC1312R: Ti 15.4 stack costume modification

$
0
0

Part Number:CC1312R

Tool/software: TI-RTOS

Hello Gurus

                I'm using Ti 15.4 stack with with Linux based collator application, my default code is working and I'm getting sensor data at collector. In my application i need the data at interrupt and specific time interval

I can manage the data at particular time stamp  by modifying the CONFIG_REPORTING_INTERVAL but for the hardware interrupt I have set the callback function where I'm reading the sensor and sending to the collector but unfortunately I'm not getting the data  at collector side (HW interrupt is working and code reach till the end of the send function) 

void buttonCallbackFxn(PIN_Handle handle, PIN_Id pinId) {


    /* Debounce logic, only toggle if the button is still pushed (low) */
    CPUdelay(2000*50);
                //filter the PIN values
                Current_state =  PIN_getInputValue(Board_DIO22);
                if(Current_state!=Previous_state){
                            readSensors();                                       //Reading the temp. Sensor
                            /* Process Sensor Reading Message Event */
                            processSensorMsgEvt();
                            Previous_state=Current_state;
                }

}


can any one tell me the mistakes that I'm making 
Thanks 



Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>