mirror of https://github.com/wolfSSL/wolfBoot.git
Added comment in test-app
parent
9b4278265e
commit
ea79b86fb1
|
@ -77,18 +77,17 @@ void main(void)
|
||||||
|
|
||||||
hal_init();
|
hal_init();
|
||||||
if (bootVer == 1) {
|
if (bootVer == 1) {
|
||||||
|
/* Blue LED ON, GPIOA port A pin 20 */
|
||||||
GPIO_PinWrite(GPIOA, 20, 0);
|
GPIO_PinWrite(GPIOA, 20, 0);
|
||||||
wolfBoot_update_trigger();
|
wolfBoot_update_trigger();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Green LED GPIOA port A pin 19 */
|
/* Green LED ON, GPIOA port A pin 19 */
|
||||||
GPIO_PinWrite(GPIOA, 19, 0);
|
GPIO_PinWrite(GPIOA, 19, 0);
|
||||||
/* mark boot successful */
|
/* mark boot successful */
|
||||||
wolfBoot_success();
|
wolfBoot_success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* busy wait */
|
/* busy wait */
|
||||||
while (1) {
|
while (1) {
|
||||||
__WFI();
|
__WFI();
|
||||||
|
|
Loading…
Reference in New Issue