/**
 *******************************************************************************
 *
 * @file        MG32_RST_Init.c
 *
 * @brief       The RST initial code C file
 *
 * @par         Project
 *              MG32
 * @version     V1.10
 * @date        2018/01/31
 * @author      Megawin Software Center
 * @copyright   Copyright (c) 2018 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.
 *******************************************************************************
 *******************************************************************************
 */

#include "MG32_RST_Init.h"



/**
 *******************************************************************************
 * @brief  	    initialized RST module.
 * @details  
 * @return	    None	
 * @note
 * @par         Example
 * @code
    RST_Init ();
 * @endcode
 *******************************************************************************
 */
void RST_Init (void)
{
    UnProtectModuleReg(RSTprotect);
    RST->CR0.W = RST_InitConfig[3];
    RST->CE.W = RST_InitConfig[4];
    RST->WE.W = RST_InitConfig[5];
    RST->AHB.W = RST_InitConfig[6];
    RST->APB0.W = RST_InitConfig[7];
    RST->APB1.W = RST_InitConfig[8];
    ProtectModuleReg(RSTprotect);
}
