targets/TARGET_STM/TARGET_STM32U5/flash_api.c
/**
  * @brief  Gets the page of a given address
  * @param  Addr: Address of the FLASH Memory
  * @retval The page of a given address
  */
@brief  Gets the page of a given address
@param  Addr: Address of the FLASH Memory
@retval The page of a given address
@brief Gets the page of a given address @param Addr : Address of the FLASH Memory @retval The page of a given address
static uint32_t GetPage(uint32_t Addr)
{
    uint32_t page = 0;
    if (Addr < (FLASH_BASE + FLASH_BANK_SIZE)) {
        page = (Addr - FLASH_BASE) / FLASH_PAGE_SIZE;
    } else {
        page = (Addr - (FLASH_BASE + FLASH_BANK_SIZE)) / FLASH_PAGE_SIZE;
    }
    return page;
}
static uint32_t GetPage ( uint32_t Addr ) { uint32_t page = 0 ; if ( Addr < ( FLASH_BASE + FLASH_BANK_SIZE ) ) { page = ( Addr - FLASH_BASE ) / FLASH_PAGE_SIZE ; } else { page = ( Addr - ( FLASH_BASE + FLASH_BANK_SIZE ) ) / FLASH_PAGE_SIZE ; } return page ; }
@brief  Gets the page of a given address
 @param  Addr: Address of the FLASH Memory
 @retval The page of a given address
@brief Gets the page of a given address @param Addr : Address of the FLASH Memory @retval The page of a given address
/* Bank 1 */ /* Bank 2 */