Revision 6b53f6bf modules/PowerManagement_1-1/module.h
modules/PowerManagement_1-1/module.h | ||
---|---|---|
422 | 422 |
*/ |
423 | 423 |
#define MODULE_OS_IOEVENTFLAGS_SYSUARTUP ((eventflags_t)1 << MODULE_GPIO_EXTCHANNEL_SYSUARTUP) |
424 | 424 |
|
425 |
/** |
|
426 |
* @brief PD signal for SSSP. |
|
427 |
*/ |
|
428 |
extern apalControlGpio_t moduleSsspPd; |
|
429 |
|
|
430 |
/** |
|
431 |
* @brief SYNC signal for SSSP. |
|
432 |
*/ |
|
433 |
extern apalControlGpio_t moduleSsspSync; |
|
434 |
|
|
425 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || defined(__DOXYGEN__) |
|
435 | 426 |
/** |
436 | 427 |
* @brief Shell prompt text. |
437 | 428 |
*/ |
438 | 429 |
extern const char* moduleShellPrompt; |
430 |
#endif |
|
439 | 431 |
|
440 | 432 |
/** |
441 | 433 |
* @brief Unit test initialization hook. |
442 | 434 |
*/ |
443 | 435 |
#define MODULE_INIT_TESTS() { \ |
444 | 436 |
/* add unit-test shell commands */ \ |
445 |
aosShellAddCommand(aos.shell, &moduleUtAdcVsys.shellcmd); \
|
|
446 |
aosShellAddCommand(aos.shell, &moduleUtAlldAt24c01bn.shellcmd); \
|
|
447 |
aosShellAddCommand(aos.shell, &moduleUtAlldBq24103a.shellcmd); \
|
|
448 |
aosShellAddCommand(aos.shell, &moduleUtAlldBq27500.shellcmd); \
|
|
449 |
aosShellAddCommand(aos.shell, &moduleUtAlldBq27500Bq24103a.shellcmd); \
|
|
450 |
aosShellAddCommand(aos.shell, &moduleUtAlldIna219.shellcmd); \
|
|
451 |
aosShellAddCommand(aos.shell, &moduleUtAlldMpr121.shellcmd); \
|
|
452 |
aosShellAddCommand(aos.shell, &moduleUtAlldPca9544a.shellcmd); \
|
|
453 |
aosShellAddCommand(aos.shell, &moduleUtAlldPklcs1212e4001.shellcmd); \
|
|
454 |
aosShellAddCommand(aos.shell, &moduleUtAlldLed.shellcmd); \
|
|
455 |
aosShellAddCommand(aos.shell, &moduleUtAlldTps62113.shellcmd); \
|
|
456 |
aosShellAddCommand(aos.shell, &moduleUtAlldTps62113Ina219.shellcmd); \
|
|
457 |
aosShellAddCommand(aos.shell, &moduleUtAlldVcnl4020.shellcmd); \
|
|
437 |
aosShellAddCommand(&aos.shell, &moduleUtAdcVsys.shellcmd); \
|
|
438 |
aosShellAddCommand(&aos.shell, &moduleUtAlldAt24c01bn.shellcmd); \
|
|
439 |
aosShellAddCommand(&aos.shell, &moduleUtAlldBq24103a.shellcmd); \
|
|
440 |
aosShellAddCommand(&aos.shell, &moduleUtAlldBq27500.shellcmd); \
|
|
441 |
aosShellAddCommand(&aos.shell, &moduleUtAlldBq27500Bq24103a.shellcmd); \
|
|
442 |
aosShellAddCommand(&aos.shell, &moduleUtAlldIna219.shellcmd); \
|
|
443 |
aosShellAddCommand(&aos.shell, &moduleUtAlldMpr121.shellcmd); \
|
|
444 |
aosShellAddCommand(&aos.shell, &moduleUtAlldPca9544a.shellcmd); \
|
|
445 |
aosShellAddCommand(&aos.shell, &moduleUtAlldPklcs1212e4001.shellcmd); \
|
|
446 |
aosShellAddCommand(&aos.shell, &moduleUtAlldLed.shellcmd); \
|
|
447 |
aosShellAddCommand(&aos.shell, &moduleUtAlldTps62113.shellcmd); \
|
|
448 |
aosShellAddCommand(&aos.shell, &moduleUtAlldTps62113Ina219.shellcmd); \
|
|
449 |
aosShellAddCommand(&aos.shell, &moduleUtAlldVcnl4020.shellcmd); \
|
|
458 | 450 |
} |
459 | 451 |
|
460 | 452 |
/** |
... | ... | |
489 | 481 |
} |
490 | 482 |
|
491 | 483 |
/** |
492 |
* @brief Hook to handle IO events during SSSP startup synchronization. |
|
493 |
*/ |
|
494 |
#define MODULE_SSP_STARTUP_OUTRO_IO_EVENT(mask, flags) { \ |
|
495 |
/* ignore all events */ \ |
|
496 |
(void)mask; \ |
|
497 |
(void)flags; \ |
|
498 |
} |
|
499 |
|
|
500 |
/** |
|
501 | 484 |
* @brief Periphery communication interface deinitialization hook. |
502 | 485 |
*/ |
503 | 486 |
#define MODULE_SHUTDOWN_PERIPHERY_COMM() { \ |
... | ... | |
515 | 498 |
|
516 | 499 |
/*===========================================================================*/ |
517 | 500 |
/** |
501 |
* @name Startup Shutdown Synchronization Protocol (SSSP) |
|
502 |
* @{ |
|
503 |
*/ |
|
504 |
/*===========================================================================*/ |
|
505 |
|
|
506 |
/** |
|
507 |
* @brief PD signal GPIO. |
|
508 |
*/ |
|
509 |
extern apalControlGpio_t moduleSsspGpioPd; |
|
510 |
|
|
511 |
/** |
|
512 |
* @brief SYNC signal GPIO. |
|
513 |
*/ |
|
514 |
extern apalControlGpio_t moduleSsspGpioSync; |
|
515 |
|
|
516 |
/** |
|
517 |
* @brief Event flags for PD signal events. |
|
518 |
*/ |
|
519 |
#define MODULE_SSSP_EVENTFLAGS_PD MODULE_OS_IOEVENTFLAGS_SYSPD |
|
520 |
|
|
521 |
/** |
|
522 |
* @brief Event flags for Sync signal events. |
|
523 |
*/ |
|
524 |
#define MODULE_SSSP_EVENTFLAGS_SYNC MODULE_OS_IOEVENTFLAGS_SYSSYNC |
|
525 |
|
|
526 |
/** |
|
527 |
* @brief Hook to handle IO events during SSSP startup synchronization. |
|
528 |
*/ |
|
529 |
#define MODULE_SSSP_STARTUP_OSINIT_OUTRO_IOEVENT_HOOK(mask, flags) { \ |
|
530 |
/* ignore all events */ \ |
|
531 |
(void)mask; \ |
|
532 |
(void)flags; \ |
|
533 |
} |
|
534 |
|
|
535 |
/** @} */ |
|
536 |
|
|
537 |
/*===========================================================================*/ |
|
538 |
/** |
|
518 | 539 |
* @name Low-level drivers |
519 | 540 |
* @{ |
520 | 541 |
*/ |
Also available in: Unified diff