Revision 2347b2ff modules/PowerManagement_1-2/module.c
modules/PowerManagement_1-2/module.c | ||
---|---|---|
688 | 688 |
/* LED GPIO */ &moduleGpioLed, |
689 | 689 |
}; |
690 | 690 |
|
691 |
SwitchDriver moduleLldBatterySwitch = { |
|
692 |
/* GPIO */ &moduleGpioSwitchStatus, |
|
693 |
}; |
|
694 |
|
|
691 | 695 |
TPS6211xDriver moduleLldStepDownConverter = { |
692 | 696 |
/* Power enable GPIO */ &moduleGpioPowerEn, |
693 | 697 |
}; |
... | ... | |
847 | 851 |
AOS_SHELL_COMMAND(moduleTestPkxxxexxxShellCmd, "test:Buzzer", _testPkxxxexxxShellCmdCb); |
848 | 852 |
|
849 | 853 |
/* |
854 |
* switch |
|
855 |
*/ |
|
856 |
#include <module_test_switch.h> |
|
857 |
static int _testSwitchShellCmdCb(BaseSequentialStream* stream, int argc, char* argv[]) |
|
858 |
{ |
|
859 |
return moduleTestSwitchShellCb(stream, argc, argv, NULL); |
|
860 |
} |
|
861 |
AOS_SHELL_COMMAND(moduleTestSwitchShellCmd, "test:Switch", _testSwitchShellCmdCb); |
|
862 |
|
|
863 |
/* |
|
850 | 864 |
* TPS62113 (step-down converter) |
851 | 865 |
*/ |
852 | 866 |
#include <module_test_TPS6211x.h> |
... | ... | |
1033 | 1047 |
status |= moduleTestPkxxxexxxShellCb(stream, 0, targv, &result_test); |
1034 | 1048 |
result_total = aosTestResultAdd(result_total, result_test); |
1035 | 1049 |
|
1050 |
/* battery switch */ |
|
1051 |
status |= moduleTestSwitchShellCb(stream, 0, targv, &result_test); |
|
1052 |
result_total = aosTestResultAdd(result_total, result_test); |
|
1053 |
|
|
1036 | 1054 |
/* TPS62113 (step-down converter) */ |
1037 | 1055 |
status |= moduleTestTps6211xShellCb(stream, 0, targv, &result_test); |
1038 | 1056 |
result_total = aosTestResultAdd(result_total, result_test); |
Also available in: Unified diff