1 /* 2 * Copyright (c) 2020, Cypress Semiconductor Corporation. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef __NV_COUNTERS_H__ 9 #define __NV_COUNTERS_H__ 10 11 #include <stdint.h> 12 13 /** 14 * \brief Retrieve the base address and size of the non-volatile counters 15 * flash region. 16 * 17 * Note that this function should ensure that the values returned do 18 * not result in a security compromise. 19 * 20 * \param[out] base Base address of NVC flash region 21 * \param[out] size Size of NVC flash region 22 * 23 * \return void 24 */ 25 void nvc_flash_block(uint32_t *base, size_t *size); 26 27 #endif /* __NV_COUNTERS_H__ */ 28