Skip to content

Commit 4b69386

Browse files
thaoluonguwandrzej-kaczmarek
authored andcommitted
hal: renesas: ra: Fix mistakes in header files
bsp_feature_gen.h: Add lacking information when migrate to FSPv5.3.0 *_cfg.h: Correct mistakes CMakeLists.txt: Remove redundant code and add empty line at the end Signed-off-by: Thao Luong <[email protected]>
1 parent da744e2 commit 4b69386

File tree

7 files changed

+238
-247
lines changed

7 files changed

+238
-247
lines changed

ra/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ set(srcs
1919
zephyr_include_directories(${include_dirs})
2020
zephyr_library_sources(${srcs})
2121

22-
message(${CONFIG_SOC_SERIES})
2322
zephyr_include_directories(fsp/ra/fsp/src/bsp/mcu/${CONFIG_SOC_SERIES})
2423
zephyr_include_directories(ra_cfg/fsp_cfg/bsp/${CONFIG_SOC_SERIES})
2524

2625
# Optional build base on feature configuration
2726
zephyr_library_sources_ifdef(CONFIG_USE_RA_FSP_SCI_B_UART
2827
fsp/ra/fsp/src/r_sci_b_uart/r_sci_b_uart.c)
2928
zephyr_library_sources_ifdef(CONFIG_USE_RA_FSP_DTC
30-
fsp/ra/fsp/src/r_dtc/r_dtc.c)
29+
fsp/ra/fsp/src/r_dtc/r_dtc.c)

ra/fsp/ra/fsp/src/bsp/mcu/ra8m1/bsp_feature_gen.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,15 @@
2626
/***********************************************************************************************************************
2727
* Private global variables and functions
2828
**********************************************************************************************************************/
29+
30+
// *UNCRUSTIFY-OFF*
31+
#define BSP_FEATURE_GPT_AD_DIRECT_START_CHANNEL_MASK (0xFF)
32+
#define BSP_FEATURE_GPT_AD_DIRECT_START_SUPPORTED (0x1)
33+
#define BSP_FEATURE_GPT_GPTE_CHANNEL_MASK (0)
34+
#define BSP_FEATURE_GPT_GPTE_SUPPORTED (0)
35+
#define BSP_FEATURE_GPT_GPTEH_CHANNEL_MASK (0)
36+
#define BSP_FEATURE_GPT_GPTEH_SUPPORTED (0)
37+
#define BSP_FEATURE_GPT_OPS_CHANNEL_MASK (0x1)
38+
#define BSP_FEATURE_GPT_OPS_SUPPORTED (0x1)
2939
// *UNCRUSTIFY-ON*
3040
#endif

ra/ra_cfg/fsp_cfg/bsp/ra8m1/bsp_cfg.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
/*
2-
* Copyright (c) 2024 Renesas Electronics Corporation
2+
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#ifndef ZEPHYR_SOC_RENESAS_RA_COMMON_BSP_CFG_H_
8-
#define ZEPHYR_SOC_RENESAS_RA_COMMON_BSP_CFG_H_
7+
#ifndef BSP_CFG_H_
8+
#define BSP_CFG_H_
99

1010
#include "soc.h"
1111
#include "bsp_clock_cfg.h"
1212
#include "bsp_mcu_family_cfg.h"
13-
1413
#define BSP_CFG_PARAM_CHECKING_ENABLE (0)
1514

1615
/* Add for zephyr porting */
@@ -33,4 +32,4 @@
3332
#define BSP_CLOCK_CFG_SUBCLOCK_STABILIZATION_MS 1000
3433
#endif
3534

36-
#endif /* ZEPHYR_SOC_RENESAS_RA_COMMON_BSP_CFG_H_ */
35+
#endif /* BSP_CFG_H_ */

ra/ra_cfg/fsp_cfg/bsp/ra8m1/bsp_clock_cfg.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2024 Renesas Electronics Corporation
3-
*
4-
* SPDX-License-Identifier: BSD-3-Clause
5-
*/
2+
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
66

77
#include <zephyr/devicetree.h>
88

ra/ra_cfg/fsp_cfg/bsp/ra8m1/bsp_mcu_device_cfg.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/*
2-
* Copyright (c) 2024 Renesas Electronics Corporation
3-
*
4-
* SPDX-License-Identifier: BSD-3-Clause
5-
*/
6-
2+
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
76
#ifndef BSP_MCU_DEVICE_CFG_H_
87
#define BSP_MCU_DEVICE_CFG_H_
98
#define BSP_CFG_MCU_PART_SERIES (8)
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
/*
2-
* Copyright (c) 2024 Renesas Electronics Corporation
3-
*
4-
* SPDX-License-Identifier: BSD-3-Clause
5-
*/
6-
2+
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
76
#ifndef BSP_MCU_DEVICE_PN_CFG_H_
8-
9-
#if defined(CONFIG_SOC_R7FA8M1AHECBD)
7+
#define BSP_MCU_DEVICE_PN_CFG_H_
108
#define BSP_MCU_R7FA8M1AHECBD
11-
#define BSP_MCU_FEATURE_SET ('A')
12-
#define BSP_ROM_SIZE_BYTES (2064384)
13-
#define BSP_RAM_SIZE_BYTES (917504)
9+
#define BSP_MCU_FEATURE_SET ('A')
10+
#define BSP_ROM_SIZE_BYTES (2064384)
11+
#define BSP_RAM_SIZE_BYTES (917504)
1412
#define BSP_DATA_FLASH_SIZE_BYTES (12288)
1513
#define BSP_PACKAGE_BGA
1614
#define BSP_PACKAGE_PINS (224)
17-
#endif
18-
1915
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */

0 commit comments

Comments
 (0)