/* Try to set the controller to a given power mode.  */
__attribute__((weak))
/* Try to set the controller to a given power mode.  */
__attribute__((weak))
{
    switch (target) {
        case LPM_IDLE:
        case LPM_SLEEP:
        case LPM_POWERDOWN:
        case LPM_OFF:
            __DSB();
            __WFI();
            break;
        case LPM_UNKNOWN:
        case LPM_ON:
        default:
            break;
    }
    return 0;
}