| 122 |
122 |
},
|
| 123 |
123 |
};
|
| 124 |
124 |
|
| 125 |
|
/**
|
| 126 |
|
* @brief SW_V42_EN output signal GPIO.
|
| 127 |
|
*/
|
| 128 |
|
static apalGpio_t _gpioSwV42En = {
|
| 129 |
|
/* line */ LINE_SW_V42_EN,
|
| 130 |
|
};
|
| 131 |
|
ROMCONST apalControlGpio_t moduleGpioSwV42En = {
|
| 132 |
|
/* GPIO */ &_gpioSwV42En,
|
| 133 |
|
/* meta */ {
|
| 134 |
|
/* direction */ APAL_GPIO_DIRECTION_OUTPUT,
|
| 135 |
|
/* active state */ MIC9404x_LLD_EN_ACTIVE_STATE,
|
| 136 |
|
/* interrupt edge */ APAL_GPIO_EDGE_NONE,
|
| 137 |
|
},
|
| 138 |
|
};
|
|
125 |
// The 4.2V switch is disabled due to a hardware bug.
|
|
126 |
///**
|
|
127 |
// * @brief SW_V42_EN output signal GPIO.
|
|
128 |
// */
|
|
129 |
//static apalGpio_t _gpioSwV42En = {
|
|
130 |
// /* line */ LINE_SW_V42_EN,
|
|
131 |
//};
|
|
132 |
//ROMCONST apalControlGpio_t moduleGpioSwV42En = {
|
|
133 |
// /* GPIO */ &_gpioSwV42En,
|
|
134 |
// /* meta */ {
|
|
135 |
// /* direction */ APAL_GPIO_DIRECTION_OUTPUT,
|
|
136 |
// /* active state */ MIC9404x_LLD_EN_ACTIVE_STATE,
|
|
137 |
// /* interrupt edge */ APAL_GPIO_EDGE_NONE,
|
|
138 |
// },
|
|
139 |
//};
|
| 139 |
140 |
|
| 140 |
141 |
/**
|
| 141 |
142 |
* @brief SW_V50_EN output signal GPIO.
|
| ... | ... | |
| 447 |
448 |
/* power enable GPIO */ &moduleGpioSwV33En,
|
| 448 |
449 |
};
|
| 449 |
450 |
|
| 450 |
|
MIC9404xDriver moduleLldPowerSwitchV42 = {
|
| 451 |
|
/* power enable GPIO */ &moduleGpioSwV42En,
|
| 452 |
|
};
|
|
451 |
// The 4.2V switch is disabled due to a hardware bug.
|
|
452 |
//MIC9404xDriver moduleLldPowerSwitchV42 = {
|
|
453 |
// /* power enable GPIO */ &moduleGpioSwV42En,
|
|
454 |
//};
|
| 453 |
455 |
|
| 454 |
456 |
MIC9404xDriver moduleLldPowerSwitchV50 = {
|
| 455 |
457 |
/* power enable GPIO */ &moduleGpioSwV50En,
|
| ... | ... | |
| 571 |
573 |
moduleUtAlldMic9404x.data = NULL;
|
| 572 |
574 |
return AOS_OK;
|
| 573 |
575 |
}
|
| 574 |
|
else if (strcmp(argv[1], "4.2V") == 0) {
|
| 575 |
|
moduleUtAlldMic9404x.data = &moduleLldPowerSwitchV42;
|
| 576 |
|
aosUtRun(stream, &moduleUtAlldMic9404x, "4.2V");
|
| 577 |
|
moduleUtAlldMic9404x.data = NULL;
|
| 578 |
|
return AOS_OK;
|
| 579 |
|
}
|
|
576 |
// The 4.2V switch is disabled due to a hardware bug.
|
|
577 |
// else if (strcmp(argv[1], "4.2V") == 0) {
|
|
578 |
// moduleUtAlldMic9404x.data = &moduleLldPowerSwitchV42;
|
|
579 |
// aosUtRun(stream, &moduleUtAlldMic9404x, "4.2V");
|
|
580 |
// moduleUtAlldMic9404x.data = NULL;
|
|
581 |
// return AOS_OK;
|
|
582 |
// }
|
| 580 |
583 |
else if (strcmp(argv[1], "5.0V") == 0) {
|
| 581 |
584 |
moduleUtAlldMic9404x.data = &moduleLldPowerSwitchV50;
|
| 582 |
585 |
aosUtRun(stream, &moduleUtAlldMic9404x, "5.0V");
|
| ... | ... | |
| 597 |
600 |
chprintf(stream, " Test power switch for 1.8V supply.\n");
|
| 598 |
601 |
chprintf(stream, " 3.3V\n");
|
| 599 |
602 |
chprintf(stream, " Test power switch for 3.3V supply.\n");
|
| 600 |
|
chprintf(stream, " 4.2V\n");
|
| 601 |
|
chprintf(stream, " Test power switch for 4.2V supply.\n");
|
|
603 |
// The 4.2V switch is disabled due to a hardware bug.
|
|
604 |
// chprintf(stream, " 4.2V\n");
|
|
605 |
// chprintf(stream, " Test power switch for 4.2V supply.\n");
|
| 602 |
606 |
chprintf(stream, " 5.0V\n");
|
| 603 |
607 |
chprintf(stream, " Test power switch for 5.0V supply.\n");
|
| 604 |
608 |
chprintf(stream, " VSYS\n");
|