Ejemplo n.º 1
0
/* Main function, the entry point of this program.
 * The main function is called from the startup code in file
 * Libraries/CMSIS/ST/STM32F4xx/Source/Templates/TrueSTUDIO/startup_stm32f4xx.s
 * (line 101)
 */
int main(void)
{
    while (1)
    {
      led_round();
      flash_all_leds();
      snake();
    }

    return 0; // never returns actually
}
Ejemplo n.º 2
0
/* The main function is called from startup_stm32f407xx.s */
int main(void)
{
  HAL_Init();

  setup_leds();

  while (1) {
    led_round();
    flash_all_leds();
  }

  return 0;
}