mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-25 08:47:05 +08:00
Modify the indentation format
This commit is contained in:
parent
70cbbcb59a
commit
642aaa9496
@ -6,15 +6,10 @@
|
|||||||
* Change Logs:
|
* Change Logs:
|
||||||
* Date Author Notes
|
* Date Author Notes
|
||||||
* 2018-11-06 SummerGift first version
|
* 2018-11-06 SummerGift first version
|
||||||
* 2019-04-09 jhb
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief System Clock Configuration
|
|
||||||
* @retval None
|
|
||||||
*/
|
|
||||||
void SystemClock_Config(void)
|
void SystemClock_Config(void)
|
||||||
{
|
{
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||||||
@ -44,8 +39,7 @@ void SystemClock_Config(void)
|
|||||||
}
|
}
|
||||||
/**Initializes the CPU, AHB and APB busses clocks
|
/**Initializes the CPU, AHB and APB busses clocks
|
||||||
*/
|
*/
|
||||||
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
||||||
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
|
||||||
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
||||||
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||||||
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
|
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
|
||||||
@ -55,8 +49,7 @@ void SystemClock_Config(void)
|
|||||||
{
|
{
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART3|RCC_PERIPHCLK_DSI
|
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART3|RCC_PERIPHCLK_DSI|RCC_PERIPHCLK_LTDC;
|
||||||
|RCC_PERIPHCLK_LTDC;
|
|
||||||
PeriphClkInit.Usart3ClockSelection = RCC_USART3CLKSOURCE_PCLK1;
|
PeriphClkInit.Usart3ClockSelection = RCC_USART3CLKSOURCE_PCLK1;
|
||||||
PeriphClkInit.DsiClockSelection = RCC_DSICLKSOURCE_DSIPHY;
|
PeriphClkInit.DsiClockSelection = RCC_DSICLKSOURCE_DSIPHY;
|
||||||
PeriphClkInit.LtdcClockSelection = RCC_LTDCCLKSOURCE_PLLSAI2_DIV2;
|
PeriphClkInit.LtdcClockSelection = RCC_LTDCCLKSOURCE_PLLSAI2_DIV2;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
static SRAM_HandleTypeDef hsram;
|
static SRAM_HandleTypeDef hsram;
|
||||||
static FMC_NORSRAM_TimingTypeDef SRAM_Timing;
|
static FMC_NORSRAM_TimingTypeDef SRAM_Timing;
|
||||||
#ifdef RT_USING_MEMHEAP_AS_HEAP
|
#ifdef RT_USING_MEMHEAP_AS_HEAP
|
||||||
static struct rt_memheap system_heap;
|
static struct rt_memheap system_heap;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int SRAM_Init(void)
|
static int SRAM_Init(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user