Power Efficient Software Coding

后端 未结 17 747
北海茫月
北海茫月 2020-12-23 16:19

In a typical handheld/portable embedded system device Battery life is a major concern in design of H/W, S/W and the features the device can support. From the Software progra

17条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-23 17:18

    If you have low priority intermittent operations, don't use specific timers to wake up to deal with them, but deal with when processing other events.

    Use logic to avoid stupid scenarios where your app might go to sleep for 10 ms and then have to wake up again for the next event. For the kind of platform mentioned it shouldn't matter if both events are processed at the same time. Having your own timer & callback mechanism might be appropriate for this kind of decision making. The trade off is in code complexity and maintenance vs. likely power savings.

提交回复
热议问题