X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fmegametrum-v0.1%2Fao_megametrum.c;h=cb1eb41756c5fe9ff019f08d753c6e16959d7ccd;hb=282f0451dd141db3304ab73e4020a849e59721eb;hp=d3ae4690c41de2e85c9ea4b402fb35cc8e009d48;hpb=583458772746317b98fced907ec780edff465888;p=fw%2Faltos diff --git a/src/megametrum-v0.1/ao_megametrum.c b/src/megametrum-v0.1/ao_megametrum.c index d3ae4690..cb1eb417 100644 --- a/src/megametrum-v0.1/ao_megametrum.c +++ b/src/megametrum-v0.1/ao_megametrum.c @@ -24,13 +24,24 @@ #include #include #include +#if HAS_SAMPLE_PROFILE +#include +#endif #include +#if HAS_STACK_GUARD +#include +#endif int main(void) { ao_clock_init(); +#if HAS_STACK_GUARD + ao_mpu_init(); +#endif + + ao_task_init(); ao_serial_init(); ao_led_init(LEDS_AVAILABLE); ao_led_on(AO_LED_GREEN); @@ -78,6 +89,9 @@ main(void) #if AO_PROFILE ao_profile_init(); #endif +#if HAS_SAMPLE_PROFILE + ao_sample_profile_init(); +#endif ao_start_scheduler(); return 0;