mcu/drv/fsl_flash_driver_c90tfs.c
/*FUNCTION**********************************************************************
 *
 * Function Name : FlashGetDEPartitionCode
 * Description   : Gets DFlash size from FlexNVM Partition Code.
 *
 * Implements    : FlashGetDEPartitionCode_Activity
 *END**************************************************************************/
FUNCTION

Function Name : FlashGetDEPartitionCode
Description   : Gets DFlash size from FlexNVM Partition Code.

Implements    : FlashGetDEPartitionCode_Activity
END
FUNCTION Function Name : FlashGetDEPartitionCode Description : Gets DFlash size from FlexNVM Partition Code . Implements : FlashGetDEPartitionCode_Activity END
static void FlashGetDEPartitionCode(flash_ssd_config_t * const pSSDConfig, \
                                    uint8_t DEPartitionCode)
{
    if      (0x00U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_0000;}
    else if (0x01U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_0001;}
    else if (0x02U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_0010;}
    else if (0x03U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_0011;}
    else if (0x04U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_0100;}
    else if (0x05U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_0101;}
    else if (0x06U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_0110;}
    else if (0x07U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_0111;}
    else if (0x08U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_1000;}
    else if (0x09U == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_1001;}
    else if (0x0AU == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_1010;}
    else if (0x0BU == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_1011;}
    else if (0x0CU == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_1100;}
    else if (0x0DU == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_1101;}
    else if (0x0EU == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_1110;}
    else if (0x0FU == DEPartitionCode) {pSSDConfig->DFlashSize = (uint32_t)FEATURE_FLS_DF_SIZE_1111;}
    else {}
}
static void FlashGetDEPartitionCode ( flash_ssd_config_t * const pSSDConfig , uint8_t DEPartitionCode ) { if ( 0x00U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_0000 ; } else if ( 0x01U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_0001 ; } else if ( 0x02U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_0010 ; } else if ( 0x03U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_0011 ; } else if ( 0x04U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_0100 ; } else if ( 0x05U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_0101 ; } else if ( 0x06U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_0110 ; } else if ( 0x07U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_0111 ; } else if ( 0x08U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_1000 ; } else if ( 0x09U == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_1001 ; } else if ( 0x0AU == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_1010 ; } else if ( 0x0BU == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_1011 ; } else if ( 0x0CU == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_1100 ; } else if ( 0x0DU == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_1101 ; } else if ( 0x0EU == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_1110 ; } else if ( 0x0FU == DEPartitionCode ) { pSSDConfig -> DFlashSize = ( uint32_t ) FEATURE_FLS_DF_SIZE_1111 ; } else { } }
FUNCTION
FUNCTION
/* Select D-Flash size */ /* Undefined value */