From 7c6505132bcc83a8410d2b9aac2f056030239685 Mon Sep 17 00:00:00 2001 From: Logan G Date: Fri, 5 Jan 2024 04:17:16 -0700 Subject: [PATCH] Random whitespace removal --- Debug/debug.c | 6 +++--- Debug/debug.h | 2 +- User/system_ch32v00x.c | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Debug/debug.c b/Debug/debug.c index e27101a..cc47d38 100644 --- a/Debug/debug.c +++ b/Debug/debug.c @@ -7,7 +7,7 @@ * Printf , Delay functions. ********************************************************************************* * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. - * Attention: This software (modified or not) and binary are used for + * Attention: This software (modified or not) and binary are used for * microcontroller manufactured by Nanjing Qinheng Microelectronics. *******************************************************************************/ #include @@ -167,7 +167,7 @@ void SDI_Printf_Enable(void) * * @return size - Data length */ -__attribute__((used)) +__attribute__((used)) int _write(int fd, char *buf, int size) { int i = 0; @@ -224,7 +224,7 @@ int _write(int fd, char *buf, int size) * * @return size: Data length */ -__attribute__((used)) +__attribute__((used)) void *_sbrk(ptrdiff_t incr) { extern char _end[]; diff --git a/Debug/debug.h b/Debug/debug.h index 367c668..679f118 100644 --- a/Debug/debug.h +++ b/Debug/debug.h @@ -7,7 +7,7 @@ * Printf , Delay functions. ********************************************************************************* * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. - * Attention: This software (modified or not) and binary are used for + * Attention: This software (modified or not) and binary are used for * microcontroller manufactured by Nanjing Qinheng Microelectronics. *******************************************************************************/ #ifndef __DEBUG_H diff --git a/User/system_ch32v00x.c b/User/system_ch32v00x.c index aa2b7d1..ffaf4b8 100644 --- a/User/system_ch32v00x.c +++ b/User/system_ch32v00x.c @@ -9,10 +9,10 @@ *********************************************************************************/ #include -/* -* Uncomment the line corresponding to the desired System clock (SYSCLK) frequency (after +/* +* Uncomment the line corresponding to the desired System clock (SYSCLK) frequency (after * reset the HSI is used as SYSCLK source). -* If none of the define below is enabled, the HSI is used as System clock source. +* If none of the define below is enabled, the HSI is used as System clock source. */ //#define SYSCLK_FREQ_8MHz_HSI 8000000 @@ -153,10 +153,10 @@ static void SetSysClock(void) #elif defined SYSCLK_FREQ_48MHz_HSE SetSysClockTo_48MHz_HSE(); #endif - + /* If none of the define above is enabled, the HSI is used as System clockŁ¬ - * source (default after reset) - */ + * source (default after reset) + */ } @@ -229,7 +229,7 @@ static void SetSysClockTo_48MHZ_HSI(void) } /* Select PLL as system clock source */ RCC->CFGR0 &= (uint32_t)((uint32_t)~(RCC_SW)); - RCC->CFGR0 |= (uint32_t)RCC_SW_PLL; + RCC->CFGR0 |= (uint32_t)RCC_SW_PLL; /* Wait till PLL is used as system clock source */ while ((RCC->CFGR0 & (uint32_t)RCC_SWS) != (uint32_t)0x08) { @@ -438,4 +438,4 @@ static void SetSysClockTo_48MHz_HSE(void) - +