Revision cda14729 modules/STM32F407G-DISC1/aosconf.h

View differences:

modules/STM32F407G-DISC1/aosconf.h
33 33
 */
34 34
#define _AMIRO_OS_CFG_
35 35
#define AMIRO_OS_CFG_VERSION_MAJOR              2
36
#define AMIRO_OS_CFG_VERSION_MINOR              0
36
#define AMIRO_OS_CFG_VERSION_MINOR              1
37 37

  
38 38
#include <stdbool.h>
39 39

  
......
80 80
#endif /* !defined(OS_CFG_PROFILE) */
81 81

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

  
92 92
/**
93 93
 * @brief   Timeout value when waiting for events in the main loop in microseconds.
......
103 103

  
104 104
/*===========================================================================*/
105 105
/**
106
 * @name Bootloader configuration
107
 * @{
108
 */
109
/*===========================================================================*/
110

  
111
/**
112
 * @brief   Identifier of the instaled bootloader (if any).
113
 * @note    See aos_bootloader.h file for a list of available settings.
114
 */
115
#define AMIROOS_CFG_BOOTLOADER                  AOS_BOOTLOADER_NONE
116

  
117
/*===========================================================================*/
118
/**
106 119
 * @name SSSP (Startup Shutdown Synchronization Protocol) configuration.
107 120
 * @{
108 121
 */
......
118 131
#endif /* !defined(OS_CFG_SSSP_ENABLE) */
119 132

  
120 133
/**
134
 * @brief   Flag to indicate, whether the SSSP startup sequence shall be executed by AMiRo-OS.
135
 * @details This setting must be false in case another software (e.g. a bootloader) handles the initial stages of the SSSP startup phase.
136
 */
137
#if !defined(OS_CFG_SSSP_STARTUP)
138
  #define AMIROOS_CFG_SSSP_STARTUP              false
139
#else
140
  #define AMIROOS_CFG_SSSP_STARTUP              OS_CFG_SSSP_STARTUP
141
#endif
142

  
143
/**
144
 * @brief   Flag to indicate, whether the SSSP shutdown sequence shall be executed by AMiRo-OS.
145
 * @details This setting should be false in case another software (e.g. a bootloader) handles the final stages of the SSSP shutdown phase.
146
 */
147
#if !defined(OS_CFG_SSSP_SHUTDOWN)
148
  #define AMIROOS_CFG_SSSP_SHUTDOWN             false
149
#else
150
  #define AMIROOS_CFG_SSSP_SHUTDOWN             OS_CFG_SSSP_SHUTDOWN
151
#endif
152

  
153
/**
154
 * @brief   Flag to indicate, whether the module stack initialization (MSI; stage 3 of the SSSP startup phase) shall be executed.
155
 * @brief   In order to execute MSI, a broadcast bus (BCB) and according interfaces must be defined.
156
 */
157
#if !defined(OS_CFG_SSSP_MSI)
158
  #define AMIROOS_CFG_SSSP_MSI                  false
159
#else
160
  #define AMIROOS_CFG_SSSP_MSI                  OS_CFG_SSSP_MSI
161
#endif
162

  
163
/**
164
 * @brief   Width of the @p aos_sssp_moduleid_t type.
165
 * @details Possible settings are 8, 16 and 32.
166
 */
167
#if !defined(OS_CFG_SSSP_MODULEIDWIDTH)
168
  #define AMIROOS_CFG_SSSP_MODULEIDWIDTH        16
169
#else
170
  #define AMIROOS_CFG_SSSP_MODULEIDWIDTH        OS_CFG_SSSP_MODULEIDWIDTH
171
#endif
172

  
173
/**
121 174
 * @brief   Flag to set the module as SSSP master.
122 175
 * @details There must be only one module with this flag set to true in a system.
123 176
 */

Also available in: Unified diff