Revision 1ef74af5 core/inc/aos_system.h
core/inc/aos_system.h | ||
---|---|---|
63 | 63 |
*/ |
64 | 64 |
#define AOS_SYSTEM_EVENTFLAGS_RESTART (AOS_SYSTEM_EVENTFLAGS_SHUTDOWN | (eventflags_t)(1 << 4)) |
65 | 65 |
|
66 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) |
|
67 |
|
|
66 | 68 |
/** |
67 | 69 |
* @brief Major version of the implemented SSSP. |
68 | 70 |
*/ |
... | ... | |
79 | 81 |
*/ |
80 | 82 |
#define AOS_SYSTEM_SSSP_TIMEOUT (10 * AMIROOS_CFG_SSSP_SIGNALDELAY) |
81 | 83 |
|
84 |
#endif |
|
85 |
|
|
82 | 86 |
/** |
83 | 87 |
* @brief Enumerator to identify shutdown types. |
84 | 88 |
*/ |
... | ... | |
91 | 95 |
AOS_SHUTDOWN_RESTART, /**< Active saystem restart request. */ |
92 | 96 |
} aos_shutdown_t; |
93 | 97 |
|
98 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) |
|
99 |
|
|
94 | 100 |
/** |
95 | 101 |
* @brief Enumerator of the several stages of SSSP. |
96 | 102 |
*/ |
... | ... | |
113 | 119 |
AOS_SSSP_SHUTDOWN_3 = 0x38, /**< Identifier of SSSP shutdown phase stage 3. */ |
114 | 120 |
} aos_ssspstage_t; |
115 | 121 |
|
122 |
#endif |
|
123 |
|
|
124 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) |
|
116 | 125 |
/** |
117 | 126 |
* @brief Type to represent module IDs. |
118 | 127 |
*/ |
119 | 128 |
typedef uint16_t aos_ssspmoduleid_t; |
129 |
#endif |
|
130 |
|
|
120 | 131 |
|
121 | 132 |
/** |
122 | 133 |
* @brief AMiRo-OS base system structure. |
123 | 134 |
*/ |
124 | 135 |
typedef struct aos_system { |
125 |
|
|
136 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) |
|
126 | 137 |
/** |
127 | 138 |
* @brief SSSP relevant data. |
128 | 139 |
*/ |
... | ... | |
139 | 150 |
*/ |
140 | 151 |
aos_ssspmoduleid_t moduleId; |
141 | 152 |
} sssp; |
142 |
|
|
153 |
#endif |
|
143 | 154 |
/** |
144 | 155 |
* @brief System I/O stream. |
145 | 156 |
*/ |
... | ... | |
191 | 202 |
void aosSysInit(void); |
192 | 203 |
#endif |
193 | 204 |
void aosSysStart(void); |
205 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) |
|
194 | 206 |
eventmask_t aosSysSsspStartupOsInitSyncCheck(event_listener_t* syncEvtListener); |
207 |
#endif |
|
195 | 208 |
void aosSysGetUptimeX(aos_timestamp_t* ut); |
196 | 209 |
void aosSysGetDateTime(struct tm* dt); |
197 | 210 |
void aosSysSetDateTime(struct tm* dt); |
Also available in: Unified diff