/*********************************************************************************************************//**
 * @file    ht32f50231_41_libcfg.h
 * @version $Rev:: 4177         $
 * @date    $Date:: 2019-08-03 #$
 * @brief   The library configuration file.
 *************************************************************************************************************
* @attention
*
* Firmware Disclaimer Information
*
* 1. The customer hereby acknowledges and agrees that the program technical documentation, including the
*    code, which is supplied by Holtek Semiconductor Inc., (hereinafter referred to as "HOLTEK") is the
*    proprietary and confidential intellectual property of HOLTEK, and is protected by copyright law and
*    other intellectual property laws.
*
* 2. The customer hereby acknowledges and agrees that the program technical documentation, including the
*    code, is confidential information belonging to HOLTEK, and must not be disclosed to any third parties
*    other than HOLTEK and the customer.
*
* 3. The program technical documentation, including the code, is provided "as is" and for customer reference
*    only. After delivery by HOLTEK, the customer shall use the program technical documentation, including
*    the code, at their own risk. HOLTEK disclaims any expressed, implied or statutory warranties, including
*    the warranties of merchantability, satisfactory quality and fitness for a particular purpose.
*
* <h2><center>Copyright (C) Holtek Semiconductor Inc. All rights reserved</center></h2>
 ************************************************************************************************************/
/* Define to prevent recursive inclusion -------------------------------------------------------------------*/
#ifndef __HT32F50231_41_LIBCFG_H
#define __HT32F50231_41_LIBCFG_H

/* Settings ------------------------------------------------------------------------------------------------*/

#if !defined(USE_MEM_HT32F50231) && !defined(USE_MEM_HT32F50241)
#define USE_MEM_HT32F50241
#endif

#define LIBCFG_FLASH_PAGESIZE             (1024)

#ifdef USE_MEM_HT32F50231
  #define LIBCFG_FLASH_SIZE               (LIBCFG_FLASH_PAGESIZE * 32)
  #define LIBCFG_RAM_SIZE                 (1024 * 4)
  #define LIBCFG_CHIPNAME                 (0x50231)
#endif

#ifdef USE_MEM_HT32F50241
  #define LIBCFG_FLASH_SIZE               (LIBCFG_FLASH_PAGESIZE * 63)
  #define LIBCFG_RAM_SIZE                 (1024 * 8)
  #define LIBCFG_CHIPNAME                 (0x50241)
#endif

#define LIBCFG_ADC_CH8_11                 (1)
#define LIBCFG_ADC_INTERNAL_CH_V02        (1)
#define LIBCFG_LSE                        (1)
#define LIBCFG_SPI1                       (1)
#define LIBCFG_PWM0                       (1)
#define LIBCFG_PWM1                       (1)
#define LIBCFG_DIV                        (1)
#define LIBCFG_UART1                      (1)
#define LIBCFG_GPIOC                      (1)
#define LIBCFG_PWRCU_VDD_5V               (1)
#define LIBCFG_MCTM0                      (1)
#define LIBCFG_WAKEUP_V01                 (1)
#define LIBCFG_PWRCU_WAKEUP1              (1)
#define LIBCFG_PWRCU_PORF                 (1)
#define LIBCFG_SINK_CURRENT_ENHANCED      (1)
#define LIBCFG_CKCU_ATM_V01               (1)
#define LIBCFG_CRC                        (1)
#define LIBCFG_BFTM1                      (1)
#define LIBCFG_MCTM0                      (1)
#define LIBCFG_I2C1                       (1)
#define LIBCFG_NO_PLL                     (1)
#define LIBCFG_NO_FMC_PRE_FETCH           (1)
#define LIBCFG_NO_FMC_WAIT_STATUS         (1)
#define LIBCFG_FMC_CMD_READY_WAIT         (1)
#define LIBCFG_NO_PWRCU_V15_READY_SOURCE  (1)
#define LIBCFG_NO_PWRCU_TEST_REG          (1)
#define LIBCFG_NO_PWRCU_PDF               (1)
#define LIBCFG_NO_PWRCU_PORF              (1)
#define LIBCFG_NO_PWRCU_POWER_DOWN_MODE   (1)
#define LIBCFG_NO_SCTM                    (1)
#endif
