1 /*********************************************************************************************************//** 2 * @file ht32f50020_30_libcfg.h 3 * @version $Rev:: 7661 $ 4 * @date $Date:: 2024-03-21 #$ 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 __ht32f50020_30_LIBCFG_H 29 #define __ht32f50020_30_LIBCFG_H 30 31 /* Settings ------------------------------------------------------------------------------------------------*/ 32 33 #if !defined(USE_MEM_HT32F50020) && !defined(USE_MEM_HT32F50030) 34 #define USE_MEM_HT32F50030 35 #endif 36 37 #define LIBCFG_MAX_SPEED (16000000) 38 39 #define LIBCFG_FLASH_PAGESIZE (1024) 40 41 #ifdef USE_MEM_HT32F50020 42 #define LIBCFG_FLASH_SIZE (LIBCFG_FLASH_PAGESIZE * 16) 43 #define LIBCFG_RAM_SIZE (1024 * 2) 44 #define LIBCFG_CHIPNAME (0x50020) 45 #endif 46 47 #ifdef USE_MEM_HT32F50030 48 #define LIBCFG_FLASH_SIZE (LIBCFG_FLASH_PAGESIZE * 31) 49 #define LIBCFG_RAM_SIZE (1024 * 2) 50 #define LIBCFG_CHIPNAME (0x50030) 51 #endif 52 53 #define LIBCFG_GPIOC (1) 54 #define LIBCFG_GPIOF (1) 55 #define LIBCFG_GPIO_SINK_CURRENT_ENHANCED (1) 56 #define LIBCFG_LEDC (1) 57 #define LIBCFG_LSE (1) 58 #define LIBCFG_SCTM0 (1) 59 #define LIBCFG_SCTM1 (1) 60 #define LIBCFG_SCTM2 (1) 61 #define LIBCFG_UART1 (1) 62 #define LIBCFG_NO_GPTM0 (1) 63 #define LIBCFG_NO_USART0 (1) 64 65 #define LIBCFG_ADC_CH8_11 (1) 66 #define LIBCFG_ADC_IVREF (1) 67 #define LIBCFG_ADC_IVREF_LEVEL_TYPE2 (1) 68 #define LIBCFG_ADC_MVDDA (1) 69 #define LIBCFG_ADC_VREFBUF (1) 70 #define LIBCFG_ADC_NO_DISCON_MODE (1) 71 #define LIBCFG_ADC_NO_SEQ_4_7 (1) 72 #define LIBCFG_ADC_NO_WDT (1) 73 #define LIBCFG_ADC_SW_TRIGGER_ONLY (1) 74 #define LIBCFG_AFIO_LEDC_MODE3 (1) 75 #define LIBCFG_AFIO_MODE_0_7 (1) 76 #define LIBCFG_AFIO_SCTM_MODE4 (1) 77 #define LIBCFG_AFIO_SYSTEM_MODE1 (1) 78 #define LIBCFG_BFTM_16BIT_COUNTER (1) 79 #define LIBCFG_CKCU_NO_APB_PRESCALER (1) 80 #define LIBCFG_CKCU_NO_AUTO_TRIM (1) 81 #define LIBCFG_CKCU_NO_LPCR (1) 82 #define LIBCFG_EXTI_8BIT_DEBOUNCE_COUNTER (1) 83 #define LIBCFG_EXTI_8CH (1) 84 #define LIBCFG_EXTI_DEBCNTPRE (1) 85 #define LIBCFG_GPIO_PR_STRONG_UP (1) 86 #define LIBCFG_I2C_PRESCALER_2BIT (1) 87 #define LIBCFG_I2C_TOUT_COUNT_8BIT (1) 88 #define LIBCFG_I2C_TWO_DEV_ADDR (1) 89 #define LIBCFG_I2C_NO_10BIT_MODE (1) 90 #define LIBCFG_I2C_NO_ADDR_MASK (1) 91 #define LIBCFG_I2C_NO_ARBLOS (1) 92 #define LIBCFG_LEDC_NO_COM_8_11 (1) 93 #define LIBCFG_NO_PLL (1) 94 #define LIBCFG_NO_PWRCU_TEST_REG (1) 95 #define LIBCFG_PWRCU_PORF (1) 96 #define LIBCFG_PWRCU_VDD_5V (1) 97 #define LIBCFG_PWRCU_WAKEUP_V01 (1) 98 #define LIBCFG_PWRCU_WAKEUP1 (1) 99 #define LIBCFG_PWRCU_NO_VDDPORF (1) 100 #define LIBCFG_PWRCU_NO_PD_MODE (1) 101 #define LIBCFG_PWRCU_NO_PDF (1) 102 #define LIBCFG_SPI_CLK_PRE_V01 (1) 103 #define LIBCFG_SPI_DATA_LENGTH_V01 (1) 104 #define LIBCFG_SPI_FIFO_DEPTH_V01 (1) 105 #define LIBCFG_SPI_NO_DUAL (1) 106 #define LIBCFG_SPI_NO_MULTI_MASTER (1) 107 #define LIBCFG_SPI_TIMEOUT_LENGTH_V01 (1) 108 #define LIBCFG_TM_CKDIV_8 (1) 109 #define LIBCFG_TM_PRESCALER_8BIT (1) 110 #define LIBCFG_TM_SCTM_2CHANNEL (1) 111 112 #endif 113