/*!
* @file     sys_init.h
*
* @version  1.0.0
*
* @brief    Header file of system initialize driver
*
* @attention
*
* Project Name      : AUTOSAR MCAL
*
* Platform          : Arm
*
* Autosar Standard  : Classic Platform 4.4.0
*
* Compiled Version  : G32A10xx_MCAL_1_0_0_01-Otc-25
*
* Copyright (C) 2026 Geehy Semiconductor
*
* You may not use this file except in compliance with the
* GEEHY COPYRIGHT NOTICE (Geehy Semiconductor Software License Agreement).
*
* The program is only for reference, which is distributed in the hope
* that it will be usefull and instructional for customers to develop
* their software. Unless required by applicable law or agreed to in
* writing, the program is distributed on an "AS IS" BASIS, WITHOUT
* ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
* See the Geehy Semiconductor Software License Agreement for the governing permissions
* and limitations under the License.
*/

#ifndef SYS_INIT_H
#define SYS_INIT_H

#include "g32a1085.h"

#ifdef __cplusplus
extern "C"
{
#endif

#include "typedefs.h"

/** @addtogroup G32A10xx_StdPeriphDriver
  @{
*/

/** @defgroup PLATFORM_Driver
  * @brief PLATFORM driver modules
  @{
*/

/** @defgroup PLATFORM_Fuctions
  @{
*/

/**
* @brief Scatter_Loading
* @details function used to initialize RAM variables and RAM functions
*/
#ifdef __ICCARM__
void Scatter_Loading(void);
#endif

void SystemInit(void);

void sys_disableIsrSource(IRQn_Type id);

void sys_enableIsrSource(IRQn_Type id, uint32_t prio);

void sys_registerIsrHandler(IRQn_Type irq_id, uint32_t isr_handler);

void sys_enableAllInterrupts(void);

void sys_disableAllInterrupts(void);

/**@} end of group PLATFORM_Fuctions */

#ifdef __cplusplus
}
#endif

#endif

/**@} end of group PLATFORM_Driver */
/**@} end of group G32A10xx_StdPeriphDriver */
