fix: FLASH_F4_CR_LOCK

pull/386/head
texane 2016-03-17 19:27:14 +01:00
rodzic 03024048eb
commit 8a190733a2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -251,7 +251,7 @@ static void lock_flash(stlink_t *sl) {
if (sl->flash_type == FLASH_TYPE_F4) { if (sl->flash_type == FLASH_TYPE_F4) {
cr_reg = FLASH_F4_CR; cr_reg = FLASH_F4_CR;
cr_lock_shift = STM32L4_FLASH_CR_LOCK; cr_lock_shift = FLASH_F4_CR_LOCK;
} else if (sl->flash_type == FLASH_TYPE_L4) { } else if (sl->flash_type == FLASH_TYPE_L4) {
cr_reg = STM32L4_FLASH_CR; cr_reg = STM32L4_FLASH_CR;
cr_lock_shift = STM32L4_FLASH_CR_LOCK; cr_lock_shift = STM32L4_FLASH_CR_LOCK;