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.

Reboot on port input

Other Parts Discussed in Thread: CC2541, CC2540

Hi,

I'm writing an application for CC2541-based device and one of my tasks is to reboot on triggering from some port

(chip's pin - P0_6 to be precise) .

So I'm thinking about best way to do it -

my guess:

1. Configure the port as a button (with interruptions etc.) and handle events from it

as they're send by OSAL as SYS_EVENT_MSG (KEY_CHANGE).

2. Reboot through watchdog register (smth. like st(WDCTL = 0xAB; WDCTL = 0x5B;).


Or can smbd. propose more correct proper way?

Thank you,

BR,

Evgeny.