blob: 1f3f6e5affa4dd7ea71d8a7948f6b39feb71ee3d [file] [log] [blame]
Chris Brandc47d7102020-02-20 11:12:18 -08001/*
2 * Copyright (c) 2020, Cypress Semiconductor Corporation. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#include "cmsis_compiler.h"
9#include "flash_layout.h"
10#include "tfm_hal_ps.h"
11
Chris Brand8a6b5c52020-10-30 16:49:56 -070012__WEAK void tfm_hal_ps_fs_info(uint32_t *flash_area_addr, size_t *flash_area_size)
Chris Brandc47d7102020-02-20 11:12:18 -080013{
14 if (!flash_area_addr || !flash_area_size) {
15 return;
16 }
17
18 *flash_area_addr = PS_FLASH_AREA_ADDR;
19 *flash_area_size = PS_FLASH_AREA_SIZE;
20}