Skip to content

Commit bdc34da

Browse files
committed
formatting
1 parent 208eb0a commit bdc34da

31 files changed

+1486
-5379
lines changed

bsp/swm320/JLinkLog.txt

Lines changed: 0 additions & 3853 deletions
This file was deleted.

bsp/swm320/JLinkSettings.ini

Lines changed: 0 additions & 40 deletions
This file was deleted.

bsp/swm320/applications/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -65,13 +65,13 @@ static int adc_vol_sample(int argc, char *argv[])
6565
}
6666

6767
ret = rt_adc_enable(adc_dev, ADC_DEV_CHANNEL);
68-
68+
6969
value = rt_adc_read(adc_dev, ADC_DEV_CHANNEL);
7070
rt_kprintf("the value is :%d,", value);
71-
71+
7272
vol = value * REFER_VOLTAGE / CONVERT_BITS;
7373
rt_kprintf("the voltage is :%d.%02d \n", vol / 100, vol % 100);
74-
74+
7575
ret = rt_adc_disable(adc_dev, ADC_DEV_CHANNEL);
7676

7777
return ret;

bsp/swm320/drivers/drv_log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

bsp/swm320/drivers/drv_rtc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static rt_err_t swm_rtc_init(void)
107107
rtc_initstruct.MinuteIEn = 0;
108108
RTC_Init(RTC, &rtc_initstruct);
109109
RTC_Start(RTC);
110-
110+
111111
return RT_EOK;
112112
}
113113

@@ -148,7 +148,7 @@ static rt_rtc_dev_t swm_rtc_device;
148148
int rt_hw_rtc_init(void)
149149
{
150150
rt_err_t result;
151-
151+
152152
swm_rtc_device.ops = &swm_rtc_ops;
153153
result = rt_hw_rtc_register(&swm_rtc_device, "rtc", RT_DEVICE_FLAG_RDWR,RT_NULL);
154154
if (result != RT_EOK)

bsp/swm320/libraries/CMSIS/CoreSupport/arm_common_tables.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* Copyright (C) 2010-2014 ARM Limited. All rights reserved.
33
*
44
* $Date: 31. July 2014
5-
* $Revision: V1.4.4
5+
* $Revision: V1.4.4
66
*
7-
* Project: CMSIS DSP Library
8-
* Title: arm_common_tables.h
7+
* Project: CMSIS DSP Library
8+
* Title: arm_common_tables.h
99
*
10-
* Description: This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions
10+
* Description: This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions
1111
*
1212
* Target Processor: Cortex-M4/Cortex-M3
1313
*

bsp/swm320/libraries/CMSIS/CoreSupport/arm_const_structs.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* Copyright (C) 2010-2014 ARM Limited. All rights reserved.
33
*
44
* $Date: 31. July 2014
5-
* $Revision: V1.4.4
5+
* $Revision: V1.4.4
66
*
7-
* Project: CMSIS DSP Library
8-
* Title: arm_const_structs.h
7+
* Project: CMSIS DSP Library
8+
* Title: arm_const_structs.h
99
*
10-
* Description: This file has constant structs that are initialized for
10+
* Description: This file has constant structs that are initialized for
1111
* user convenience. For example, some can be given as
1212
* arguments to the arm_cfft_f32() function.
1313
*

bsp/swm320/libraries/CMSIS/CoreSupport/arm_math.h

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* Copyright (C) 2010-2014 ARM Limited. All rights reserved.
33
*
44
* $Date: 12. March 2014
5-
* $Revision: V1.4.4
5+
* $Revision: V1.4.4
66
*
7-
* Project: CMSIS DSP Library
8-
* Title: arm_math.h
7+
* Project: CMSIS DSP Library
8+
* Title: arm_math.h
99
*
10-
* Description: Public header file for CMSIS DSP Library
10+
* Description: Public header file for CMSIS DSP Library
1111
*
1212
* Target Processor: Cortex-M7/Cortex-M4/Cortex-M3/Cortex-M0
1313
*
@@ -134,15 +134,15 @@
134134
* <hr>
135135
* CMSIS-DSP in ARM::CMSIS Pack
136136
* -----------------------------
137-
*
137+
*
138138
* The following files relevant to CMSIS-DSP are present in the <b>ARM::CMSIS</b> Pack directories:
139139
* |File/Folder |Content |
140140
* |------------------------------|------------------------------------------------------------------------|
141141
* |\b CMSIS\\Documentation\\DSP | This documentation |
142142
* |\b CMSIS\\DSP_Lib | Software license agreement (license.txt) |
143143
* |\b CMSIS\\DSP_Lib\\Examples | Example projects demonstrating the usage of the library functions |
144144
* |\b CMSIS\\DSP_Lib\\Source | Source files for rebuilding the library |
145-
*
145+
*
146146
* <hr>
147147
* Revision History of CMSIS-DSP
148148
* ------------
@@ -347,7 +347,7 @@ extern "C"
347347
#else
348348
#define ALIGN4 __align(4)
349349
#endif
350-
#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */
350+
#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */
351351

352352
/**
353353
* @brief Error status returned by some functions in the library.
@@ -1187,11 +1187,11 @@ extern "C"
11871187
/**
11881188
* @brief Initialization function for the Q31 FIR filter.
11891189
* @param[in,out] *S points to an instance of the Q31 FIR structure.
1190-
* @param[in] numTaps Number of filter coefficients in the filter.
1191-
* @param[in] *pCoeffs points to the filter coefficients.
1192-
* @param[in] *pState points to the state buffer.
1193-
* @param[in] blockSize number of samples that are processed at a time.
1194-
* @return none.
1190+
* @param[in] numTaps Number of filter coefficients in the filter.
1191+
* @param[in] *pCoeffs points to the filter coefficients.
1192+
* @param[in] *pState points to the state buffer.
1193+
* @param[in] blockSize number of samples that are processed at a time.
1194+
* @return none.
11951195
*/
11961196
void arm_fir_init_q31(
11971197
arm_fir_instance_q31 *S,
@@ -1217,11 +1217,11 @@ extern "C"
12171217
/**
12181218
* @brief Initialization function for the floating-point FIR filter.
12191219
* @param[in,out] *S points to an instance of the floating-point FIR filter structure.
1220-
* @param[in] numTaps Number of filter coefficients in the filter.
1221-
* @param[in] *pCoeffs points to the filter coefficients.
1222-
* @param[in] *pState points to the state buffer.
1223-
* @param[in] blockSize number of samples that are processed at a time.
1224-
* @return none.
1220+
* @param[in] numTaps Number of filter coefficients in the filter.
1221+
* @param[in] *pCoeffs points to the filter coefficients.
1222+
* @param[in] *pState points to the state buffer.
1223+
* @param[in] blockSize number of samples that are processed at a time.
1224+
* @return none.
12251225
*/
12261226
void arm_fir_init_f32(
12271227
arm_fir_instance_f32 *S,
@@ -1524,7 +1524,7 @@ extern "C"
15241524
* @brief Floating-point matrix transpose.
15251525
* @param[in] *pSrc points to the input matrix
15261526
* @param[out] *pDst points to the output matrix
1527-
* @return The function returns either <code>ARM_MATH_SIZE_MISMATCH</code>
1527+
* @return The function returns either <code>ARM_MATH_SIZE_MISMATCH</code>
15281528
* or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking.
15291529
*/
15301530

@@ -1536,7 +1536,7 @@ extern "C"
15361536
* @brief Q15 matrix transpose.
15371537
* @param[in] *pSrc points to the input matrix
15381538
* @param[out] *pDst points to the output matrix
1539-
* @return The function returns either <code>ARM_MATH_SIZE_MISMATCH</code>
1539+
* @return The function returns either <code>ARM_MATH_SIZE_MISMATCH</code>
15401540
* or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking.
15411541
*/
15421542

@@ -1548,7 +1548,7 @@ extern "C"
15481548
* @brief Q31 matrix transpose.
15491549
* @param[in] *pSrc points to the input matrix
15501550
* @param[out] *pDst points to the output matrix
1551-
* @return The function returns either <code>ARM_MATH_SIZE_MISMATCH</code>
1551+
* @return The function returns either <code>ARM_MATH_SIZE_MISMATCH</code>
15521552
* or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking.
15531553
*/
15541554

@@ -1575,7 +1575,7 @@ extern "C"
15751575
* @param[in] *pSrcA points to the first input matrix structure
15761576
* @param[in] *pSrcB points to the second input matrix structure
15771577
* @param[out] *pDst points to output matrix structure
1578-
* @param[in] *pState points to the array for storing intermediate results
1578+
* @param[in] *pState points to the array for storing intermediate results
15791579
* @return The function returns either
15801580
* <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking.
15811581
*/
@@ -1591,7 +1591,7 @@ extern "C"
15911591
* @param[in] *pSrcA points to the first input matrix structure
15921592
* @param[in] *pSrcB points to the second input matrix structure
15931593
* @param[out] *pDst points to output matrix structure
1594-
* @param[in] *pState points to the array for storing intermediate results
1594+
* @param[in] *pState points to the array for storing intermediate results
15951595
* @return The function returns either
15961596
* <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking.
15971597
*/
@@ -1723,7 +1723,7 @@ extern "C"
17231723
* @param[in,out] *S points to an instance of the floating-point matrix structure.
17241724
* @param[in] nRows number of rows in the matrix.
17251725
* @param[in] nColumns number of columns in the matrix.
1726-
* @param[in] *pData points to the matrix data array.
1726+
* @param[in] *pData points to the matrix data array.
17271727
* @return none
17281728
*/
17291729

@@ -1738,7 +1738,7 @@ extern "C"
17381738
* @param[in,out] *S points to an instance of the floating-point matrix structure.
17391739
* @param[in] nRows number of rows in the matrix.
17401740
* @param[in] nColumns number of columns in the matrix.
1741-
* @param[in] *pData points to the matrix data array.
1741+
* @param[in] *pData points to the matrix data array.
17421742
* @return none
17431743
*/
17441744

@@ -1753,7 +1753,7 @@ extern "C"
17531753
* @param[in,out] *S points to an instance of the floating-point matrix structure.
17541754
* @param[in] nRows number of rows in the matrix.
17551755
* @param[in] nColumns number of columns in the matrix.
1756-
* @param[in] *pData points to the matrix data array.
1756+
* @param[in] *pData points to the matrix data array.
17571757
* @return none
17581758
*/
17591759

@@ -2321,7 +2321,7 @@ extern "C"
23212321
* @param[in] N length of the DCT4.
23222322
* @param[in] Nby2 half of the length of the DCT4.
23232323
* @param[in] normalize normalizing factor.
2324-
* @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if <code>fftLenReal</code> is not a supported transform length.
2324+
* @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if <code>fftLenReal</code> is not a supported transform length.
23252325
*/
23262326

23272327
arm_status arm_dct4_init_f32(
@@ -2368,7 +2368,7 @@ extern "C"
23682368
* @param[in] N length of the DCT4.
23692369
* @param[in] Nby2 half of the length of the DCT4.
23702370
* @param[in] normalize normalizing factor.
2371-
* @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if <code>N</code> is not a supported transform length.
2371+
* @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if <code>N</code> is not a supported transform length.
23722372
*/
23732373

23742374
arm_status arm_dct4_init_q31(
@@ -2415,7 +2415,7 @@ extern "C"
24152415
* @param[in] N length of the DCT4.
24162416
* @param[in] Nby2 half of the length of the DCT4.
24172417
* @param[in] normalize normalizing factor.
2418-
* @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if <code>N</code> is not a supported transform length.
2418+
* @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if <code>N</code> is not a supported transform length.
24192419
*/
24202420

24212421
arm_status arm_dct4_init_q15(
@@ -5355,8 +5355,8 @@ extern "C"
53555355
* @brief Floating-point Park transform
53565356
* @param[in] Ialpha input two-phase vector coordinate alpha
53575357
* @param[in] Ibeta input two-phase vector coordinate beta
5358-
* @param[out] *pId points to output rotor reference frame d
5359-
* @param[out] *pIq points to output rotor reference frame q
5358+
* @param[out] *pId points to output rotor reference frame d
5359+
* @param[out] *pIq points to output rotor reference frame q
53605360
* @param[in] sinVal sine value of rotation angle theta
53615361
* @param[in] cosVal cosine value of rotation angle theta
53625362
* @return none.
@@ -5496,7 +5496,7 @@ extern "C"
54965496
}
54975497

54985498
/**
5499-
* @brief Inverse Park transform for Q31 version
5499+
* @brief Inverse Park transform for Q31 version
55005500
* @param[in] Id input coordinate of rotor reference frame d
55015501
* @param[in] Iq input coordinate of rotor reference frame q
55025502
* @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha

0 commit comments

Comments
 (0)