X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fproduct%2Fao_telescience.c;h=28bf7e7995c9c3f90c195eafb7e190937d9f05e8;hb=0448b9b638f8599633227a639ef9d8572780bbd9;hp=45b6d40e0c406ca1af29c1fadd69c5e65453bf33;hpb=f6f54d70b768dca1715ddddea64a4df00d82b09e;p=fw%2Faltos diff --git a/src/product/ao_telescience.c b/src/product/ao_telescience.c index 45b6d40e..28bf7e79 100644 --- a/src/product/ao_telescience.c +++ b/src/product/ao_telescience.c @@ -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(); @@ -34,6 +40,9 @@ main(void) ao_usb_init(); ao_adc_init(); ao_log_single_init(); +#if HAS_ICP3_COUNT + ao_pwmin_init(); +#endif ao_start_scheduler(); return 0; }