/**
 *******************************************************************************
 *
 * @file        MG32_SYS_DRV.h
 *
 * @brief       This is the C code format driver head file for SYS module.
 *
 * @par         Project
 *              MG32
 * @version     V1.14
 * @date        2024/04/16
 * @author      Megawin Software Center
 * @copyright   Copyright (c) 2021 MegaWin Technology Co., Ltd.
 *              All rights reserved.
 *
 *******************************************************************************
 * @par 		Disclaimer 
 * The Demo software is provided "AS IS" without any warranty, either 
 * expressed or implied, including, but not limited to, the implied warranties 
 * of merchantability and fitness for a particular purpose. The author will 
 * not be liable for any special, incidental, consequential or indirect 
 * damages due to loss of data or any other reason. 
 * These statements agree with the world wide and local dictated laws about 
 * authorship and violence against these laws. 
 *******************************************************************************
 *******************************************************************************
 */ 

#ifndef _MG32_SYS_DRV_H
/*!< _MG32_SYS_DRV_H */ 
#define _MG32_SYS_DRV_H 



#include "MG32__Common_DRV.h"
#include "MG32_SYS.h"



/**
 * @name    Function announce
 *
 */ 
///@{  
void SYS_ITEA_Cmd (FunctionalState NewState);
uint32_t SYS_GetChipMID (void);
uint8_t SYS_ReadGeneralReg (void);
void SYS_WriteGeneralReg (uint8_t SYS_Value);

#if defined(MG32_2ND)
uint32_t SYS_ReadBackupReg (void);
void SYS_WriteBackupReg (uint32_t SYS_Value);
#endif
///@}


#endif  //_MG32_SYS_DRV_H

