3.3.4.25 EMAFE_WriteProtectionSet Function

C

void EMAFE_WriteProtectionSet(uint32_t mode);

Summary

Set write protection mode.

Description

Set write protection mode.

Precondition

None.

Parameters

ParamDescription
modeBit mask to set protection options.

Returns

None.

Example


EMAFE_WriteProtectionSet(EMAFE_WPMR_WPCTRL_Msk);

Remarks

ModeDescription
EMAFE_WPMR_WPCFEN_MskEnables the write protection of the configuration registers
EMAFE_WPMR_WPITEN_MskEnables the write protection of EMAFE_IER and EMAFE_IDR
EMAFE_WPMR_WPCTRL_MskEnables the write protection of EMAFE_CTRL