Revision cda14729 modules/PowerManagement_1-2/aosconf.h
modules/PowerManagement_1-2/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 0
|
|
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 0
|
|
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_AMiRoBLT |
|
116 |
|
|
117 |
/** @} */ |
|
118 |
|
|
119 |
/*===========================================================================*/ |
|
120 |
/** |
|
106 | 121 |
* @name SSSP (Startup Shutdown Synchronization Protocol) configuration. |
107 | 122 |
* @{ |
108 | 123 |
*/ |
... | ... | |
118 | 133 |
#endif /* !defined(OS_CFG_SSSP_ENABLE) */ |
119 | 134 |
|
120 | 135 |
/** |
136 |
* @brief Flag to indicate, whether the SSSP startup sequence shall be executed by AMiRo-OS. |
|
137 |
* @details This setting must be false in case another software (e.g. a bootloader) handles the initial stages of the SSSP startup phase. |
|
138 |
*/ |
|
139 |
#if !defined(OS_CFG_SSSP_STARTUP) |
|
140 |
#define AMIROOS_CFG_SSSP_STARTUP false |
|
141 |
#else |
|
142 |
#define AMIROOS_CFG_SSSP_STARTUP OS_CFG_SSSP_STARTUP |
|
143 |
#endif |
|
144 |
|
|
145 |
/** |
|
146 |
* @brief Flag to indicate, whether the SSSP shutdown sequence shall be executed by AMiRo-OS. |
|
147 |
* @details This setting should be false in case another software (e.g. a bootloader) handles the final stages of the SSSP shutdown phase. |
|
148 |
*/ |
|
149 |
#if !defined(OS_CFG_SSSP_SHUTDOWN) |
|
150 |
#define AMIROOS_CFG_SSSP_SHUTDOWN false |
|
151 |
#else |
|
152 |
#define AMIROOS_CFG_SSSP_SHUTDOWN OS_CFG_SSSP_SHUTDOWN |
|
153 |
#endif |
|
154 |
|
|
155 |
/** |
|
156 |
* @brief Flag to indicate, whether the module stack initialization (MSI; stage 3 of the SSSP startup phase) shall be executed. |
|
157 |
* @brief In order to execute MSI, a broadcast bus (BCB) and according interfaces must be defined. |
|
158 |
*/ |
|
159 |
#if !defined(OS_CFG_SSSP_MSI) |
|
160 |
#define AMIROOS_CFG_SSSP_MSI false |
|
161 |
#else |
|
162 |
#define AMIROOS_CFG_SSSP_MSI OS_CFG_SSSP_MSI |
|
163 |
#endif |
|
164 |
|
|
165 |
/** |
|
166 |
* @brief Width of the @p aos_sssp_moduleid_t type. |
|
167 |
* @details Possible settings are 8, 16 and 32. |
|
168 |
*/ |
|
169 |
#if !defined(OS_CFG_SSSP_MODULEIDWIDTH) |
|
170 |
#define AMIROOS_CFG_SSSP_MODULEIDWIDTH 16 |
|
171 |
#else |
|
172 |
#define AMIROOS_CFG_SSSP_MODULEIDWIDTH OS_CFG_SSSP_MODULEIDWIDTH |
|
173 |
#endif |
|
174 |
|
|
175 |
/** |
|
121 | 176 |
* @brief Flag to set the module as SSSP master. |
122 | 177 |
* @details There must be only one module with this flag set to true in a system. |
123 | 178 |
*/ |
Also available in: Unified diff