In the timer handler , is it necessary to check whether the periph is power on ???

3 posts / 0 new
Last post
liyang
Offline
Last seen:3 months 10 hours ago
Expert
加入:2014-09-24 11:51
In the timer handler , is it necessary to check whether the periph is power on ???

Hi, Dialog,

In the function of the timer handler ,if I want to use the SPI interface , is it necessary to check whether the periph is power on (like if (GetBits16(SYS_STAT_REG, PER_IS_DOWN))
periph_init();)?
or use the SPI directlly?

Device:
MT_dialog
Offline
Last seen:1 week 6 days ago
工作人员
加入:2015-06-08 34
Hi liyang,

Hi liyang,

No, i suppose its not necessary.

The da will wake up and call the periph_init() in the wake up handler so all the peripherals should be enabled.

Thanks MT_dialog

liyang
Offline
Last seen:3 months 10 hours ago
Expert
加入:2014-09-24 11:51
Hi, Dialog,

Hi, Dialog,

OK, Thank you very muuch!

Thanks liyang