Revision 2920c6b7

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 876
  aos_shutdown_t shutdown = AOS_SHUTDOWN_NONE;
876 877
#if defined(AMIROOS_CFG_MAIN_EXTRA_THREAD_VARIABLES)
877 878
  AMIROOS_CFG_MAIN_EXTRA_THREAD_VARIABLES
......
956 957

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

  
971 973
#if defined(AMIROOS_CFG_MAIN_INIT_HOOK_5)
modules/DiWheelDrive_1-1/aosconf.h
79 79
#endif
80 80

  
81 81
/**
82
 * @brief   Mask for the control thread to listen to certain IO events.
83
 * @note    Any mandatory events (e.g. for SSSP) are enabled implicitely despite this configuration.
84
 */
85
#if !defined(OS_CFG_MAIN_LOOP_IOEVENT_MASK)
86
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    0
87
#else
88
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    OS_CFG_MAIN_LOOP_IOEVENT_MASK
89
#endif
90

  
91
/**
82 92
 * @brief   Timeout value when waiting for events in the main loop in microseconds.
83 93
 * @details A value of 0 deactivates the timeout.
84 94
 */
modules/LightRing_1-0/aosconf.h
79 79
#endif
80 80

  
81 81
/**
82
 * @brief   Mask for the control thread to listen to certain IO events.
83
 * @note    Any mandatory events (e.g. for SSSP) are enabled implicitely despite this configuration.
84
 */
85
#if !defined(OS_CFG_MAIN_LOOP_IOEVENT_MASK)
86
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    0
87
#else
88
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    OS_CFG_MAIN_LOOP_IOEVENT_MASK
89
#endif
90

  
91
/**
82 92
 * @brief   Timeout value when waiting for events in the main loop in microseconds.
83 93
 * @details A value of 0 deactivates the timeout.
84 94
 */
modules/PowerManagement_1-1/aosconf.h
17 17
*/
18 18

  
19 19
/**
20
 * @file    
20
 * @file
21 21
 * @brief   AMiRo-OS Configuration file for the PowerManagement v1.1 module.
22 22
 * @details Contains the application specific AMiRo-OS settings.
23 23
 *
......
79 79
#endif
80 80

  
81 81
/**
82
 * @brief   Mask for the control thread to listen to certain IO events.
83
 * @note    Any mandatory events (e.g. for SSSP) are enabled implicitely despite this configuration.
84
 */
85
#if !defined(OS_CFG_MAIN_LOOP_IOEVENT_MASK)
86
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    0
87
#else
88
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    OS_CFG_MAIN_LOOP_IOEVENT_MASK
89
#endif
90

  
91
/**
82 92
 * @brief   Timeout value when waiting for events in the main loop in microseconds.
83 93
 * @details A value of 0 deactivates the timeout.
84 94
 */
modules/STM32F4Discovery/aosconf.h
79 79
#endif
80 80

  
81 81
/**
82
 * @brief   Mask for the control thread to listen to certain IO events.
83
 * @note    Any mandatory events (e.g. for SSSP) are enabled implicitely despite this configuration.
84
 */
85
#if !defined(OS_CFG_MAIN_LOOP_IOEVENT_MASK)
86
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    0
87
#else
88
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    OS_CFG_MAIN_LOOP_IOEVENT_MASK
89
#endif
90

  
91
/**
82 92
 * @brief   Timeout value when waiting for events in the main loop in microseconds.
83 93
 * @details A value of 0 deactivates the timeout.
84 94
 */

Also available in: Unified diff