1 /*********************************************************************************************************//**
2  * @file    ht32f5826_libcfg.h
3  * @version $Rev:: 7184         $
4  * @date    $Date:: 2023-08-31 #$
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 __HT32F5826_LIBCFG_H
29 #define __HT32F5826_LIBCFG_H
30 
31 /* Settings ------------------------------------------------------------------------------------------------*/
32 
33 #if !defined(USE_MEM_HT32F5826)
34 #define USE_MEM_HT32F5826
35 #endif
36 
37 #define LIBCFG_MAX_SPEED                  (48000000)
38 
39 #define LIBCFG_FLASH_PAGESIZE             (512)
40 
41 #ifdef USE_MEM_HT32F5826
42   #define LIBCFG_FLASH_SIZE               (LIBCFG_FLASH_PAGESIZE * 255)
43   #define LIBCFG_RAM_SIZE                 (1024 * 16)
44   #define LIBCFG_CHIPNAME                 (0x5826)
45 #endif
46 
47 #define LIBCFG_PDMA                       (1)
48 #define LIBCFG_PDMA_CH3FIX                (1)
49 #define LIBCFG_ADC_CH8_11                 (1)
50 #define LIBCFG_CMP                        (1)
51 
52 #define LIBCFG_BFTM1                      (1)
53 #define LIBCFG_SCTM0                      (1)
54 #define LIBCFG_SCTM1                      (1)
55 #define LIBCFG_GPTM1                      (1)
56 #define LIBCFG_MCTM0                      (1)
57 
58 #define LIBCFG_LSE                        (1)
59 #define LIBCFG_SCI0                       (1)
60 #define LIBCFG_SCI1                       (1)
61 #define LIBCFG_USBD                       (1)
62 #define LIBCFG_EBI                        (1)
63 #define LIBCFG_I2S                        (1)
64 #define LIBCFG_CRC                        (1)
65 
66 #define LIBCFG_USART1                     (1)
67 #define LIBCFG_UART1                      (1)
68 #define LIBCFG_SPI1                       (1)
69 #define LIBCFG_I2C1                       (1)
70 
71 #define LIBCFG_GPIOC                      (1)
72 #define LIBCFG_GPIOD                      (1)
73 
74 #define LIBCFG_BAKREG                     (1)
75 
76 #define LIBCFG_FMC_BRANCHCACHE            (1)
77 #define LIBCFG_FMC_PREFETCH               (1)
78 #define LIBCFG_FLASH_2PAGE_PER_WPBIT      (1)
79 #define LIBCFG_GPIO_DISABLE_DEBUG_PORT    (1)
80 #define LIBCFG_RTC_LSI_LOAD_TRIM          (1)
81 #define LIBCFG_CKCU_AUTO_TRIM_LEGACY      (1)
82 #define LIBCFG_PWRCU_VDD_2V0_3V6          (1)
83 #define LIBCFG_PWRCU_V15_READY_SOURCE     (1)
84 
85 #endif
86