Open github4f opened 7 years ago
There isn't a direct way to do this in Energia. However, there are a couple of workarounds.
If you use Energia MT with the CC3200 or MSP432 then your sketch is run on top of TI-RTOS (see http://energia.nu/tag/energia-mt/). The RTOS is often able to automatically enter power savings modes, especially during delays. You won't have fine control over this, however.
Import your Energia sketch into CCS Cloud IDE dev.ti.com/ide. This brings your Energia code into a more tradition IDE that will allow you to add in C code around your sketch to bring in power savings options.
Hi Daniel- I was wondering how I can optimize the code for power saving? In embedded-c, it can be done by turning on/off (power/clock gating) the BLE periodically. Is it there any similiar knob in Energia to do so? How can I do control/config cc2640 from MSP430 for power saving? Thank you