bench_pm: Helper application for testing pm behavior
The application assists in measuring wake up delays and for measuring power consumption of different low power modes. A logic analyzer or oscilloscope is required for taking any measurements.
This application was used to test the GPIO interrupt optimizations in RIOT-OS/RIOT#8558
Works out of the box on any board which defines BTN0_PIN which is used as a wake up trigger.
A special "coma mode" is used when building with CFLAGS=-DCOMA_MODE, this will make the application skip initialization of wake up sources and go to the lowest power mode without waking up. This mode is specifically designed to measure the baseline power consumption, to use as a reference when comparing different hardware settings and software changes.
addressed comments
Updated:
- Cleaned up defines for pins, better general platform support.
- Added "coma mode" which runs pm_set(0) in a tight loop without any additional wake up sources, to get a good reference for the minimum achievable power consumption.