summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32f429-atk-apollo
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/stm32/stm32f429-atk-apollo')
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/applications/main.c2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/board.c10
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/board.h2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_mic.c4
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_mic.h8
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.c10
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.h12
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.c6
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.h2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/fal_cfg.h2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/phy_reset.c6
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/sdcard_port.c2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/sdram_port.h2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/spi_flash_init.c2
14 files changed, 35 insertions, 35 deletions
diff --git a/bsp/stm32/stm32f429-atk-apollo/applications/main.c b/bsp/stm32/stm32f429-atk-apollo/applications/main.c
index 487ddf44f6..6d19a46edb 100644
--- a/bsp/stm32/stm32f429-atk-apollo/applications/main.c
+++ b/bsp/stm32/stm32f429-atk-apollo/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-atk-apollo/board/board.c b/bsp/stm32/stm32f429-atk-apollo/board/board.c
index c13619f753..36d2ff17d3 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/board.c
+++ b/bsp/stm32/stm32f429-atk-apollo/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
*
@@ -18,11 +18,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_LSI|RCC_OSCILLATORTYPE_HSE
|RCC_OSCILLATORTYPE_LSE;
@@ -39,13 +39,13 @@ void SystemClock_Config(void)
{
Error_Handler();
}
- /**Activate the Over-Drive mode
+ /**Activate the Over-Drive mode
*/
if (HAL_PWREx_EnableOverDrive() != HAL_OK)
{
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-atk-apollo/board/board.h b/bsp/stm32/stm32f429-atk-apollo/board/board.h
index 9173f50c46..077b0af713 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/board.h
+++ b/bsp/stm32/stm32f429-atk-apollo/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-atk-apollo/board/ports/audio/drv_mic.c b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_mic.c
index ce1021fb60..889c5b0dee 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_mic.c
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_mic.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
*
@@ -86,7 +86,7 @@ void SAIB_config_set(struct rt_audio_configure config)
SAIB_samplerate_set(config.samplerate);
SAIB_samplebits_set(config.samplebits);
}
-
+
static void SAIB_config_init()
{
_sai_b.hsai.Instance = SAI1_Block_B;
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_mic.h b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_mic.h
index 8aeede498c..0cc55f7aa9 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_mic.h
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_mic.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
*
@@ -8,10 +8,10 @@
* 2019-07-28 Ernest the first version
*/
-#ifndef __DRV_MIC_H_
-#define __DRV_MIC_H_
+#ifndef __DRV_MIC_H_
+#define __DRV_MIC_H_
-#include <rtthread.h>
+#include <rtthread.h>
#include <rtdevice.h>
#endif
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.c b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.c
index 4a51ef6347..f564cc1b84 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.c
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.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
*
@@ -16,7 +16,7 @@
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
-#define CODEC_I2C_NAME ("i2c1")
+#define CODEC_I2C_NAME ("i2c1")
#define TX_DMA_FIFO_SIZE (2048)
@@ -49,7 +49,7 @@ void SAIA_samplerate_set(rt_uint32_t freq)
{
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
int i;
-
+
/* check frequence */
for (i = 0; i < (sizeof(SAI_PSC_TBL) / sizeof(SAI_PSC_TBL[0])); i++)
{
@@ -60,12 +60,12 @@ void SAIA_samplerate_set(rt_uint32_t freq)
LOG_E("Can not support this frequence: %d.", freq);
return;
}
-
+
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SAI_PLLI2S;
PeriphClkInitStruct.PLLI2S.PLLI2SN = SAI_PSC_TBL[i][1];
PeriphClkInitStruct.PLLI2S.PLLI2SQ = SAI_PSC_TBL[i][2];
PeriphClkInitStruct.PLLI2SDivQ = SAI_PSC_TBL[i][3] + 1;
-
+
HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct);
__HAL_RCC_SAI_BLOCKACLKSOURCE_CONFIG(RCC_SAIACLKSOURCE_PLLI2S);
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.h b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.h
index 216481444f..28a1ea210d 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.h
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_sound.h
@@ -1,19 +1,19 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
- * 2019-07-28 Ernest the first version
+ * 2019-07-28 Ernest the first version
*/
-#ifndef __DRV_SOUND_H_
-#define __DRV_SOUND_H_
+#ifndef __DRV_SOUND_H_
+#define __DRV_SOUND_H_
-#include <rtthread.h>
+#include <rtthread.h>
#include <rtdevice.h>
-#include <board.h>
+#include <board.h>
#define AUDIO_FREQUENCY_048K ((rt_uint32_t) 48000)
#define AUDIO_FREQUENCY_044K ((rt_uint32_t) 44100)
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.c b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.c
index 5c7b8084c4..0f650538f9 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.c
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.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
*
@@ -763,8 +763,8 @@ rt_err_t wm8978_init(struct rt_i2c_bus_device *dev)
wm8978_interface_cfg(dev, I2S_FOMAT_SELECT, 16);
wm8978_mic_enabled(dev, 0);
-
- return RT_EOK;
+
+ return RT_EOK;
}
void wm8978_DAC_enabled(struct rt_i2c_bus_device *dev, rt_bool_t bool)
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.h b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.h
index d385255f9c..fe476ec0bb 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.h
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/audio/drv_wm8978.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-atk-apollo/board/ports/fal_cfg.h b/bsp/stm32/stm32f429-atk-apollo/board/ports/fal_cfg.h
index a587e207ce..995136cd54 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/fal_cfg.h
+++ b/bsp/stm32/stm32f429-atk-apollo/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
*
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/ports/phy_reset.c b/bsp/stm32/stm32f429-atk-apollo/board/ports/phy_reset.c
index 666d053b25..826f8c7ded 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/phy_reset.c
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/phy_reset.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
*
@@ -16,8 +16,8 @@
#include <drv_log.h>
#define ETH_RESET_IO 7 //PHY RESET PIN
-#define I2C_BUS_NAME "i2c1"
-#define PCF8574_ADDR 0x20
+#define I2C_BUS_NAME "i2c1"
+#define PCF8574_ADDR 0x20
/* pcf8574 hardware init */
pcf8574_device_t pcf8574_hw_init(char * dev_name, int addr)
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/ports/sdcard_port.c b/bsp/stm32/stm32f429-atk-apollo/board/ports/sdcard_port.c
index 0a9c36fd42..bc7e8b676e 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/sdcard_port.c
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/sdcard_port.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-atk-apollo/board/ports/sdram_port.h b/bsp/stm32/stm32f429-atk-apollo/board/ports/sdram_port.h
index ff948cb61e..85697210fa 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/sdram_port.h
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/sdram_port.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-atk-apollo/board/ports/spi_flash_init.c b/bsp/stm32/stm32f429-atk-apollo/board/ports/spi_flash_init.c
index 26a9b2d2a8..7e35a36c86 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/spi_flash_init.c
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/spi_flash_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
*