Skip to content

Commit 72ca760

Browse files
committed
[bsp][renesas][ra4m1-ek] make it compilable under the GCC compiler
1 parent 65ab9ea commit 72ca760

File tree

4 files changed

+18
-46
lines changed

4 files changed

+18
-46
lines changed

bsp/renesas/ra4m1-ek/.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,6 @@ CONFIG_BSP_USING_UART0=y
13091309
# CONFIG_BSP_UART0_TX_USING_DMA is not set
13101310
CONFIG_BSP_UART0_RX_BUFSIZE=256
13111311
CONFIG_BSP_UART0_TX_BUFSIZE=0
1312-
# CONFIG_BSP_USING_UART1 is not set
13131312
# CONFIG_BSP_USING_SPI is not set
13141313
# CONFIG_BSP_USING_HW_I2C is not set
13151314
# CONFIG_BSP_USING_ADC is not set

bsp/renesas/ra4m1-ek/board/Kconfig

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,6 @@ menu "Hardware Drivers Config"
6262
depends on RT_USING_SERIAL_V2
6363
default 0
6464
endif
65-
66-
menuconfig BSP_USING_UART1
67-
bool "Enable UART1"
68-
default n
69-
if BSP_USING_UART1
70-
config BSP_UART1_RX_USING_DMA
71-
bool "Enable UART1 RX DMA"
72-
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
73-
default n
74-
75-
config BSP_UART1_TX_USING_DMA
76-
bool "Enable UART1 TX DMA"
77-
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
78-
default n
79-
80-
config BSP_UART1_RX_BUFSIZE
81-
int "Set UART1 RX buffer size"
82-
range 64 65535
83-
depends on RT_USING_SERIAL_V2
84-
default 256
85-
86-
config BSP_UART1_TX_BUFSIZE
87-
int "Set UART1 TX buffer size"
88-
range 0 65535
89-
depends on RT_USING_SERIAL_V2
90-
default 0
91-
endif
9265
endif
9366

9467
menuconfig BSP_USING_SPI

bsp/renesas/ra4m1-ek/rtconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191

192192
/* end of Interprocess Communication (IPC) */
193193
/* end of POSIX (Portable Operating System Interface) layer */
194-
#define RT_USING_CPLUSPLUS
194+
//#define RT_USING_CPLUSPLUS
195195
/* end of C/C++ and POSIX layer */
196196

197197
/* Network */

bsp/renesas/ra4m1-ek/script/bsp_link/GCC/bsp_linker_info.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/* UNCRUSTIFY-OFF */
1+
/* UNCRUSTIFY-OFF */
22
#ifndef BSP_LINKER_H
3-
#define BSP_LINKER_H
3+
#define BSP_LINKER_H
44

55
/***********************************************************************************************************************
66
* Macro definitions
@@ -32,33 +32,33 @@ typedef enum e_bsp_init_mem
3232

3333
typedef struct st_bsp_init_type
3434
{
35-
uint32_t copy_64 :8; /* if 1, must use 64 bit copy operation (to keep ecc happy) */
36-
uint32_t external :8; /* =1 if either source or destination is external, else 0 */
37-
uint32_t source_type :8;
38-
uint32_t destination_type :8;
35+
uint32_t copy_64 : 8; /* if 1, must use 64 bit copy operation (to keep ecc happy) */
36+
uint32_t external : 8; /* =1 if either source or destination is external, else 0 */
37+
uint32_t source_type : 8;
38+
uint32_t destination_type : 8;
3939
} bsp_init_type_t;
4040

4141
typedef struct st_bsp_init_zero_info
4242
{
43-
uint32_t *const p_base;
44-
uint32_t *const p_limit;
45-
bsp_init_type_t type;
43+
uint32_t * const p_base;
44+
uint32_t * const p_limit;
45+
bsp_init_type_t type;
4646
} bsp_init_zero_info_t;
4747

4848
typedef struct st_bsp_init_copy_info
4949
{
50-
uint32_t *const p_base;
51-
uint32_t *const p_limit;
52-
uint32_t *const p_load;
53-
bsp_init_type_t type;
50+
uint32_t * const p_base;
51+
uint32_t * const p_limit;
52+
uint32_t * const p_load;
53+
bsp_init_type_t type;
5454
} bsp_init_copy_info_t;
5555

5656
typedef struct st_bsp_init_info
5757
{
5858
uint32_t zero_count;
59-
bsp_init_zero_info_t const *const p_zero_list;
59+
bsp_init_zero_info_t const * const p_zero_list;
6060
uint32_t copy_count;
61-
bsp_init_copy_info_t const *const p_copy_list;
61+
bsp_init_copy_info_t const * const p_copy_list;
6262
} bsp_init_info_t;
6363

6464
/***********************************************************************************************************************
@@ -70,7 +70,7 @@ extern bsp_init_info_t const g_init_info;
7070
/***********************************************************************************************************************
7171
* Exported global functions (to be accessed by other files)
7272
**********************************************************************************************************************/
73-
#endif /* BSP_LINKER_H*/
73+
#endif // BSP_LINKER_H
7474
#ifdef BSP_LINKER_C
7575
/***********************************************************************************************************************
7676
* Objects allocated by bsp_linker.c
@@ -105,6 +105,6 @@ const bsp_init_info_t g_init_info =
105105
.p_copy_list = copy_list
106106
};
107107

108-
#endif /* BSP_LINKER_C*/
108+
#endif // BSP_LINKER_C
109109

110110
/* UNCRUSTIFY-ON */

0 commit comments

Comments
 (0)