1 /*********************************************************************************************************//** 2 * @file ht32f66246_libcfg.h 3 * @version $Rev:: 8260 $ 4 * @date $Date:: 2024-11-05 #$ 5 * @brief The library configuration file. 6 ************************************************************************************************************* 7 * @attention 8 * 9 * Firmware Disclaimer Information 10 * 11 * 1. The customer hereby acknowledges and agrees that the program technical documentation, including the 12 * code, which is supplied by Holtek Semiconductor Inc., (hereinafter referred to as "HOLTEK") is the 13 * proprietary and confidential intellectual property of HOLTEK, and is protected by copyright law and 14 * other intellectual property laws. 15 * 16 * 2. The customer hereby acknowledges and agrees that the program technical documentation, including the 17 * code, is confidential information belonging to HOLTEK, and must not be disclosed to any third parties 18 * other than HOLTEK and the customer. 19 * 20 * 3. The program technical documentation, including the code, is provided "as is" and for customer reference 21 * only. After delivery by HOLTEK, the customer shall use the program technical documentation, including 22 * the code, at their own risk. HOLTEK disclaims any expressed, implied or statutory warranties, including 23 * the warranties of merchantability, satisfactory quality and fitness for a particular purpose. 24 * 25 * <h2><center>Copyright (C) Holtek Semiconductor Inc. All rights reserved</center></h2> 26 ************************************************************************************************************/ 27 /* Define to prevent recursive inclusion -------------------------------------------------------------------*/ 28 #ifndef __HT32F66246_LIBCFG_H 29 #define __HT32F66246_LIBCFG_H 30 31 /* Settings ------------------------------------------------------------------------------------------------*/ 32 33 #if !defined(USE_MEM_HT32F66246) 34 #define USE_MEM_HT32F66246 35 #endif 36 37 #define LIBCFG_MAX_SPEED (80000000) 38 39 #define LIBCFG_FLASH_PAGESIZE (1024) 40 41 #ifdef USE_MEM_HT32F66246 42 #define LIBCFG_FLASH_SIZE (LIBCFG_FLASH_PAGESIZE * 63) 43 #define LIBCFG_RAM_SIZE (1024 * 8) 44 #define LIBCFG_CHIPNAME (0x66246) 45 #endif 46 47 #define LIBCFG_ADC_SAMPLE_TIME_BY_CH (1) 48 #define LIBCFG_ADC_NO_OFFSET_REG (1) 49 #define LIBCFG_ADC_CH_66XXX_V1 (1) 50 #define LIBCFG_ADC_TRIG_SRC_V2 (1) 51 #define LIBCFG_ADC_TRIG_DELAY (1) 52 #define LIBCFG_ADC_HCONV_LENGTH_V2 (1) 53 #define LIBCFG_ADC_HDR_4_11 (1) 54 #define LIBCFG_ADC_STR_16_17 (1) 55 #define LIBCFG_ADC_HLST_0_2 (1) 56 #define LIBCFG_ADC_IVREF (1) 57 #define LIBCFG_ADC_MVDDA (1) 58 #define LIBCFG_AFIO_SCTM_MODE9 (1) 59 #define LIBCFG_BFTM1 (1) 60 #define LIBCFG_CAN0 (1) 61 #define LIBCFG_CKCU_ATM_V01 (1) 62 #define LIBCFG_CKCU_NO_ADCPRE_DIV1 (1) 63 #define LIBCFG_CKCU_NO_LPCR (1) 64 #define LIBCFG_CKCU_PLLSRCDIV (1) 65 #define LIBCFG_CKCU_REFCLK_EXT_PIN (1) 66 #define LIBCFG_CKCU_SYS_CK_60M (1) 67 #define LIBCFG_CKCU_SYS_CK_80M (1) 68 #define LIBCFG_CMP (1) 69 #define LIBCFG_CMP_65x_66x_VER (1) 70 #define LIBCFG_CMP_CO (1) 71 #define LIBCFG_CMP_NOSCALER_SRC (1) 72 #define LIBCFG_CMP_POS_INPUT_SEL_V3 (1) 73 #define LIBCFG_CMP_SCALER_8BIT (1) 74 #define LIBCFG_CRC (1) 75 #define LIBCFG_CORDIC (1) 76 #define LIBCFG_DIV (1) 77 #define LIBCFG_FMC_PREFETCH (1) 78 #define LIBCFG_FMC_BRANCHCACHE (1) 79 #define LIBCFG_FMC_WAIT_STATE_2 (1) 80 #define LIBCFG_FMC_WAIT_STATE_3 (1) 81 #define LIBCFG_MCTM0 (1) 82 #define LIBCFG_MCTM_UEV1DIS (1) 83 #define LIBCFG_GPIOC (1) 84 #define LIBCFG_GPTM_GIRQ (1) 85 #define LIBCFG_PDMA (1) 86 #define LIBCFG_PGA (1) 87 #define LIBCFG_PGA1 (1) 88 #define LIBCFG_PGA2 (1) 89 #define LIBCFG_PGA3 (1) 90 #define LIBCFG_PID (1) 91 #define LIBCFG_PWRCU_VDD_5V (1) 92 #define LIBCFG_PWRCU_NO_PORF (1) 93 #define LIBCFG_PWRCU_NO_PD_MODE (1) 94 #define LIBCFG_PWRCU_NO_PDF (1) 95 #define LIBCFG_PWRCU_NO_DS2_MODE (1) 96 #define LIBCFG_PWRCU_NO_VDDPORF (1) 97 #define LIBCFG_NO_PWRCU_TEST_REG (1) 98 #define LIBCFG_SCTM0 (1) 99 #define LIBCFG_SCTM1 (1) 100 #define LIBCFG_SCTM2 (1) 101 #define LIBCFG_SCTM3 (1) 102 #define LIBCFG_TM_65X_66X_V1 (1) 103 #define LIBCFG_TM_BK_FROM_CMP (1) 104 #define LIBCFG_TM_RECCDI (1) 105 #define LIBCFG_TM_TIFN_5BIT (1) 106 #define LIBCFG_USART_LIN (1) 107 #define LIBCFG_USART_SINGLE_WIRE (1) 108 109 #endif 110