/***   对中文用户  ***/

Nations.N32G031_Library.1.2.0版本：
1. n32g031_tim.h文件中，删除TIM_IC_POLARITY_BOTHEDGE宏定义
2. flash页擦添加地址判断
3. UART demo增加OREF判断
4. 新增I2C主/从机双地址demo
5. EXTI的Demo中改用EXTI_GetStatusFlag()获取标志
6. RTC驱动中读TSH或SUBS寄存器后再读一次DATE触发同步
7. 优化RTC模块AutoWakeup Demo中断处理函数
8. SPI_Flash的Demo中sFLASH_SendByte()和sFLASH_SendHalfWord()函数发送数据后先获取TE和BUSY标志再获取RNE标志
9. 修正ADC_GetFlagStatusNew函数中的断言

Nations.N32G031_Library.1.1.0版本：
1.修改demo例程报错处理方式
2.更新USART驱动函数波特率计算方式
3.修改RTC_EnterInitMode函数
4.n32g031_adc.c文件中，ADC_GetFlagStatus和ADC_GetIntStatus新增判断ENDC或JENDC之后延迟8个ADC_CLK再去反馈状态位

Nations.N32G031_Library.1.0.5版本：
1.增加函数TIM_ConfigUpdateEvt。
2. 删除DEMO中DBG配置和描述
3. n32g031_rcc.c文件中, s_AdcHclkPresTable以及s_AdcPllClkPresTable数组值修改;
4. 修改ADC驱动n32g031_adc.c与.h文件，拓展ADC_GetIntStatus()，ADC_ConfigInt()函数的传参；
5. 修改ADC demo中ADC DMA使能的位置以及关于ENDC/JENDC使用；
6. 修改RTC_EnterInitMode函数
7. I2C_Master、I2C_Slave例程添加while退出处理

Nations.N32G031_Library.1.0.4版本：
1. n32g031.h文件中RCC_CFG2_ADC1MSEL宏定义修改
2. PACK包中pdsc文件030的字样改成031
3. n32g031_rtc.c文件中，修改RTC_EnterInitMode(void)函数；
4. n32g031_lptim.c文件中，删除LPTIM_TRIG_SOURCE_COMP2 的注释描述；
5. n32g031_lptim.h文件中，删除LPTIM_TRIG_SOURCE_COMP2 的宏定义；
6. system_n32g031.c和PWR-STOP例程中添加等待HSE稳定延时
7. n32g031_rtc.h文件中,修改RTC_GetTime 和RTC_GetSubSecond函数,在函数最后读取RTC_DATE寄存器
8. n32g031_comp.c文件，新增 COMP_ClrIntStatus 函数
9. CompOut Demo中新增比较器中断功能
10.I2C_Slave_Int 和I2C_Slave Demo中新增注意事项
11.KeyInterrupt Demo中新增GPIO模式配置
12.RtcAutoWakeUp Demo中, 修改n32g031_it.c文件中的RTC_IRQHandler函数
13.LPUART Interrupt_ok、USART Interrupt_ok例程中添加错误判断及清除，并关闭断言
14.LPUART DMA_Interrupt例程优化
15.OpaAdByTim例程中删除PB12作为TIM1的消隐源功能
16.n32g031_rcc.c文件中，修改RCC_ConfigLse()函数

Nations.N32G031_Library.1.0.3版本：
1. 修改FLASH驱动及注释
1）修改AC_LATENCY_MSK、RDP_USER_Key宏定义值
2）FLASH_SetLatency函数增加注释描述，增加latency对应的时钟范围
3）删除FLASH_Unlock、FLASH_Lock、FLASH_GetSTS、FLASH_WaitForLastOpt函数多余注释
4）修改FLASH_ConfigALLOptionByte函数参数WRP_Pages注释及data移位操作，新增FLASH_NO_WRPR_Pages宏定义
5）修改FLASH_ConfigUserOB的参数rdpuser_tmp赋值的值
6）修改FLASH_INTConfig、FLASH_GetFlagSTS函数的输入参数及新增ECC错误相关参数，并修改检查宏定义
2. TIM的DMA Burst的功能只对TIMx_DCTRL以及之前的寄存器有效。修改TIM驱动C文件中TIM_ConfigDma函数的注释，以及TIM驱动头文件TIM_DMABASE的宏定义
3. 删除void ADC_EnableTempSensorVrefint(FunctionalState Cmd)
4.修改system_n32g031.c文件中的系统时钟配置宏定义方式
5.修改RCC驱动中的RCC_ConfigPll函数，添加RCC_PLLSource寄存器配置
6.修改RCC_ClockConfig例程中的pll配置代码，PLLOUT要在48~72M范围内，并优化部分注释

Nations.N32G031_Library.1.0.2版本：
1. I2C EEPROM例程优化中断/DMA方式
2. LPUART驱动修改RTSEN\CTSEN宏定义
3. Example中的readme增加英文描述
4. OC1M的名字改成OC1MD
5. RTC日历初始化驱动由3个函数合为1个函数，并在函数内新增可开启和关闭的1秒延时功能，延时计数调用TIM6和SysTick模块，可根据宏切换
6. 基于新版日历初始化驱动函数，RTC各demo中相关配置代码均有同步更新和优化
7. RCC驱动添加LSE Trim配置函数，更新所有调用到LSE配置函数的驱动及例程
8. 修改SPI_Flash Demo里的W25Q扇区擦除指令为0x20
9. 修改Beeper驱动，删除调用系统进入/退出LP RUN模式的代码，防止Beeper进入Beeper的LPRUN而使整个系统进入系统LP RUN
10. 修改TIM的example中的注释
11. 修改比较器的参考输入比较电压的宏
12. 修改RCC_CFG_SCLKSW的宏定义
13. 增加ADC内部通道Vrefint的采样demo
14. CompOut demo中增加中断的配置
15. RCC驱动添加FIN/N*M及FIN/N限制,超范围编译报错
16. OpaAdByTim的demo修改ADC1M时钟源为HSI

Nations.N32G031_Library.1.0.1版本：
1. 修改OPAMP的VMSEL的宏定义



/***   For English users   ***/

Nations.N32G031_Library.1.2.0 version：
1.In the n32g031_tim.h file, delete the macro definition of TIM_IC_POLARITY_BOTHEDGE.
2. Flash page erase to add address judgment
3. UART demo adds OREF judgment
4. Added I2C master/slave dual-address demo
5. Modified the EXTI demo to use EXTI_GetStatusFlag() for flag retrieval
6. In the RTC driver, trigger synchronization by reading the DATE register again after reading the TSH or SUBS register
7. Optimize the Interrupt Handling Function of the RTC Module's AutoWakeup Demo
8. In the SPI_Flash demo, sFLASH_SendByte() and sFLASH_SendHalfWord() functions now check TE and BUSY flags before checking RNE flag after data transmission
9. Fixed assertions in ADC_GetFlagStatusNew function

Nations.N32G031_Library.1.1.0 version：
1.Modify the error handling of demo routines.
2.Update the baud rate calculation method of USART driver function
3.Modify RTC_EnterInitMode function
4.Add codes to judge if ENDC or JENDC is set, return the status after 8 adc_clk delay in ADC_GetFlagStatus and ADC_GetIntStatus functions in the n32g031_adc.c file.

Nations.N32G031_Library.1.0.5 version：
1.Added TIM_ConfigUpdateEvt.
2.Delect DBG configuration and discription in DEMO
3.Modify the s_AdcHclkPresTable and s_AdcPllClkPresTable array values in the n32g031_rcc.c file
4.Modify the driver file n32g031_adc.c/.h for ADC , and expand the parameters of "ADC_GetIntStatus()，ADC_ConfigInt()" function;
5.Modify the code position of the ADC DMA enabling  in ADC demo ,and modify the usage of ENDC/JENDC flag.
6.Modify RTC_EnterInitMode function
7. I2C_Master、I2C_Slave demo add while exti

Nations.N32G031_Library.1.0.4 version：
1. Modify RCC_CFG2_ADC1MSEL macro in n32g031.h
2. Modify 030 to 031 in pdsc file of PACK
3. Modify the RTC_EnterInitMode(void) function in the n32g031_rtc.c file
4. Delete the comment description about LPTIM_TRIG_SOURCE_COMP2 in n32g031_lptim.c
5. Delete  LPTIM_TRIG_SOURCE_COMP2 macro defination in n32g031_lptim.h
6. Add wait HSE stable delay in system_n32g031.c and PWR-STOP demo 
7. RTC_GetTime and RTC_GetSubSecond function read RTC_DATE register in the end in the n32g031_rtc.c file
8. Add COMP_ClrIntStatus function in n32g031_comp.c file
9. Add interrupt configuration in CompOut demo
10.Add notes in I2C_Slave_Int and I2C_Slave Demo 
11.Add GPIO mode configuration in KeyInterrupt Demo 
12.modify RTC_IRQHandler function in RtcAutoWakeUp Demo in n32g031_it.c file
13. LPUART Interrupt_ok、USART Interrupt_ok demo add error flag check and clear, and disable assert
14. LPUART DMA_Interrupt demo update
15.Delete PB12 as the blinking source function for TIM1 in the OpaAdByTim demo
16.Modify the RCC_ConfigLse() function in the n32g031_rcc.c file

Nations.N32G031_Library.1.0.3 version：
1. Modify FLASH drive and note
1) Modify AC_ LATENCY_ MSK、RDP_ USER_ Key macro definition value
2）FLASH_ SetLatency function adds a comment description and the clock range corresponding to latency
3) Remove FLASH_ Unlock、FLASH_ Lock、FLASH_ GetSTS、FLASH_ WaitForLastOpt function extra comment
4) Modify FLASH_ ConfigALLOptionByte function parameter WRP_Pages annotation and data shift operation, add FLASH_NO_WRPR_Pages Macro Definition
5) Modify FLASH_ConfigUserOB's Parameter rdpuser_tmp  Value assigned
6) Modify  Input parameters of FLASH_INTConfig and FLASHGetFlagSTS functions and new ECC error related parameters, and modify the check macro definition
2. TIMx_DCTRL's subsequent registers cannot apply the DMABurst function, and modify the corresponding code
3. Delete void ADC_EnableTempSensorVrefint(FunctionalState Cmd)
4.Modify the way the system clock configuration macros are defined in the system_n32g031.c file
5.Modify the RCC_ConfigPll function in the RCC driver and add RCC_PLLSource register configuration
6.Modify the pll configuration code in the RCC_ClockConfig demo, PLLOUT should be in the range of 48~72M, and optimize some comments

Nations.N32G031_Library.1.0.2 version：
1. I2C EEPROM example optimizes interrupt/DMA mode
2. Lpuart driver modifies RTSEN\CTSEN macro definition
3. Add English description to readme in example
4. Modify the name of OC1M to OC1MD
5. The RTC calendar initialization driver is composed of 3 functions into one function, and a 1-second delay function that can be turned on and off is added in the function. The delay count calls the TIM6 and SysTick modules, which can be switched according to the macro.
6. Based on the new version of the calendar initialization driver function, the relevant configuration codes in each RTC demo are updated and optimized synchronously
7. RCC drive adds LSE Trim configuration function, update all drives and demo that call LSE configuration functions.
8. Modify the W25Q sector erase command in SPI_Flash Demo to 0x20
9. Modify the Beeper driver, delete the code that calls the system to enter/exit the LP RUN mode, and prevent the Beeper from entering the Beeper's LPRUN and making the entire system enter the system LP RUN
10. Modify the remark in example of TIM
11. Modify macro of reference input compare voltage in COMP
12. Modify macro of RCC_CFG_SCLKSW
13. Added ADC internal channel Vrefint sample demo
14. Added interrupt configuration in CompOut demo
15. RCC driver add FIN/N*M and FIN/N limit, an error was reported for over-range compilation
16. Modify the clock source of ADC1M is from HSI

Nations.N32G031_Library.1.0.1 version：
1. Modify VMSEL macro of OPAMP