Revision a93a1019
| bootloader/aos_bootloader.h | ||
|---|---|---|
| 40 | 40 |
|
| 41 | 41 |
/** |
| 42 | 42 |
* @brief Identifier for AMiRo-BLT |
| 43 |
* @note The version of the installed AMiRo-BLT can be retreived via the AMiRo-BLT interface.
|
|
| 43 |
* @note The version of the installed AMiRo-BLT can be retrieved via the AMiRo-BLT interface.
|
|
| 44 | 44 |
*/ |
| 45 | 45 |
#define AOS_BOOTLOADER_AMiRoBLT 1 |
| 46 | 46 |
|
| core/inc/aos_sssp.h | ||
|---|---|---|
| 279 | 279 |
*/ |
| 280 | 280 |
#if !defined(moduleSsspSignalPD) || defined(__DOXYGEN__) |
| 281 | 281 |
/** |
| 282 |
* @brief Retreive the control GPIO object for the PD signal.
|
|
| 282 |
* @brief Retrieve the control GPIO object for the PD signal.
|
|
| 283 | 283 |
* @return Pounter to the control GPIO object. |
| 284 | 284 |
*/ |
| 285 | 285 |
apalControlGpio_t* moduleSsspSignalPD(void); |
| 286 | 286 |
#endif /* !defined(moduleSsspSignalPD) */ |
| 287 | 287 |
#if !defined(moduleSsspEventflagPD) || defined(__DOXYGEN__) |
| 288 | 288 |
/** |
| 289 |
* @brief Retreive the GPIO event flag set by a PD signal edge.
|
|
| 289 |
* @brief Retrieve the GPIO event flag set by a PD signal edge.
|
|
| 290 | 290 |
* @return Eventflag set on PD events. |
| 291 | 291 |
*/ |
| 292 | 292 |
eventflags_t moduleSsspEventflagPD(void); |
| ... | ... | |
| 294 | 294 |
|
| 295 | 295 |
#if !defined(moduleSsspSignalS) || defined(__DOXYGEN__) |
| 296 | 296 |
/** |
| 297 |
* @brief Retreive the control GPIO object for the S signal.
|
|
| 297 |
* @brief Retrieve the control GPIO object for the S signal.
|
|
| 298 | 298 |
* @return Pounter to the control GPIO object. |
| 299 | 299 |
*/ |
| 300 | 300 |
apalControlGpio_t* moduleSsspSignalS(void); |
| 301 | 301 |
#endif /* !defined(moduleSsspSignalS) */ |
| 302 | 302 |
#if !defined(moduleSsspEventflagS) || defined(__DOXYGEN__) |
| 303 | 303 |
/** |
| 304 |
* @brief Retreive the GPIO event flag set by a S signal edge.
|
|
| 304 |
* @brief Retrieve the GPIO event flag set by a S signal edge.
|
|
| 305 | 305 |
* @return Eventflag set on S events. |
| 306 | 306 |
*/ |
| 307 | 307 |
eventflags_t moduleSsspEventflagS(void); |
| ... | ... | |
| 312 | 312 |
#if (AMIROOS_CFG_SSSP_STACK_START != true) || defined(__DOXYGEN__) |
| 313 | 313 |
#if !defined(moduleSsspSignalDN) || defined(__DOXYGEN__) |
| 314 | 314 |
/** |
| 315 |
* @brief Retreive the control GPIO object for the DN signal.
|
|
| 315 |
* @brief Retrieve the control GPIO object for the DN signal.
|
|
| 316 | 316 |
* @return Pounter to the control GPIO object. |
| 317 | 317 |
*/ |
| 318 | 318 |
apalControlGpio_t* moduleSsspSignalDN(void); |
| 319 | 319 |
#endif /* !defined(moduleSsspSignalDN) */ |
| 320 | 320 |
#if !defined(moduleSsspEventflagDN) || defined(__DOXYGEN__) |
| 321 | 321 |
/** |
| 322 |
* @brief Retreive the GPIO event flag set by a DN signal edge.
|
|
| 322 |
* @brief Retrieve the GPIO event flag set by a DN signal edge.
|
|
| 323 | 323 |
* @return Eventflag set on DN events. |
| 324 | 324 |
*/ |
| 325 | 325 |
eventflags_t moduleSsspEventflagDN(void); |
| ... | ... | |
| 329 | 329 |
#if (AMIROOS_CFG_SSSP_STACK_END != true) || defined(__DOXYGEN__) |
| 330 | 330 |
#if !defined(moduleSsspSignalUP) || defined(__DOXYGEN__) |
| 331 | 331 |
/** |
| 332 |
* @brief Retreive the control GPIO object for the UP signal.
|
|
| 332 |
* @brief Retrieve the control GPIO object for the UP signal.
|
|
| 333 | 333 |
* @return Pounter to the control GPIO object. |
| 334 | 334 |
*/ |
| 335 | 335 |
apalControlGpio_t* moduleSsspSignalUP(void); |
| 336 | 336 |
#endif /* !defined(moduleSsspSignalUP) */ |
| 337 | 337 |
#if !defined(moduleSsspEventflagUP) || defined(__DOXYGEN__) |
| 338 | 338 |
/** |
| 339 |
* @brief Retreive the GPIO event flag set by a UP signal edge.
|
|
| 339 |
* @brief Retrieve the GPIO event flag set by a UP signal edge.
|
|
| 340 | 340 |
* @return Eventflag set on UP events. |
| 341 | 341 |
*/ |
| 342 | 342 |
eventflags_t moduleSsspEventflagUP(void); |
| core/src/aos_shell.c | ||
|---|---|---|
| 483 | 483 |
} |
| 484 | 484 |
|
| 485 | 485 |
/** |
| 486 |
* @brief Retreive a pointer to the string buffer of a specified entry in the input buffer.
|
|
| 486 |
* @brief Retrieve a pointer to the string buffer of a specified entry in the input buffer.
|
|
| 487 | 487 |
* |
| 488 | 488 |
* @param[in] shell Pointer to a shell object. |
| 489 | 489 |
* @param[in] entry Entry to be retrieved. |
| ... | ... | |
| 503 | 503 |
* |
| 504 | 504 |
* @param[in] shell Pointer to a shell object. |
| 505 | 505 |
* @param[in] rdata Pointer to a runtime data object. |
| 506 |
* @param[in] offset Relative offset of the entry to be retreived.
|
|
| 506 |
* @param[in] offset Relative offset of the entry to be retrieved.
|
|
| 507 | 507 |
* |
| 508 | 508 |
* @return Absolute index of the historic entry. |
| 509 | 509 |
*/ |
| ... | ... | |
| 517 | 517 |
} |
| 518 | 518 |
|
| 519 | 519 |
/** |
| 520 |
* @brief Retreive a pointer to the string buffer of a historic entry in the input buffer.
|
|
| 520 |
* @brief Retrieve a pointer to the string buffer of a historic entry in the input buffer.
|
|
| 521 | 521 |
* |
| 522 | 522 |
* @param[in] shell Pointer to a shell object. |
| 523 | 523 |
* @param[in] rdata Pointer to a runtime data object. |
| 524 |
* @param[in] offset Relative offset of the entry to be retreived.
|
|
| 524 |
* @param[in] offset Relative offset of the entry to be retrieved.
|
|
| 525 | 525 |
* |
| 526 | 526 |
* @return Pointer to the entry in the input buffer. |
| 527 | 527 |
*/ |
| ... | ... | |
| 535 | 535 |
} |
| 536 | 536 |
|
| 537 | 537 |
/** |
| 538 |
* @brief Retreive a pointer to the current entry string in the input buffer.
|
|
| 538 |
* @brief Retrieve a pointer to the current entry string in the input buffer.
|
|
| 539 | 539 |
* |
| 540 | 540 |
* @param[in] shell Pointer to a shell object. |
| 541 | 541 |
* @param[in] rdata Pointer to a runtime data object. |
| ... | ... | |
| 551 | 551 |
} |
| 552 | 552 |
|
| 553 | 553 |
/** |
| 554 |
* @brief Retreive a pointer to the currently selected entry.
|
|
| 554 |
* @brief Retrieve a pointer to the currently selected entry.
|
|
| 555 | 555 |
* |
| 556 | 556 |
* @param[in] shell Pointer to a shell object. |
| 557 | 557 |
* @param[in] rdata Pointer to a runtime data object. |
| ... | ... | |
| 571 | 571 |
} |
| 572 | 572 |
|
| 573 | 573 |
/** |
| 574 |
* @brief Retreive the currently visualized entry.
|
|
| 574 |
* @brief Retrieve the currently visualized entry.
|
|
| 575 | 575 |
* |
| 576 | 576 |
* @param[in] shell Pointer to a shell object. |
| 577 | 577 |
* @param[in] rdata Pointer to a runtime data object. |
| ... | ... | |
| 908 | 908 |
return 0; |
| 909 | 909 |
} |
| 910 | 910 |
|
| 911 |
// retreive entry in the input buffer
|
|
| 911 |
// retrieve entry in the input buffer
|
|
| 912 | 912 |
char* line = _getCurrentEntry(shell, rdata); |
| 913 | 913 |
|
| 914 | 914 |
// overwrite content |
| core/src/aos_sssp.c | ||
|---|---|---|
| 1263 | 1263 |
#if ((AMIROOS_CFG_SSSP_MASTER != true) && (AMIROOS_CFG_PROFILE == true)) || defined(__DOXYGEN__) |
| 1264 | 1264 |
|
| 1265 | 1265 |
/** |
| 1266 |
* @brief Retreive the offset between local clock and system synchronization signal.
|
|
| 1266 |
* @brief Retrieve the offset between local clock and system synchronization signal.
|
|
| 1267 | 1267 |
* |
| 1268 | 1268 |
* @return |
| 1269 | 1269 |
*/ |
| ... | ... | |
| 1369 | 1369 |
|
| 1370 | 1370 |
// GPIO event |
| 1371 | 1371 |
if (mask & gpiolistener->events) {
|
| 1372 |
// retreive flags without clearing them
|
|
| 1372 |
// retrieve flags without clearing them
|
|
| 1373 | 1373 |
flags = gpiolistener->flags; |
| 1374 | 1374 |
apalControlGpioGet(moduleSsspSignalS(), &sstate); |
| 1375 | 1375 |
if (flags == sflags) {
|
| core/src/aos_system.c | ||
|---|---|---|
| 673 | 673 |
sum += ch.kernel_stats.m_crit_thd.cumulative; |
| 674 | 674 |
sum += ch.kernel_stats.m_crit_isr.cumulative; |
| 675 | 675 |
|
| 676 |
// retreive, calculate and print performance measures
|
|
| 676 |
// retrieve, calculate and print performance measures
|
|
| 677 | 677 |
chprintf(stream, "threads & critical zones:\n"); |
| 678 | 678 |
thd = chRegFirstThread(); |
| 679 | 679 |
do {
|
| ... | ... | |
| 689 | 689 |
"ISR critical zones", |
| 690 | 690 |
(double)((float)ch.kernel_stats.m_crit_isr.cumulative / (float)sum * 100.f)); |
| 691 | 691 |
|
| 692 |
// retreive further real-time statistics
|
|
| 692 |
// retrieve further real-time statistics
|
|
| 693 | 693 |
chprintf(stream, "\nworst critical zones:\n"); |
| 694 | 694 |
chprintf(stream, "\tthreads: %uus (%u clock cycles)\n", |
| 695 | 695 |
RTC2US(SystemCoreClock, ch.kernel_stats.m_crit_thd.worst), |
| ... | ... | |
| 772 | 772 |
} |
| 773 | 773 |
|
| 774 | 774 |
/** |
| 775 |
* @brief Retreive the number of active threads.
|
|
| 775 |
* @brief Retrieve the number of active threads.
|
|
| 776 | 776 |
* |
| 777 | 777 |
* @return Number of active threads. |
| 778 | 778 |
*/ |
Also available in: Unified diff