Renesas FSL-T06 User Manual page 51

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.4.8 FSL_ChangeSwapFlag
R01US0046ED Rev. 1.01
User Manual
Arguments
Type
fsl_u32
pSwapFlag_pu32
Return types / values
Type
fsl_status_t
fsl_u32
pSwapFlag_pu32
Pre-conditions
Library must be initialized (call function FSL_Init), copied (call function
FSL_CopySections) and active (call function FSL_FlashEnv_Activate).
Additionally the library must be informed about FBUS clock by using function
FSL_SetFrequency.
Post-conditions
None
Example
/* Read boot cluster */
fsl_u32
flag_u32;
fsl_status_t
status_enu
status_enu = FSL_GetSwapFlag( &flag_u32 );
/* Error treatment */
...
Description
The function inverts the bootswap. Depending on the parameter, additionally the
current swap state is inverted.
Interface
fsl_status_t FSL_ChangeSwapFlag( fsl_u32 immediateSwap_u32 )
Arguments
Type
fsl_u32
immediateSwap_u32
Argument
Pointer to buffer of read swap flag
Argument
Function return values:
Pointer to buffer filled with current value
of the boot swap flag:
Argument
Swap boot cluster immediately:
Description
Description
FSL_OK
FSL_ERR_FLOW
FSL_ERR_PARAMETER
0x00: not swapped
0x01: swapped
Description
0x00: Do not swap boot cluster
0x01: Swap boot cluster
User Interface (API)
51

Advertisement

Table of Contents
loading

Table of Contents