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.