tasks/task_led.c
// Initialize relevant GPIO pins as standard drive outputs.
// Deactivate leds
Initialize relevant GPIO pins as standard drive outputs.
Deactivate leds
Initialize relevant GPIO pins as standard drive outputs . Deactivate leds
ruuvi_status_t task_led_init(void)
{
  ruuvi_status_t err_code = RUUVI_SUCCESS;
  err_code |= platform_gpio_init();
  uint8_t leds[] = LEDS_LIST;
  for(size_t ii = 0; ii < LEDS_NUMBER; ii++)
  {
    platform_gpio_configure(leds[ii], RUUVI_GPIO_MODE_OUTPUT_STANDARD);
    platform_gpio_write(leds[ii], !LEDS_ACTIVE_STATE);
  }
  return err_code;
}
ruuvi_status_t task_led_init ( void ) { ruuvi_status_t err_code = RUUVI_SUCCESS ; err_code |= platform_gpio_init ( ) ; uint8_t leds [ ] = LEDS_LIST ; for ( size_t ii = 0 ; ii < LEDS_NUMBER ; ii ++ ) { platform_gpio_configure ( leds [ ii ] , RUUVI_GPIO_MODE_OUTPUT_STANDARD ) ; platform_gpio_write ( leds [ ii ] , ! LEDS_ACTIVE_STATE ) ; } return err_code ; }
Initialize relevant GPIO pins as standard drive outputs.
Initialize relevant GPIO pins as standard drive outputs .