X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fmegametrum-v0.1%2Fao_megametrum.c;h=43c2292d40f2091e2084ba23a5005f4e9122d146;hb=4b13d3c659240e5a8347b1ba7ab0bf1d8355eba3;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..43c2292d 100644 --- a/src/megametrum-v0.1/ao_megametrum.c +++ b/src/megametrum-v0.1/ao_megametrum.c @@ -24,13 +24,23 @@ #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_serial_init(); ao_led_init(LEDS_AVAILABLE); ao_led_on(AO_LED_GREEN); @@ -78,6 +88,9 @@ main(void) #if AO_PROFILE ao_profile_init(); #endif +#if HAS_SAMPLE_PROFILE + ao_sample_profile_init(); +#endif ao_start_scheduler(); return 0;