This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

sensor tag

Other Parts Discussed in Thread: CC2541

hi,

in cc2541 sensor tag the  left button(s1) connected P0.0 is for advertising start and stop.

after connection establishment when we pressed this button the connection is going to be lost and again it starts advertising.

i want to make changes such that after connection establishment when we press and release this switch it should notify something to master.

please help me where i have to make changes.

  • Hi,

    You can try to register a new interrupt routine on same pin. That should work.

    Once connection is established, call following API which is in hal_interrupt.c

    register_interupt(P0.0, new_function); 

    ------------------------------------------------------------------------

    press" Verify" once your question is answered.