1.9.10.12 FCW_PFM_WriteProtectRegionSetup Function

C

void FCW_PFM_WriteProtectRegionSetup( PFM_WP_REGION region, PFM_WP_REGION_SETUP setupStruct );

Summary

Creates program flash region

Description

This function creates a program flash region of given size and address. It later can be write protected using FCW_PFM_WriteProtectEnable API.

Precondition

None

Parameters

Param Description
region Region number
setupStruct structure having detail of the region like base address, size etc

Returns

None.

Example

PFM_WP_REGION_SETUP setupStruct;

setupStruct.regionBaseAddress = 0xC000000U
setupStruct.mirrorEnable = true;
setupStruct.regionSize = 0 //4KB region

FCW_PFM_WriteProtectRegionSetup(PFM_WP_REGION_2, setupStruct);