Revision 88c47fd9
core/src/aos_main.cpp | ||
---|---|---|
123 | 123 |
* @param[in] mask The event mask. |
124 | 124 |
* @param[in] flags The event flags. |
125 | 125 |
*/ |
126 |
inline void _unexpectedEventError(const eventmask_t mask, const eventflags_t flags) |
|
126 |
static inline void _unexpectedEventError(const eventmask_t mask, const eventflags_t flags)
|
|
127 | 127 |
{ |
128 | 128 |
#if (AMIROOS_CFG_DBG == true) |
129 | 129 |
aosDbgPrintf("CTRL: unexpected/unknown event received. mask: 0x%08X; flags: 0x%08X\n", mask, flags); |
... | ... | |
154 | 154 |
* |
155 | 155 |
* @return An unsigned 64 bit integer, which holds the encoded time value. |
156 | 156 |
*/ |
157 |
inline uint64_t _TM2U64(struct tm* src) |
|
157 |
static inline uint64_t _TM2U64(struct tm* src)
|
|
158 | 158 |
{ |
159 | 159 |
aosDbgCheck(src != NULL); |
160 | 160 |
|
... | ... | |
176 | 176 |
* @param[out] dst Pointer to the output buffer. |
177 | 177 |
* @param[in] src Data to be serialized. |
178 | 178 |
*/ |
179 |
inline void _serializeU64(uint8_t* dst, const uint64_t src) |
|
179 |
static inline void _serializeU64(uint8_t* dst, const uint64_t src)
|
|
180 | 180 |
{ |
181 | 181 |
aosDbgCheck(dst != NULL); |
182 | 182 |
|
... | ... | |
198 | 198 |
* |
199 | 199 |
* @return Deserialized 64 bit data. |
200 | 200 |
*/ |
201 |
inline uint64_t _deserializeU64(uint8_t* src) |
|
201 |
static inline uint64_t _deserializeU64(uint8_t* src)
|
|
202 | 202 |
{ |
203 | 203 |
aosDbgCheck(src != NULL); |
204 | 204 |
|
... | ... | |
218 | 218 |
* @param[out] dst The TM struct to fill with the decoded values. |
219 | 219 |
* @param[in] src Unsigned 64 bit integer holding the encoded TM value. |
220 | 220 |
*/ |
221 |
inline void _U642TM(struct tm* dst, const uint64_t src) |
|
221 |
static inline void _U642TM(struct tm* dst, const uint64_t src)
|
|
222 | 222 |
{ |
223 | 223 |
aosDbgCheck(dst != NULL); |
224 | 224 |
|
core/src/aos_sssp.c | ||
---|---|---|
308 | 308 |
* @param[out] buffer Buffer to write the serialized message to. |
309 | 309 |
* @param[in] message The message to be serialized. |
310 | 310 |
*/ |
311 |
aos_status_t _serializeBcbMessage(uint8_t* buffer, aos_ssspbcbmessage_t message) |
|
311 |
static aos_status_t _serializeBcbMessage(uint8_t* buffer, aos_ssspbcbmessage_t message)
|
|
312 | 312 |
{ |
313 | 313 |
aosDbgCheck(buffer != NULL); |
314 | 314 |
|
... | ... | |
342 | 342 |
* @param[out] message Message object to be filled. |
343 | 343 |
* @param[in] buffer Buffer holding the serialized message. |
344 | 344 |
*/ |
345 |
aos_status_t _deserializeBcbMessage(aos_ssspbcbmessage_t* message, uint8_t* buffer) |
|
345 |
static aos_status_t _deserializeBcbMessage(aos_ssspbcbmessage_t* message, uint8_t* buffer)
|
|
346 | 346 |
{ |
347 | 347 |
aosDbgCheck(message != NULL); |
348 | 348 |
aosDbgCheck(buffer != NULL); |
... | ... | |
379 | 379 |
* |
380 | 380 |
* @param[in] msidata Pointer to the temporary data structure used during MSI. |
381 | 381 |
*/ |
382 |
void _msiOutro(aos_ssspmsidata_t* msidata) |
|
382 |
static void _msiOutro(aos_ssspmsidata_t* msidata)
|
|
383 | 383 |
{ |
384 | 384 |
aosDbgCheck(msidata != NULL); |
385 | 385 |
|
core/src/aos_system.c | ||
---|---|---|
695 | 695 |
* |
696 | 696 |
* @return Number of active threads. |
697 | 697 |
*/ |
698 |
size_t _numActiveThreads(void) |
|
698 |
static size_t _numActiveThreads(void)
|
|
699 | 699 |
{ |
700 | 700 |
size_t threads = 0; |
701 | 701 |
thread_t* tp = chRegFirstThread(); |
Also available in: Unified diff