Revision e2377d9e

View differences:

core/src/aos_main.cpp
872 872
  // local variables
873 873
  eventmask_t eventmask = 0;
874 874
  eventflags_t eventflags = 0;
875
  eventflags_t eventflagsmask = AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK;
875
  eventflags_t ioeventflagsmask = AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK;
876 876
  aos_shutdown_t shutdown = AOS_SHUTDOWN_NONE;
877 877
#if defined(AMIROOS_CFG_MAIN_EXTRA_THREAD_VARIABLES)
878 878
  AMIROOS_CFG_MAIN_EXTRA_THREAD_VARIABLES
......
957 957

  
958 958
  /* event associations */
959 959
#if (AMIROOS_CFG_SSSP_ENABLE == true)
960
  eventflagsmask |= MODULE_SSSP_EVENTFLAGS_PD | MODULE_SSSP_EVENTFLAGS_SYNC;
960
  ioeventflagsmask |= MODULE_SSSP_EVENTFLAGS_PD | MODULE_SSSP_EVENTFLAGS_SYNC;
961 961
#if (AMIROOS_CFG_SSSP_STACK_START != true)
962
  eventflagsmask |= MODULE_SSSP_EVENTFLAGS_DN;
962
  ioeventflagsmask |= MODULE_SSSP_EVENTFLAGS_DN;
963 963
#endif
964 964
#if (AMIROOS_CFG_SSSP_STACK_END != true)
965
  eventflagsmask |= MODULE_SSSP_EVENTFLAGS_UP;
965
  ioeventflagsmask |= MODULE_SSSP_EVENTFLAGS_UP;
966 966
#endif
967 967
#endif /* AMIROOS_CFG_SSSP_ENABLE == true */
968
  if (eventflagsmask != 0) {
969
    chEvtRegisterMaskWithFlags(&aos.events.io, &_eventListenerIO, IOEVENT_MASK, eventflagsmask);
968
  if (ioeventflagsmask != 0) {
969
    chEvtRegisterMaskWithFlags(&aos.events.io, &_eventListenerIO, IOEVENT_MASK, ioeventflagsmask);
970 970
  }
971 971
  chEvtRegisterMask(&aos.events.os, &_eventListenerOS, OSEVENT_MASK);
972 972

  

Also available in: Unified diff