清理全库行尾空格与文件尾换行(pre-commit 自动修复基线)

This commit is contained in:
2026-09-01 10:24:50 +08:00
parent 2769bf33a0
commit ae8b1aead5
129 changed files with 2507 additions and 2625 deletions
-1
View File
@@ -11,4 +11,3 @@ HeaderPath=..\Inc
HeaderFiles=gpio.h;FreeRTOSConfig.h;dma.h;i2c.h;spi.h;usart.h;stm32f4xx_it.h;stm32f4xx_hal_conf.h;main.h;
SourcePath=..\Src
SourceFiles=gpio.c;freertos.c;dma.c;i2c.c;spi.c;usart.c;stm32f4xx_it.c;stm32f4xx_hal_msp.c;stm32f4xx_hal_timebase_tim.c;main.c;
-1
View File
@@ -959,4 +959,3 @@ int32_t gd5f_bbt_wipe_pool(void) {
int32_t gd5f_bbt_reload(void) {
return gd5f_bbt_load();
}
-1
View File
@@ -494,4 +494,3 @@ int sd2506_read_ctr1(uint8_t *p_val) {
return sd2506_read_reg(SD2506_REG_CTR1, p_val);
}
-1
View File
@@ -987,4 +987,3 @@ lv_font_t ui_font_cn_12 = {
#endif /*#if UI_FONT_CN_12*/
-1
View File
@@ -280,4 +280,3 @@
#endif /* __CMSIS_COMPILER_H */
-1
View File
@@ -349,4 +349,3 @@ __STATIC_INLINE void ARM_MPU_Load_NS(uint32_t rnr, ARM_MPU_Region_t const* table
#endif
#endif
@@ -4418,5 +4418,3 @@ extern "C" {
#endif
#endif /* STM32_HAL_LEGACY */
@@ -293,5 +293,3 @@ void HAL_DisableMemorySwappingBank(void);
#endif
#endif /* __STM32F4xx_HAL_H */
@@ -406,5 +406,3 @@ void HAL_CORTEX_ClearEvent(void);
#endif
#endif /* __STM32F4xx_HAL_CORTEX_H */
@@ -208,5 +208,3 @@ typedef enum
#endif
#endif /* ___STM32F4xx_HAL_DEF */
@@ -799,4 +799,3 @@ uint32_t HAL_DMA_GetError(DMA_HandleTypeDef *hdma);
#endif
#endif /* __STM32F4xx_HAL_DMA_H */
@@ -99,4 +99,3 @@ HAL_StatusTypeDef HAL_DMAEx_ChangeMemory(DMA_HandleTypeDef *hdma, uint32_t Addre
#endif
#endif /*__STM32F4xx_HAL_DMA_EX_H*/
@@ -363,4 +363,3 @@ void HAL_EXTI_GenerateSWI(EXTI_HandleTypeDef *hexti);
#endif
#endif /* STM32f4xx_HAL_EXTI_H */
@@ -422,4 +422,3 @@ HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout);
#endif
#endif /* __STM32F4xx_HAL_FLASH_H */
@@ -1060,4 +1060,3 @@ void FLASH_FlushCaches(void);
#endif
#endif /* __STM32F4xx_HAL_FLASH_EX_H */
@@ -73,4 +73,3 @@ __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DisableFlashSleepMode(void);
#endif /* __STM32F4xx_FLASH_RAMFUNC_H */
@@ -322,4 +322,3 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin);
#endif
#endif /* __STM32F4xx_HAL_GPIO_H */
@@ -1587,4 +1587,3 @@
#endif
#endif /* __STM32F4xx_HAL_GPIO_EX_H */
@@ -738,4 +738,3 @@ uint32_t HAL_I2C_GetError(I2C_HandleTypeDef *hi2c);
#endif /* __STM32F4xx_HAL_I2C_H */
@@ -111,5 +111,3 @@ HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_
#endif
#endif /* __STM32F4xx_HAL_I2C_EX_H */
@@ -1455,4 +1455,3 @@ void HAL_RCC_CSSCallback(void);
#endif
#endif /* __STM32F4xx_HAL_RCC_H */
@@ -7187,4 +7187,3 @@ HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI(void);
#endif
#endif /* __STM32F4xx_HAL_RCC_EX_H */
@@ -730,4 +730,3 @@ uint32_t HAL_SPI_GetError(const SPI_HandleTypeDef *hspi);
#endif
#endif /* STM32F4xx_HAL_SPI_H */
@@ -906,4 +906,3 @@ HAL_StatusTypeDef UART_Start_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pDa
#endif
#endif /* __STM32F4xx_HAL_UART_H */
@@ -2102,4 +2102,3 @@ __STATIC_INLINE void LL_APB2_GRP1_DisableClockLowPower(uint32_t Periphs)
#endif
#endif /* __STM32F4xx_LL_BUS_H */
@@ -644,4 +644,3 @@ __STATIC_INLINE void LL_MPU_DisableRegion(uint32_t Region)
#endif
#endif /* __STM32F4xx_LL_CORTEX_H */
@@ -2865,4 +2865,3 @@ void LL_DMA_StructInit(LL_DMA_InitTypeDef *DMA_InitStruct);
#endif
#endif /* __STM32F4xx_LL_DMA_H */
@@ -951,4 +951,3 @@ void LL_EXTI_StructInit(LL_EXTI_InitTypeDef *EXTI_InitStruct);
#endif
#endif /* __STM32F4xx_LL_EXTI_H */
@@ -978,4 +978,3 @@ void LL_GPIO_StructInit(LL_GPIO_InitTypeDef *GPIO_InitStruct);
#endif
#endif /* __STM32F4xx_LL_GPIO_H */
@@ -1887,4 +1887,3 @@ void LL_I2C_StructInit(LL_I2C_InitTypeDef *I2C_InitStruct);
#endif
#endif /* __STM32F4xx_LL_I2C_H */
@@ -7098,4 +7098,3 @@ uint32_t LL_RCC_GetDSIClockFreq(uint32_t DSIxSource);
#endif
#endif /* __STM32F4xx_LL_RCC_H */
@@ -2039,4 +2039,3 @@ ErrorStatus LL_I2S_InitFullDuplex(SPI_TypeDef *I2Sxext, LL_I2S_InitTypeDef *I2S_
#endif
#endif /* STM32F4xx_LL_SPI_H */
@@ -1707,5 +1707,3 @@ __STATIC_INLINE void LL_FLASH_DisableDataCacheReset(void)
#endif
#endif /* __STM32F4xx_LL_SYSTEM_H */
@@ -2518,4 +2518,3 @@ void LL_USART_ClockStructInit(LL_USART_ClockInitTypeDef *USART_ClockInitS
#endif
#endif /* __STM32F4xx_LL_USART_H */
@@ -612,5 +612,3 @@ void HAL_DisableMemorySwappingBank(void)
/**
* @}
*/
@@ -535,4 +535,3 @@ __weak void HAL_SYSTICK_Callback(void)
/**
* @}
*/
@@ -1302,4 +1302,3 @@ static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
/**
* @}
*/
@@ -310,4 +310,3 @@ static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddres
/**
* @}
*/
@@ -550,4 +550,3 @@ void HAL_EXTI_GenerateSWI(EXTI_HandleTypeDef *hexti)
/**
* @}
*/
@@ -773,4 +773,3 @@ static void FLASH_SetErrorCode(void)
/**
* @}
*/
@@ -1341,4 +1341,3 @@ void FLASH_FlushCaches(void)
/**
* @}
*/
@@ -169,4 +169,3 @@ __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DisableFlashSleepMode(void)
/**
* @}
*/
@@ -530,4 +530,3 @@ __weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
/**
* @}
*/
@@ -7564,4 +7564,3 @@ static void I2C_ConvertOtherXferOptions(I2C_HandleTypeDef *hi2c)
/**
* @}
*/
@@ -179,4 +179,3 @@ HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_
/**
* @}
*/
@@ -1121,4 +1121,3 @@ __weak void HAL_RCC_CSSCallback(void)
/**
* @}
*/
@@ -3830,4 +3830,3 @@ void HAL_RCC_GetOscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
/**
* @}
*/
@@ -3942,4 +3942,3 @@ static void SPI_AbortTx_ISR(SPI_HandleTypeDef *hspi)
/**
* @}
*/
@@ -3804,4 +3804,3 @@ static void UART_SetConfig(UART_HandleTypeDef *huart)
/**
* @}
*/
-1
View File
@@ -49,4 +49,3 @@ void MX_DMA_Init(void);
#endif
#endif /* __DMA_H__ */
-1
View File
@@ -46,4 +46,3 @@ void MX_GPIO_Init(void);
}
#endif
#endif /*__ GPIO_H__ */
-1
View File
@@ -49,4 +49,3 @@ void MX_I2C1_Init(void);
#endif
#endif /* __I2C_H__ */
-1
View File
@@ -52,4 +52,3 @@ void MX_SPI2_Init(void);
#endif
#endif /* __SPI_H__ */
-1
View File
@@ -61,4 +61,3 @@ void MX_USART3_UART_Init(void);
#endif
#endif /* __USART_H__ */
-1
View File
@@ -7081,4 +7081,3 @@ FRESULT f_setcp (
return FR_OK;
}
#endif /* FF_CODE_PAGE == 0 */
+1 -1
View File
@@ -16,7 +16,7 @@
<TargetCommonOption>
<Device>STM32F407ZGTx</Device>
<Vendor>STMicroelectronics</Vendor>
<PackID>Keil.STM32F4xx_DFP.3.1.1</PackID>
<PackID>Keil.STM32F4xx_DFP.3.0.0</PackID>
<PackURL>https://www.keil.com/pack/</PackURL>
<Cpu>IRAM(0x20000000-0x2001BFFF) IRAM2(0x2001C000-0x2001FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) FPU2 CPUTYPE("Cortex-M4") TZ</Cpu>
<FlashUtilSpec></FlashUtilSpec>
-1
View File
@@ -15,4 +15,3 @@ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-1
View File
@@ -350,4 +350,3 @@ BaseType_t xReturn;
}
#endif /* configUSE_CO_ROUTINES == 0 */
@@ -749,5 +749,3 @@ BaseType_t xWaitConditionMet = pdFALSE;
#endif /* configUSE_TRACE_FACILITY */
/*-----------------------------------------------------------*/
@@ -1292,4 +1292,3 @@ typedef StaticStreamBuffer_t StaticMessageBuffer_t;
#endif
#endif /* INC_FREERTOS_H */
@@ -130,4 +130,3 @@
#endif /* STACK_MACROS_H */
@@ -276,4 +276,3 @@ projects should not use them. */
#endif
#endif /* DEPRECATED_DEFINITIONS_H */
@@ -753,5 +753,3 @@ void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToCl
#endif
#endif /* EVENT_GROUPS_H */
@@ -409,4 +409,3 @@ UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) PRIVILEGED_FUNCTIO
#endif
#endif
@@ -157,4 +157,3 @@ StreamBufferHandle_t MPU_xStreamBufferGenericCreateStatic( size_t xBufferSizeByt
#endif /* MPU_PROTOTYPES_H */
@@ -186,4 +186,3 @@ only for ports that are using the MPU. */
#endif /* MPU_WRAPPERS_H */
@@ -196,4 +196,3 @@ void vPortEndScheduler( void ) PRIVILEGED_FUNCTION;
#endif
#endif /* PORTABLE_H */
@@ -119,6 +119,3 @@ itself. */
#endif /* PROJDEFS_H */
@@ -1652,4 +1652,3 @@ uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
#endif
#endif /* QUEUE_H */
@@ -1136,5 +1136,3 @@ typedef QueueHandle_t SemaphoreHandle_t;
#define uxSemaphoreGetCount( xSemaphore ) uxQueueMessagesWaiting( ( QueueHandle_t ) ( xSemaphore ) )
#endif /* SEMAPHORE_H */
@@ -126,4 +126,3 @@
#endif /* STACK_MACROS_H */
@@ -2538,6 +2538,3 @@ void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNC
}
#endif
#endif /* INC_TASK_H */
@@ -1304,6 +1304,3 @@ BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommand
}
#endif
#endif /* TIMERS_H */
-1
View File
@@ -195,4 +195,3 @@ List_t * const pxList = pxItemToRemove->pxContainer;
return pxList->uxNumberOfItems;
}
/*-----------------------------------------------------------*/
@@ -489,4 +489,3 @@ size_t xBlocks = 0, xMaxSize = 0, xMinSize = portMAX_DELAY; /* portMAX_DELAY use
}
taskEXIT_CRITICAL();
}
@@ -784,5 +784,3 @@ __asm uint32_t vPortGetIPSR( void )
}
#endif /* configASSERT_DEFINED */
@@ -249,4 +249,3 @@ BaseType_t xReturn;
#endif
#endif /* PORTMACRO_H */
-12
View File
@@ -2931,15 +2931,3 @@ Queue_t * const pxQueue = xQueue;
}
#endif /* configUSE_QUEUE_SETS */
-2
View File
@@ -5306,5 +5306,3 @@ when performing module tests). */
#endif
#endif
-3
View File
@@ -1122,6 +1122,3 @@ Timer_t * const pxTimer = xTimer;
to include software timer functionality. If you want to include software timer
functionality then ensure configUSE_TIMERS is set to 1 in FreeRTOSConfig.h. */
#endif /* configUSE_TIMERS == 1 */
-1
View File
@@ -68,4 +68,3 @@ void MX_DMA_Init(void)
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */
-1
View File
@@ -320,4 +320,3 @@ void StartUiTask(void *argument)
/* USER CODE BEGIN Application */
/* USER CODE END Application */
-1
View File
@@ -114,4 +114,3 @@ void HAL_I2C_MspDeInit(I2C_HandleTypeDef* i2cHandle)
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
-1
View File
@@ -297,4 +297,3 @@ void HAL_SPI_MspDeInit(SPI_HandleTypeDef* spiHandle)
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
-1
View File
@@ -135,4 +135,3 @@ void HAL_ResumeTick(void)
/* Enable TIM7 Update interrupt */
__HAL_TIM_ENABLE_IT(&htim7, TIM_IT_UPDATE);
}
-1
View File
@@ -483,4 +483,3 @@ int fputc(int ch, FILE *f)
return ch;
}
/* USER CODE END 1 */
@@ -738,4 +738,3 @@ ECC 状态(`ECCS1:ECCS0`):`00`=无错;`01/10/11`=纠正 1/2/3 bit;`10`
| Feature 寄存器 | 0xB0;ECC_EN=4, QE=0 |
| Protect 寄存器 | 0xA0;init 后写 0x00 解除保护 |
| SPI 引脚 | CS=PE0, SCK=PB3, MISO=PB4, MOSI=PB5, WP=PB8, HOLD=PE1 |
@@ -132,4 +132,3 @@ if (ok) {
- 返回“连续区间”的辅助函数,其返回值是起点还是终点必须在注释/命名中明确,
调用方与实现必须一致
- 这类错位 bug 往往只在“区间贴到设备边界”时才触发,正常情况能过,建议测试覆盖边界块