X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstmf0%2Fao_boot_pin.c;h=43212dfd300c0024227bf5fe0e15c80dd3f0d00e;hb=044f68d6be05be8b0a6a2432f64b8fb2e94ca956;hp=f21ce1b251ff5931d5609ebb1926b6d2d68966ed;hpb=ffbf340c516a7fff7c95b808586f623269fe4338;p=fw%2Faltos diff --git a/src/stmf0/ao_boot_pin.c b/src/stmf0/ao_boot_pin.c index f21ce1b2..43212dfd 100644 --- a/src/stmf0/ao_boot_pin.c +++ b/src/stmf0/ao_boot_pin.c @@ -20,6 +20,7 @@ #include #include +#if AO_BOOT_PIN int ao_boot_check_pin(void) { @@ -41,6 +42,7 @@ ao_boot_check_pin(void) /* Reset the chip to turn off the port and the power interface clock */ ao_gpio_set_mode(&AO_BOOT_APPLICATION_GPIO, AO_BOOT_APPLICATION_PIN, 0); ao_disable_port(&AO_BOOT_APPLICATION_GPIO); - stm_rcc.apb1enr &= ~(1 << STM_RCC_APB1ENR_PWREN); + stm_rcc.apb1enr &= ~(1UL << STM_RCC_APB1ENR_PWREN); return v == AO_BOOT_APPLICATION_VALUE; } +#endif