Skip to content

Commit

Permalink
[HUST CSE] Fix many abnormal symbols in annotations and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
7YZ7 authored Apr 18, 2023
1 parent 3f44132 commit 501b22a
Show file tree
Hide file tree
Showing 211 changed files with 1,411 additions and 1,412 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ typedef struct
//#define ANA_REGA_PSLSEL ANA_REGA_PSLSEL_Msk /*!< power switch level selection */
//#define ANA_REGA_PD_PORH_Pos (5U)
//#define ANA_REGA_PD_PORH_Msk (0x1U << ANA_REGA_PD_PORH_Pos) /*!< 0x00000020 */
//#define ANA_REGA_PD_PORH ANA_REGA_PD_PORH_Msk /*!< PD POR_H module, output ��1�� when PD */
//#define ANA_REGA_PD_PORH ANA_REGA_PD_PORH_Msk /*!< PD POR_H module, output '1' when PD */
//#define ANA_REGA_PD_RCL_Pos (6U)
//#define ANA_REGA_PD_RCL_Msk (0x1U << ANA_REGA_PD_RCL_Pos) /*!< 0x00000040 */
//#define ANA_REGA_PD_RCL ANA_REGA_PD_RCL_Msk /*!< PD 32K RC module */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -858,11 +858,11 @@ FLASH_Status FLASH_OB_Erase(void)
/* Get the actual read protection Option Byte value */
if(FLASH_OB_GetRDP() != RESET)
{
rdptmp = 0x0000 | 0xff00; //��������1
rdptmp = 0x0000 | 0xff00; //读保护级别1
}
else
{
rdptmp = OB_RDP_Level_0 | 0x5500; //��������0
rdptmp = OB_RDP_Level_0 | 0x5500; //读保护级别0
}

/*Get iwdg value */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ void RTC_TimeStampCmd(uint32_t RTC_TimeStampEdge, FunctionalState NewState)
{
uint32_t tmpreg = 0;

/*��Edge�ĸ��û�д�λ�Ķ���*/
/* 设置Edge的边缘触发,没有特定位的情况 */
/* Check the parameters */
assert_param(IS_RTC_TIMESTAMP_EDGE(RTC_TimeStampEdge));
assert_param(IS_FUNCTIONAL_STATE(NewState));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ ErrStatus rtc_deinit(void)
error_status = rtc_init_mode_enter();

if(ERROR != error_status) {
/* reset RTC_CTL register, but RTC_CTL[2��0] */
/* reset RTC_CTL register, but RTC_CTL[2:0] */
RTC_CTL &= (RTC_REGISTER_RESET | RTC_CTL_WTCS);
/* before reset RTC_TIME and RTC_DATE, BPSHAD bit in RTC_CTL should be reset as the condition.
in order to read calendar from shadow register, not the real registers being reset */
RTC_TIME = RTC_REGISTER_RESET;
RTC_DATE = RTC_DATE_RESET;

RTC_PSC = RTC_PSC_RESET;
/* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2��0] */
/* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2:0] */
/* wait until the WTWF flag to be set */
do {
flag_status = RTC_STAT & RTC_STAT_WTWF;
Expand Down Expand Up @@ -1095,7 +1095,7 @@ ErrStatus rtc_wakeup_clock_set(uint8_t wakeup_clock)
/* disable the write protection */
RTC_WPK = RTC_UNLOCK_KEY1;
RTC_WPK = RTC_UNLOCK_KEY2;
/* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2��0] */
/* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2:0] */
/* wait until the WTWF flag to be set */
do {
flag_status = RTC_STAT & RTC_STAT_WTWF;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ ErrStatus rtc_deinit(void)
error_status = rtc_init_mode_enter();

if(ERROR != error_status){
/* reset RTC_CTL register, but RTC_CTL[2��0] */
/* reset RTC_CTL register, but RTC_CTL[2:0] */
RTC_CTL &= (RTC_REGISTER_RESET | RTC_CTL_WTCS);
/* before reset RTC_TIME and RTC_DATE, BPSHAD bit in RTC_CTL should be reset as the condition.
in order to read calendar from shadow register, not the real registers being reset */
RTC_TIME = RTC_REGISTER_RESET;
RTC_DATE = RTC_DATE_RESET;

RTC_PSC = RTC_PSC_RESET;
/* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2��0] */
/* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2:0] */
/* wait until the WTWF flag to be set */
do{
flag_status = RTC_STAT & RTC_STAT_WTWF;
Expand Down Expand Up @@ -1096,7 +1096,7 @@ ErrStatus rtc_wakeup_clock_set(uint8_t wakeup_clock)
/* disable the write protection */
RTC_WPK = RTC_UNLOCK_KEY1;
RTC_WPK = RTC_UNLOCK_KEY2;
/* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2��0] */
/* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2:0] */
/* wait until the WTWF flag to be set */
do{
flag_status = RTC_STAT & RTC_STAT_WTWF;
Expand Down
48 changes: 24 additions & 24 deletions bsp/hpmicro/libraries/hpm_sdk/soc/HPM6360/HPM6360_svd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25077,7 +25077,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x8: 256 transfers
0x9:512 transfers
0xa: 1024 transfers
0xb �?0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
0xb -0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>24</bitOffset>
<bitWidth>4</bitWidth>
<access>read-write</access>
Expand All @@ -25091,7 +25091,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>21</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand All @@ -25107,7 +25107,7 @@ See field SrcBurstSize above for the definition of burst transfer byte number an
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>18</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand Down Expand Up @@ -25388,7 +25388,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x8: 256 transfers
0x9:512 transfers
0xa: 1024 transfers
0xb �?0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
0xb -0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>24</bitOffset>
<bitWidth>4</bitWidth>
<access>read-write</access>
Expand All @@ -25402,7 +25402,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>21</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand All @@ -25418,7 +25418,7 @@ See field SrcBurstSize above for the definition of burst transfer byte number an
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>18</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand Down Expand Up @@ -25699,7 +25699,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x8: 256 transfers
0x9:512 transfers
0xa: 1024 transfers
0xb �?0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
0xb -0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>24</bitOffset>
<bitWidth>4</bitWidth>
<access>read-write</access>
Expand All @@ -25713,7 +25713,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>21</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand All @@ -25729,7 +25729,7 @@ See field SrcBurstSize above for the definition of burst transfer byte number an
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>18</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand Down Expand Up @@ -26010,7 +26010,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x8: 256 transfers
0x9:512 transfers
0xa: 1024 transfers
0xb �?0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
0xb -0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>24</bitOffset>
<bitWidth>4</bitWidth>
<access>read-write</access>
Expand All @@ -26024,7 +26024,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>21</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand All @@ -26040,7 +26040,7 @@ See field SrcBurstSize above for the definition of burst transfer byte number an
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>18</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand Down Expand Up @@ -26321,7 +26321,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x8: 256 transfers
0x9:512 transfers
0xa: 1024 transfers
0xb �?0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
0xb -0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>24</bitOffset>
<bitWidth>4</bitWidth>
<access>read-write</access>
Expand All @@ -26335,7 +26335,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>21</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand All @@ -26351,7 +26351,7 @@ See field SrcBurstSize above for the definition of burst transfer byte number an
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>18</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand Down Expand Up @@ -26632,7 +26632,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x8: 256 transfers
0x9:512 transfers
0xa: 1024 transfers
0xb �?0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
0xb -0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>24</bitOffset>
<bitWidth>4</bitWidth>
<access>read-write</access>
Expand All @@ -26646,7 +26646,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>21</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand All @@ -26662,7 +26662,7 @@ See field SrcBurstSize above for the definition of burst transfer byte number an
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>18</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand Down Expand Up @@ -26943,7 +26943,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x8: 256 transfers
0x9:512 transfers
0xa: 1024 transfers
0xb �?0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
0xb -0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>24</bitOffset>
<bitWidth>4</bitWidth>
<access>read-write</access>
Expand All @@ -26957,7 +26957,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>21</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand All @@ -26973,7 +26973,7 @@ See field SrcBurstSize above for the definition of burst transfer byte number an
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>18</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand Down Expand Up @@ -27254,7 +27254,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x8: 256 transfers
0x9:512 transfers
0xa: 1024 transfers
0xb �?0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
0xb -0xf: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>24</bitOffset>
<bitWidth>4</bitWidth>
<access>read-write</access>
Expand All @@ -27268,7 +27268,7 @@ The burst transfer byte number is (SrcBurstSize * SrcWidth).
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>21</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand All @@ -27284,7 +27284,7 @@ See field SrcBurstSize above for the definition of burst transfer byte number an
0x3: Double word transfer
0x4: Quad word transfer
0x5: Eight word transfer
0x6�?x7: Reserved, setting this field with a reserved value triggers the error exception</description>
0x6-x7: Reserved, setting this field with a reserved value triggers the error exception</description>
<bitOffset>18</bitOffset>
<bitWidth>3</bitWidth>
<access>read-write</access>
Expand Down
Loading

0 comments on commit 501b22a

Please sign in to comment.