/*==================================================================================================
* Project : RTD AUTOSAR 4.7
* Platform : CORTEXM
* Peripheral : S32K3XX
* Dependencies : none
*
* Autosar Version : 4.7.0
* Autosar Revision : ASR_REL_4_7_REV_0000
* Autosar Conf.Variant :
* SW Version : 4.0.0
* Build Version : S32K3_RTD_4_0_0_D2311_ASR_REL_4_7_REV_0000_20231128
*
* Copyright 2020 - 2023 NXP
*
* NXP Confidential. This software is owned or controlled by NXP and may only be
* used strictly in accordance with the applicable license terms. By expressly
* accepting such terms or by downloading, installing, activating and/or otherwise
* using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms. If you do not agree to be
* bound by the applicable license terms, then you may not retain, install,
* activate or otherwise use the software.
==================================================================================================*/

/**
*   @file main.c
*
*   @addtogroup main_module main module documentation
*   @{
*/

/* Including necessary configuration files. */
#include "Mcal.h"
#include "Clock_Ip.h"
#include "Siul2_Port_Ip.h"

volatile int exit_code = 0;
/* User includes */

/*!
  \brief The main function for the project.
  \details The startup initialization sequence is the following:
 * - startup asm routine
 * - main()
*/
__attribute__ ((section(".bootApp"))) unsigned short g_u2CurrBootOrAppMode;

//__attribute__ ((section(".AppValid"))) const unsigned char AppCodeIntegrity[] =
//{
//   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
//   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
//   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
//};
//
//__attribute__ ((section(".Finger"))) const unsigned char FingerPrintTestSN[16] =
//{
//	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,/*testerSerialNumber*/
//	0x24,0x09,0x10,  /*time*/
//	0x20,0x20,0x20,0x20,0x20,/*space*/
//};
//
//__attribute__ ((section(".Finger"))) const unsigned short AppSwProgramSuccCntr = 0x000000;
//__attribute__ ((section(".Finger"))) const unsigned short AppSwProgramErrCntr = 0x000000;
//__attribute__ ((section(".Finger"))) const unsigned short AppSwMaxAllowProgramCntr = 50000;

void Swt_Callback(void)
{

}

void        TIMERCH0CallBack(void)
{

}

void CAN4TxRxIntCallBack(void)
{

}

void CAN4ERRIntCallBack(void)
{

}

int main(void)
{
    /* Write your code here */
    //OsIf_Init(NULL_PTR);

	/** Clock IPL Init */
	Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);

    for(;;)
    {
        if(exit_code != 0)
        {
            break;
        }
    }
    return exit_code;
}

/** @} */
