Merged in david_s5/nuttx/upstream_stm32_flash_fixes (pull request #294)
stm322_flash:missing unlock on F1 HSI off path Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
commit
038ec5439f
@ -290,6 +290,7 @@ ssize_t up_progmem_erasepage(size_t page)
|
||||
#if !defined(CONFIG_STM32_STM32F40XX)
|
||||
if (!(getreg32(STM32_RCC_CR) & RCC_CR_HSION))
|
||||
{
|
||||
sem_unlock();
|
||||
return -EPERM;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user