/* Function for turning off LEDs. 
Sets the pin low state according to active_high parameter. */
__STATIC_INLINE void led_off(low_power_pwm_t *p_pwm_instance)
/* Function for turning off LEDs. 
Sets the pin low state according to active_high parameter. */
__STATIC_INLINE void led_off(low_power_pwm_t *p_pwm_instance)
{
    if (p_pwm_instance->active_high)
    {
        nrf_gpio_pins_clear(p_pwm_instance->bit_mask_toggle);
    }
    else
    {
        nrf_gpio_pins_set(p_pwm_instance->bit_mask_toggle);
    }
    p_pwm_instance->led_is_on = false;
}