Revision 75ab9f8b core/src/aos_main.cpp

View differences:

core/src/aos_main.cpp
959 959
  /* periphery communication initialization */
960 960
  // CAN (mandatory)
961 961
  canStart(&MODULE_HAL_CAN, &moduleHalCanConfig);
962

  
962 963
  // module specific initialization (if any)
963 964
#ifdef MODULE_INIT_PERIPHERY_COMM
964 965
  MODULE_INIT_PERIPHERY_COMM();
......
983 984
  AMIROOS_CFG_MAIN_INIT_HOOK_6();
984 985
#endif
985 986
#endif
987
  for (unsigned int hase = 0; hase < 10; ++hase) {
988
      //toggle LED
989
      palClearLine(LINE_LED_GREEN);
990
      chThdSleepMilliseconds(1500);
991
      palSetLine(LINE_LED_GREEN);
992
      chThdSleepMilliseconds(500);
993
  }
994
  chprintf((BaseSequentialStream*)&SD2, "Hallo Welt!\n");
986 995

  
987 996
  /* module is ready -> print welcome prompt */
988 997
  aosprintf("\n");
......
1108 1117
#endif
1109 1118
    aosDbgPrintf("\n");
1110 1119
  }
1120
#endif
1111 1121

  
1112 1122
#if defined(AMIROOS_CFG_MAIN_INIT_HOOK_8)
1113 1123
#if defined(AMIROOS_CFG_MAIN_INIT_HOOK_8_ARGS)
......
1115 1125
#else
1116 1126
  AMIROOS_CFG_MAIN_INIT_HOOK_8();
1117 1127
#endif
1118
#endif
1128
//#endif //AMIROOS_CFG_SSSP_ENABLE
1129

  
1119 1130

  
1131
 aosprintf("aosSysStart \n");
1120 1132
  /* completely start AMiRo-OS */
1121 1133
  if (shutdown == AOS_SHUTDOWN_NONE) {
1122 1134
    aosSysStart();
1123 1135
  }
1136
 aosprintf("aosSysStart done \n");
1124 1137

  
1125 1138
#if defined(AMIROOS_CFG_MAIN_INIT_HOOK_9)
1126 1139
#if defined(AMIROOS_CFG_MAIN_INIT_HOOK_9_ARGS)
......
1153 1166
#endif
1154 1167
#endif
1155 1168

  
1169

  
1156 1170
    switch (eventmask) {
1157 1171
      // if this was an I/O event
1158 1172
      case IOEVENT_MASK:
1159 1173
        // evaluate flags
1160 1174
        eventflags = chEvtGetAndClearFlags(&_eventListenerIO);
1161 1175
        // PD event
1176
        #if (AMIROOS_CFG_SSSP_ENABLE == true)
1162 1177
        if (eventflags & MODULE_SSSP_EVENTFLAGS_PD) {
1163 1178
          shutdown = AOS_SHUTDOWN_PASSIVE;
1164 1179
        }
1180
#endif
1165 1181
        // all other events
1166 1182
#ifdef MODULE_MAIN_LOOP_IO_EVENT
1167 1183
        else {
......
1209 1225
#endif
1210 1226

  
1211 1227
  }
1212
#endif
1213

  
1228
#endif //DEBUG
1229
 aosprintf("Line 1224\n");
1214 1230
  /*
1215 1231
   * ##########################################################################
1216 1232
   * # system shutdown                                                        #

Also available in: Unified diff