Nationstech.N32L43x_Library.0.8.0版本：
初版修订

Nationstech.N32L43x_Library.1.0.0版本：
1、n32l43x.h V1.0.1,
   1)COMP结构体移动RES寄存器位置修改
2、SPI例程增加接线示意
3、system_n32l43x.c v1.0.1
   1)修改RCC->CFG3写复位值
4、USB 新增 JoyStickMouse 例程
5、NVIC IRQ_Mask main.c v1.0.1，更新Demo工程
6、USB 新增打印机例程
7、ADC驱动C文件增加对校准功能的函数重入性控制
8、更正lpuart.h中LPUART_INT_WUF定义以及lpuart WakeUpFromStop2示例中PWR_EnterSTOP2Mode函数参数RetentionMode 
9、n32l43x.h v1.0.3、n32l43x_rcc.h v1.0.2、n32l43x_rcc.c v1.0.2
   1)修改RCC_CFG3 RCC_CFG3_TRNG1MPRES分频值描述
10、更新RCC_CFG寄存器的MCOPRES[3:0]的定义；
11、修改LCD驱动，初始化函数中屏蔽1/8duty+1/4bias配置，优化DEMO
12、n32l43x.h v1.0.4 更新RCC_MCO_PLLCLK定义；
    n32l43x_rcc.h v1.0.3 更新RCC_MCO_PLLCLK定义；
    n32l43x_rcc.c v1.0.3 更新RCC_MCO_PLLCLK定义
13、1)LPUART和USART模块 HardwareFlowCtrl将Receive_RTS和Transmit_CTS合并成HardwareFlowCtrl，并更新readme
    2)USART模块 IrDA将Receive和Transmit合并成Transmit_Receive，并更新readme
14、USART模块 IrDA功能增加低功耗模式测例LP_Transmit_Receive
15、I2C代码优化
16、STOP2系统时钟4分频异常问题优化
17、时钟初始化更新，支持1C以后版本
18、USB例程GPIO端口配置前先初始化
19、修改LPTIM_Disable为清使能位。



Nationstech.N32L43x_Library.1.2.0版本：
1、修改驱动ADC、TIM关于清状态位操作
2、修改CAN驱动文件中CAN_CancelTransmitMessage函数
   将CANx->TSTS或与操作改成等于操作
3、添加RT-Thread的设备驱动，添加RT-Thread在Keil和IAR中的Demo
4、删除 RTC_ConfigOutput 中未使用的变量
5、配置 SystemInit()/RCC_DeInit(void) 函数 RCC->CFG2 为默认值 
6、将User_RTC_Config.c中的%0.2 改成%2 消除GCC警告
7、删除flash中未使用的变量
8、修改RCC_DeInit(void) 函数 RCC->CLKINT 清中断赋值错误问题
9、修改USB Keyboard例程，删除打印
10、针对GCC编译进行优化，修改了I2C例程中的中断函数需要打印输出的变量类型将u32int_t改为unsigned int
11、RCC模块增加LSE晶体配置接口函数LSE_XtalConfig
12、USB Demo 在Suspend里面增加通过宏控制UCDR复位
13、删除RT-Thread中drv_gpio.c中N32L43X_pin_irq_enable()函数里的IO配置，修改RT-Thread的USB Demo的设备名称为N32L43X
14、修改n32l43x_wdog_control函数，不使用宏，定义两个变量存储RELV和PREDIV寄存器的值，删除RT-Thread的Demo的IAR工程里的dep文件
15、EEPROM例程修改EEPROM读函数，以及I2C_slave_int中初始化I2C_slave的函数内部变量名称
16、LPUART模块：驱动文件LPUART_GetIntStatus函数修改LPUART的WUF标志位获取问题
17、修改USB驱动usb_regs.h文件里的_BlocksOf32宏，wNBlocks << 11改为wNBlocks << 10
18、修改枚举变量GPIO_CurrentType 枚举值
19、修改I2C EEPROM例程i2c_eeprom.c文件，将中断模式以及DMA模式调通
20、修改TimeBasic6 例程main.c RCC_ConfigPclk1(RCC_HCLK_DIV4)使PCLK1 = HCLK/4
21、修改LPTIM DEMO中的产生测试信号的函数
22、修改SPI FLASH中的W25Q128擦除命令宏定义
23、新增GCC下载配置文件和启动文件
24、修改RCC_ConfigLse函数
25、修改n32l43x_comp.c、n32l43x_opamp.c文件中的SetBitMsk宏定义
26、基于RCC_ConfigLse函数的改动，优化LCD_ClockConfig函数以及LPUART模块各例程中的相关函数
27、ADC各例程中在ADC初始化前添加ADC_DeInit函数
28、优化CAN模块的CAN_Tx_Rx例程的CAN_Recieve_Process函数和SetSysClockToPLL函数
29、优化accesspermission函数，删除未使用的变量
30、Flash_DMA_Program例程中添加GCC条件编译的宏判断
31、修改I2C_10bit例程、I2C_Master_Int例程中last_event变量的数据类型，更正I2C_Slave_Int例程中的参数命名
32、LPCNT模块例程中删除glass_lcd.c文件
33、优化STOP2例程中的SetSysClockToPLL函数
34、优化RCC模块例程中的部分打印代码
35、各demo的readme文件中添加英文描述
36、修改WWDG例程中Readme相关描述、代码中函数WWDG_SetWValue和Delay的参数
37、USB demo ERROR和ESOF中断关闭
38、修改USB demo中latency的赋值方式及大小
39、修改CAN波特率/扩展帧标志符/CAN GPIO/工作模式为正常模式
40、将函数void RTC_WKUP_IRQHandler(void) 中的 EXTI_ClrITPendBit(EXTI_LINE20);提到周期性唤醒标志判断外
41、TIMx_DCTRL后面的寄存器无法应用DMA Burst功能，修改相应代码
42、将 SYSCLKConfig_STOP(uint32_t RCC_PLLMULL) 中的FLASH->AC 更换成变量操作
43、增加I2C MASTER INT demo中的错误中断服务函数，以及修复IIC_RCCReset函数中的引脚状态复位错误。

Nationstech.N32L43x_Library.1.2.1版本：
1、增加ADC_DifferentialMode 例程
2、退出LPRUN恢复SRAM电压至1.1V
3、修改RtcAutoWakeUp例程，进入Stop2模式前后增加时钟切换操作
4、修改RTC_CLKSourceConfig函数,去掉复位备份寄存器操作
5、修改获取UID/UCID函数
6、修改RTC例程增加重复分频机制
7、串口例程增加清除溢出中断机制
8、将RCC_ConfigLse函数分步赋值修改成变量一次性赋值
9、RTC例程增加避免重复配置机制
10、增加 ADC_ReferenceVoltageSwitch 例程
11、去掉Flash驱动中的PD选项位
12、ADC启动增加延时滤波


Nationstech.N32L43x_Library.1.2.2版本：
1、修改LSE增益默认值为0x1FF
2、删除TSC模块
3、增加LIN主从机例程
4、增加Smartcard例程
5、修改RTC驱动亚秒在小于2秒时不能进入初始化
6、修改USB进入初始化后配置USB中断
7、修改USB DEMO复位处理流程
8、增加LCD STOP2模式显示例程
9、增加软件计算CRC32，并对比软硬件计算结果
10、TIM的demo中增加结构体初始化。
11、修改RTC例程将时间/日期打印格式调整为%02u
12、修改CAN_RX_Tx例程Readme.txt文件中数据帧为扩展帧
13、修改system_n32l43x.c文件，限定选择PLL为时钟源时，系统时钟最小为32MHz
14、修改RT_Thread drv_can文件，增加CAN_SCE_IRQHandler and CAN_RX1_IRQHandler中断处理函数
15、修改n32l43x_adc.c文件中的Reference_Voltage_Switch()函数，使应用中切换到内部VRENUFF后PA0不会输出Vrefbuffer

Nations.N32L43x_Library.2.0.0版本：
1、修改n32l43x_pwr.c文件中的PWR_ExitLowPowerRunMode（）函数：_SetLprunSwitch(2)→_SetLprunSwitch(3)
2、增加函数TIM_ConfigUpdateEvt
3、增加所有RT_Thread例程的GCC环境
4、修改RTC_EnterInitMode函数
5、修改ADC驱N32L43x_adc.c与.h文件，拓展ADC_GetIntStatus()，ADC_ConfigInt()函数的传参
6、修改ADC demo中ADC DMA使能的位置以及关于ENDC/JENDC使用
7、CompOut demo中新增比较器中断的功能
8、n32l43x_rtc.c文件中的RTC_EnterInitMode函数添加超时退出处理
9、优化n32L43x_pwr.c/.h文件
10、优化PWR模块的LP_RUN和LP_SLEEP demo
11、修改USB串口DEMO，支持64字节数据发送
12、修改RTC自动唤醒DEMO中断处理
13、USB新增HID_Customer DEMO，修改HID_Keyboard和Printer DEMO
14、驱动n32g43x_lpuart.c的LPUART_FlushRxFifo函数增加while等待描述
15、删除ICache的coremark demo
16、CAN模块CAN_Tx_Rx/LoopBack_CAN两个demo，Systick_MS_Config函数去掉封装，改为直接调用的形式
17、USART模块在DMA_Interrupt/Interrupt/LP_Transmit_Receive/Transmit_Receive/LIN_slave DEMO中，中断函数中添加对ORERR/PEF/NEF/FEF标志的判断和清除操作
18、LPUART模块DMA_Interrupt等全部demo，RCC_Configuration函数增加超时退出机制
19、LPUART模块WakeUpFromStop2 demo，SetSysClock_HSE函数增加超时退出机制
20、修改RCC、I2C例程报错处理方式
21、修改system_n32l43x.c：初始化开icache，关预取
22、优化PWR模块的AlarmWakeUp和STOP2 demo
23、驱动n32l43x_adc.c中，ADC_GetIntStatus()与ADC_GetFlagStatus()增加延时处理
24、驱动n32l43x_lcd.c中，LCD_Init()删除1/8 duty，1/4 bias特殊处理代码
25、驱动n32l43x_lcd.c中，LCD_UpdateDisplayRequest()新增UDD位清除的代码
26、各模块初始化前，添加调用结构体初始化函数
27、UART的GPIO配置添加上拉

Nations.N32L43x_Library.2.1.0版本：
1、修改USB DEMO，描述符根据实际大小设置数组大小，字符串数组根据实际大小判断
2、修改GPIO 驱动能力枚举值
3、优化USART_Init函数
4、优化PWR_EnterSTOP2Mode、PWR_EnterLowPowerRunMode、PWR_ExitLowPowerRunMode函数
5、删除LCD_Stop2_Disp中的冗余代码
6、优化I2C EEPROM例程：读eeprom时添加中断及DMA模式，优化while1等待
7、优化RTC驱动RTC_GetTime函数

Nations.N32L43x_Library.2.2.0版本：
1、FLASH页擦函数增加地址判断
2、USART的demo中新增OREF查询的处理、RX IO改成上拉
3、FLASH写保护demo添加LOCK函数
4、RTC驱动中读TSH或SUBS寄存器后再读一次DATE触发同步
5、EXTI的Demo中改用EXTI_GetStatusFlag()获取标志
6、SPI_Flash的Demo中sFLASH_SendByte()和sFLASH_SendHalfWord()函数发送数据后先获取TE和BUSY标志再获取RNE标志
7、USB的Demo使用宏定义在系统初始化中配置系统时钟，不在Demo中配置系统时钟
8、USB的Demo在USB_LOW_PWR_MGMT_SUPPORT模式下，修改Suspend()中的实现
9、优化RCC驱动中RCC_ConfigRtcClk()函数实现
10、修正ADC_GetFlagStatusNew函数中的断言
11、优化ADC温度传感器的demo
12、优化LPTIM模块LPTIM_NENC demo
13、更新LPTIM_WakeUp demo的readme
14、按最新SDK readme规范修改所有demo的readme
15、RTC所有Demo中闹钟设置DateWeekValue从0x31改成31
16、删除RTC模块中的TSC
17、优化ADC_StartCalibration与ADC_GetCalibrationStatus函数
18、优化I2C EEPROM例程，防止低主频下数据出错
19、新增I2C主/从机双地址demo

Nationstech.N32L43x_Library.0.8.0 version:
Revision.

Nationstech.N32L43x_Library.1.0.0 version:
1. n32l43x.h V1.0.1:
    1)COMP structure moved RES register position modification
2. SPI routine adds wiring diagram
3. system_n32l43x.c v1.0.1:
    1) modified RCC->CFG3 Write reset value
4. USB added JoyStickMouse routine
5. NVIC IRQ_Mask main.c v1.0.1, update Demo project
6. USB added printer routines
7. ADC driver C file adds functional reentrant control to the calibration function
8. Correct the definition of LPUART_INT_WUF in lpuart.h and the parameter of PWR_EnterSTOP2Mode RetentionMode in the example of lpuart WakeUpFromStop2
9. n32l43x.h v1.0.3, n32l43x_rcc.h v1.0.2, n32l43x_rcc.c v1.0.2
    1) Modify the frequency division description of RCC_CFG3 RCC_CFG3_TRNG1MPRES
10. Update the definition of RCC_CFG register MCOPRES[3:0];
11. Modified LCD driver, shielded 1/8duty + 1/4bias configuration in initialization function, optimized DEMO
12. n32l43x.h v1.0.4 update RCC_MCO_PLLCLK definition;
    n32l43x_rcc.h v1.0.3 update RCC_MCO_PLLCLK definition;
    n32l43x_rcc.c v1.0.3 Update RCC_MCO_PLLCLK definition
13. 1)LPUART and USART module HardwareFlowCtrl merge Receive_RTS and Transmit_CTS into HardwareFlowCtrl and update readme
    2)USART module IrDA merges Receive and Transmit into Transmit_Receive and updates readme
14. Added low power consumption test case LP_Transmit_Receive for IrDA function of USART module
15. I2C code optimization
16. STOP2 system clock 4 frequency division problem optimization
17. Clock initialization update, support 1C later version
18. USB routine GPIO port is initialized before configuration
19. Change LPTIM_Disable to enable LPTIM_Disable.




Nationstech.N32L43x_Library.1.2.0 version:
1. Modify the clear state bit operation of driver ADC and TIM
2. Modify CAN_CancelTransmitMessage function in CAN driver file;
    Change the CANx->TSTS or and operation to the equal operation.
3. Add device drivers for RT-Thread and Demo rt-thread in Keil and IAR
4. Delete unused variables from RTC_ConfigOutput
5. Configure SystemInit()/RCC_DeInit(void) RCC->CFG2 is the default value
6. Change %0.2 in user_rtc_config.c to %2 to remove GCC warning
7. Delete unused variables from the Flash
8. Modify RCC->CLKINT in RCC_DeInit(void) function clear interrupt assignment error
9. Modify the USB Keyboard routine to delete printing
10. Optimized for GCC compilation, modified the variable type that the interrupt function in I2C routine needs to print, changed u32int_t to unsigned int
11. Added interface function LSE_XtalConfig for LSE crystal configuration in RCC module
12. Add macro control to UCDR reset in USB Demo
13. Delete the I/O configuration of the N32L43X_pin_irq_enable() function in drv_gpio.c of rt-thread and change the USB Demo device name of rt-thread to N32L43X
14. Modify the n32l43x_wdog_control function, Don't use macros, Define two variables to store the values of RELV and PREDIV registers, Delete the deP file in the IAR project of rt-thread Demo.
15. EEPROM routine modify EEPROM read function, and I2C_slave_int initialization I2C_slave function internal variable name
16. LPUART module: The driver file LPUART_GetIntStatus function modified the WUF flag bit of LPUART
17. Modify the _BlocksOf32 macro in the USB driver usb_regs.h file, wNBlocks << 11 change to wNBlocks <<10
18. Change the enumeration variable GPIO_CurrentType enumeration value
19. Modify I2C EEPROM routine I2C_EEPROM. C file to switch on the interrupt mode and DMA mode
20. Change TimeBasic6 routine main.c RCC_ConfigPclk1(RCC_HCLK_DIV4) to PCLK1 = HCLK/4
21. Modify LPTIM DEMO to generate test signal function
22. Modify the macro definition of W25Q128 erase command in SPI FLASH
23. Added GCC download configuration file and startup file
24. Modify the RCC_ConfigLse function
25. Modify the SetBitMsk macro definition in n32l43x_comp.c and n32l43x_opamp.c files
26. Optimized the LCD_ClockConfig function and related functions in each routine of LPUART module based on the change of RCC_ConfigLse function
27. Add ADC_DeInit function before ADC initialization in each routine
28. Optimize CAN_Recieve_Process function and SetSysClockToPLL function of CAN_Tx_Rx routine of CAN module
29. Optimize accesspermission function, remove unused variables
30. Flash_DMA_Program routine to add GCC conditional compilation macro judgment
31. Modify I2C_10bit routine, I2C_Master_Int routine last_event variable data type, correct I2C_Slave_Int routine parameter name
32. Delete the glass_lcd.c file from the LPCNT module routine
33. Optimize SetSysClockToPLL function in STOP2 routine
34. Optimize part of the printing code in the routine of RCC module
35. Add English descriptions to the readme files of each Demo
36. Modify the WWDG routine Readme description, WWDG_SetWValue and Delay parameters in the code
37. USB demo ERROR and ESOF interrupt close
38. Modify the latency assignment method and size in USB demo
39. Modify RT_Thread CAN baud rate/extended frame identifier/CAN GPIO/working mode to normal mode
40. Put EXTI_ClrITPendBit(EXTI_LINE20) in front of the check wakeup flag in void RTC_WKUP_IRQHandler(void)
41. TIMx_DCTRL's subsequent registers cannot apply the DMABurst function, and modify the corresponding code
42. Replace FLASH->AC in SYSCLKConfig_STOP(uint32_t RCC_PLLMULL) function with variable  operation
43. Added error interrupt service function in I2C MASTER INT demo, and fixed pin state reset error in IIC_RCCReset function.



Nationstech.N32L43x_Library.1.2.1 version:
1.Add the demo of ADC_DifferentialMode
2.Exit LPRUN mode and restore SRAM voltage to 1.1V
3.Modify RtcAutoWakeUp Demo,Increase clock switching operation before and after entering Stop2 mode
4.Modify RTC_CLKSourceConfig function to remove the reset bkp register operation
5.Modify the function of obtaining UID/UCID
6.Modify RTC Demo add repetitive frequency division mechanism 
7.USART Demo adds the machanism of clearing overflow interrupt
8.Modify step by step assignment of RCC_ConfigLse function to one-time assignment of variables
9.RTC Demo add mechanism to avoid duplicate configuration
10.Add the demo of ADC_ReferenceVoltageSwitch
11.Remove the PD option bit in the flash drive
12.ADC startup add delay filtering

Nationstech.N32L43x_Library.1.2.2 version:
1.Modify the LSE gain default value to 0x1FF
2.Delete TSC module
3.Add the demo of LIN 
4.Add the demo of Samrtcard
5.Modify RTC Driver SUBS is not less than 2 befor entering the initializations mode
6.Modify configure USB interrupt when USB entey initialization
7.Modify USB DEMO reset processing flow
8.Add the demo of LCD display in STOP2
9.Add software to calculate CRC32, and compare the calculation results of software and hardware
10.Add TIM's structure initialization
11.Modify the RTC demo to adjust the time/date printf format to %02u
12.Modify the data frame to extend frame in readme.txt of CAN_Tx_Rx demo 
13.Modify system_n32l43x.c.file ,when PLL is selected as system clock source, the minimum system clock is 32MHz
14.Modify RT_Thread drv_can file，add CAN_SCE_IRQHandler and CAN_RX1_IRQHandler interrupt handlers
15.Modify Reference_Voltage_Switch() in n32l43x_adc.c, so that the application switchs to the internal VRENUFF after PA0 will not output Vrefbuffer

Nations.N32L43x_Library.2.0.0 version:
1.Modify PWR_ExitLowPowerRunMode() in n32l43x_pwr.c：_SetLprunSwitch(2)→_SetLprunSwitch(3)
2.Added TIM_ConfigUpdateEvt.
3.Add the GCC environment for all demo of RT_Thread.
4.Modify RTC_EnterInitMode function
5.Modify the driver file n32l43x_adc.c/.h for ADC , and expand the parameters of "ADC_GetIntStatus()，ADC_ConfigInt()" function;
6.Modify the code position of the ADC DMA enabling  in ADC demo ,and modify the usage of ENDC/JENDC flag.
7.Add  interruption functions for the comparator on CompOut demo.
8.RTC_EnterInitMode function in n32l43x_rtc.c file to add timeout exit handling.
9.Optimize n32L40x_pwr.c/.h files.
10.Optimize LP_RUN and LP_SLEEP demo for PWR module.
11.Modify Virtual_COM_Port DEMO，support send 64 bytes data.
12.Modify RTC Auto wakeup DEMO interrupt handling.
13.USB add HID_Customer DEMO，modify HID_Keyboard和Printer DEMO
14. add while wait description to LPUART_FlushRxFifo function of driver n32g43x_lpuart.c
15. Delete the coremark demo of ICache.
16. CAN module CAN_Tx_Rx/LoopBack_CAN two demos, Systick_MS_Config function remove encapsulation, change to direct call form.
17. USART module in the DMA_Interrupt/Interrupt/LP_Transmit_Receive/Transmit_Receive/LIN_slave DEMO, interrupt function to add the ORERR/PEF/NEF/FEF flag judgment and clear the operation. 
18. LPUART module DMA_Interrupt and other all demos, RCC_Configuration function to add a timeout exit mechanism
19. LPUART module WakeUpFromStop2 demo, SetSysClock_HSE function to increase the timeout mechanism.
20.Modify the error handling of RCC and I2C routines.
21.Modify system_n32l43x.c：Initialization with icache on, prefetch off.
22.Optimize AlarmWakeUp and STOP2 demo for PWR module.
23.ADC_GetIntStatus and ADC_GetFlagStatus functions in n32l43x_adc.c file to add delay processing
24.LCD_Init function in n32l43x_lcd.c file to delete the 1/8 duty and 1/4 bias processing code
25.LCD_UpdateDisplayRequest function in n32l43x_lcd.c file to add  clear UDD bit code
26.Add a call to the structure initialization function before each module is initialized
27. Add a pull-up to the GPIO configuration of UART.

Nations.N32L43x_Library.2.1.0 version:
1. Modify the USB demo, the descriptor sets the array size according to the actual size, and the string array is judged accroding to the actual size.
2. Modify GPIO Current enum value.
3. Optimize the USART_Init function.
4. Optimize the PWR_EnterSTOP2Mode, PWR_EnterLowPowerRunMode, and PWR_ExitLowPowerRunMode functions.
5. Remove redundant code from LCD_Stop2_Disp.
6. Optimize the I2C EEPROM routine: Add interrupts and DMA mode when reading EEPROM, and optimize the while1 wait.
7. Optimize the RTC driver RTC_GetTime function.

Nations.N32L43x_Library.2.2.0 version:
1. Added address validation to the FLASH page erase function
2. Added OREF query handling and changed RX IO to pull-up in the USART demo
3. Added LOCK function to the FLASH write protection demo
4. In the RTC driver, trigger synchronization by reading the DATE register again after reading the TSH or SUBS register
5. Modified the EXTI demo to use EXTI_GetStatusFlag() for flag retrieval
6. In the SPI_Flash demo, sFLASH_SendByte() and sFLASH_SendHalfWord() functions now check TE and BUSY flags before checking RNE flag after data transmission.
7. USB demo uses macro definitions to configure system clock during system initialization, not within the demo itself
8. Modified implementation in Suspend() for USB demo operating in USB_LOW_PWR_MGMT_SUPPORT mode
9. Optimized implementation of RCC_ConfigRtcClk() function in RCC driver
10. Fixed assertions in ADC_GetFlagStatusNew function
11. Optimized the ADC temperature sensor demo
12. Optimized the LPTIM module LPTIM_NENC demo
13. Updated the readme for the LPTIM_WakeUp demo
14. Modified all demo readmes according to the latest SDK readme specifications
15. Changed the alarm clock DateWeekValue setting from 0x31 to 31 in all RTC demos
16. Removed TSC from the RTC module
17. Optimized ADC_StartCalibration and ADC_GetCalibrationStatus functions
18. Optimized I2C EEPROM routines to prevent data errors at low host frequencies
19. Added I2C master/slave dual-address demo



