altos/stm32f4: Align stack to 8 bytes
[fw/altos] / src / product / ao_telescience.c
index 4dec3a184adad922c301b3e47e8896731c87b4c1..28bf7e7995c9c3f90c195eafb7e190937d9f05e8 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,6 +17,9 @@
  */
 
 #include "ao.h"
+#if HAS_ICP3_COUNT
+#include "ao_pwmin.h"
+#endif
 
 int
 main(void)
@@ -25,6 +29,8 @@ main(void)
        PORTE |= (1 << 6);
        DDRE |= (1 << 6);
 
+       ao_task_init();
+
        ao_avr_stdio_init();
        ao_timer_init();
        ao_cmd_init();
@@ -33,7 +39,10 @@ main(void)
        ao_storage_init();
        ao_usb_init();
        ao_adc_init();
-       ao_log_init();
+       ao_log_single_init();
+#if HAS_ICP3_COUNT
+       ao_pwmin_init();
+#endif
        ao_start_scheduler();
        return 0;
 }