/*-----------------------------------------------------------------------------------
!
!                              COPYRIGHT 2015 BY
!                            MegaChips Corporation
!
!------------------------------------------------------------------------------------
! These coded instructions, statements, and computer programs include
! intellectual property and know-how belonging to MegaChips
! Corporaiton ("MCC") and its partner companies.
! Therefore, do not use these specifications for any purpose other than
! the purpose
! expressly agreed to by MCCs customer and MCC.  Also, do not duplicate,
! copy,
! or reproduce these specifications, nor reveal these specifications to
! any third party
! without MCCs prior written consent.
!
*/
/*-----------------------------------------------------------------------------------
  FILE        : rom.h
  DESCRIPTION : rom data
  Revision    : $Rev: 4 $
  Author      : $Author: shirait $
  Date        : $Date: 2015-09-09 15:19:58 +0900 (豌ｴ, 09 9 2015) $
-----------------------------------------------------------------------------------*/
#ifndef __ROM_INCLUDED__
#define __ROM_INCLUDED__

#include "rom_reg.h"

#define ROM_GetFWPkeyE() (&ROMR.fw_pkeye)
#define ROM_GetFWPkeyN() (ROMR.fw_pkeyn)

#ifdef FW
/*************************************************************************************
FWでのみ使用する処理
*************************************************************************************/
#define ROM_GetCaPkeyE(x) (&ROMR.ca_pkeye[(x)])
#define ROM_GetCaPkeyN(x) (ROMR.ca_pkeyn[(x)])
#define ROM_GetSoCKeyN() (ROMR.soc_skeyn)

#define ROM_GetT1CAKeyE() (&ROMR.t1_ca_pkeye)
#define ROM_GetT1CAKeyN() (ROMR.t1_ca_pkeyn)

#endif

#endif // __ROM_REG_INCLUDED__
