summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32f429-st-disco
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-05-28 16:20:08 +0800
committerGitHub <[email protected]>2021-05-28 16:20:08 +0800
commit92beddf3bccf6346e26aa097f82464456fb8e6bd (patch)
tree197e4a108118dda016ea02274172f0c40e7ee8ed /bsp/stm32/stm32f429-st-disco
parentb18a99b44240ec3152011e159cc24a5af8dff0ce (diff)
parent03f4d40e30f3c94e1db0b3a65b3610dee695694a (diff)
Merge pull request #4737 from mysterywolf/3,1,xformatv3.1.5
[lts 3.1.x] format codes
Diffstat (limited to 'bsp/stm32/stm32f429-st-disco')
-rw-r--r--bsp/stm32/stm32f429-st-disco/applications/lcd_init.c2
-rw-r--r--bsp/stm32/stm32f429-st-disco/applications/main.c2
-rw-r--r--bsp/stm32/stm32f429-st-disco/board/board.c8
-rw-r--r--bsp/stm32/stm32f429-st-disco/board/board.h2
-rw-r--r--bsp/stm32/stm32f429-st-disco/board/ports/fal_cfg.h6
-rw-r--r--bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.c6
-rw-r--r--bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.h2
7 files changed, 14 insertions, 14 deletions
diff --git a/bsp/stm32/stm32f429-st-disco/applications/lcd_init.c b/bsp/stm32/stm32f429-st-disco/applications/lcd_init.c
index 277a754ae6..2660e6ef7c 100644
--- a/bsp/stm32/stm32f429-st-disco/applications/lcd_init.c
+++ b/bsp/stm32/stm32f429-st-disco/applications/lcd_init.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/stm32/stm32f429-st-disco/applications/main.c b/bsp/stm32/stm32f429-st-disco/applications/main.c
index 8e6e8caef1..992f2b5d74 100644
--- a/bsp/stm32/stm32f429-st-disco/applications/main.c
+++ b/bsp/stm32/stm32f429-st-disco/applications/main.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/stm32/stm32f429-st-disco/board/board.c b/bsp/stm32/stm32f429-st-disco/board/board.c
index ca12c3724e..5e9e6f4c77 100644
--- a/bsp/stm32/stm32f429-st-disco/board/board.c
+++ b/bsp/stm32/stm32f429-st-disco/board/board.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -17,11 +17,11 @@ void SystemClock_Config(void)
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
- /** Configure the main internal regulator output voltage
+ /** Configure the main internal regulator output voltage
*/
__HAL_RCC_PWR_CLK_ENABLE();
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
- /** Initializes the CPU, AHB and APB busses clocks
+ /** Initializes the CPU, AHB and APB busses clocks
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
@@ -35,7 +35,7 @@ void SystemClock_Config(void)
{
Error_Handler();
}
- /** 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_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
diff --git a/bsp/stm32/stm32f429-st-disco/board/board.h b/bsp/stm32/stm32f429-st-disco/board/board.h
index 47e439a260..2d2b2088a3 100644
--- a/bsp/stm32/stm32f429-st-disco/board/board.h
+++ b/bsp/stm32/stm32f429-st-disco/board/board.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/bsp/stm32/stm32f429-st-disco/board/ports/fal_cfg.h b/bsp/stm32/stm32f429-st-disco/board/ports/fal_cfg.h
index 46ecb322c4..ac75718bc7 100644
--- a/bsp/stm32/stm32f429-st-disco/board/ports/fal_cfg.h
+++ b/bsp/stm32/stm32f429-st-disco/board/ports/fal_cfg.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -57,7 +57,7 @@ extern struct fal_flash_dev nor_flash0;
&nor_flash0, \
}
-#define ONCHIP_FLASH_PART_TABLE
+#define ONCHIP_FLASH_PART_TABLE
#define QSPI_FLASH_PART_TABLE \
{FAL_PART_MAGIC_WROD, "qspiflash", FAL_USING_NOR_FLASH_DEV_NAME, 0 , (16 * 1024 * 1024), 0},
@@ -76,7 +76,7 @@ extern struct fal_flash_dev nor_flash0;
{FAL_PART_MAGIC_WROD, "param", "onchip_flash_64k", 0 , FLASH_SIZE_GRANULARITY_64K , 0}, \
{FAL_PART_MAGIC_WROD, "app", "onchip_flash_128k", 0 , FLASH_SIZE_GRANULARITY_128K, 0},
-#define QSPI_FLASH_PART_TABLE
+#define QSPI_FLASH_PART_TABLE
#else
diff --git a/bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.c b/bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.c
index 8559b69f98..d70e444ef4 100644
--- a/bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.c
+++ b/bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -154,7 +154,7 @@ int32_t touch_get_state(struct touch_state *state)
res = touch_read(STMPE811_TSC_CTRL, &val);
if (res < 0) return -1;
state->pressed = (val & (1 << 7)) ? 1 : 0;
-
+
if (state->pressed)
{
val = STMPE811_TSC_DATA;
@@ -218,7 +218,7 @@ static int rt_hw_touch_init(void)
/* register touch device to RT-Thread */
rt_device_register(&touch, "touch", RT_DEVICE_FLAG_RDWR);
-
+
return RT_EOK;
}
INIT_BOARD_EXPORT(rt_hw_touch_init);
diff --git a/bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.h b/bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.h
index 68c8f92b7f..a7b6328f17 100644
--- a/bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.h
+++ b/bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*