Skip to content

Commit c999978

Browse files
committed
[bsp][renesas] fixed i2c initialization problem
1 parent 0598ad0 commit c999978

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

bsp/renesas/ra2e2-ek/.config

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ CONFIG_SOC_R7FA2E2A7=y
107107
# end of rt_strnlen options
108108
# end of klibc options
109109

110-
CONFIG_RT_NAME_MAX=8
110+
CONFIG_RT_NAME_MAX=16
111111
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
112112
# CONFIG_RT_USING_NANO is not set
113113
# CONFIG_RT_USING_SMART is not set
@@ -146,7 +146,7 @@ CONFIG_RT_DEBUGING_CONTEXT=y
146146
#
147147
CONFIG_RT_USING_SEMAPHORE=y
148148
CONFIG_RT_USING_MUTEX=y
149-
# CONFIG_RT_USING_EVENT is not set
149+
CONFIG_RT_USING_EVENT=y
150150
# CONFIG_RT_USING_MAILBOX is not set
151151
# CONFIG_RT_USING_MESSAGEQUEUE is not set
152152
# CONFIG_RT_USING_SIGNALS is not set
@@ -1286,6 +1286,10 @@ CONFIG_BSP_USING_UART9=y
12861286
# CONFIG_BSP_UART9_TX_USING_DMA is not set
12871287
CONFIG_BSP_UART9_RX_BUFSIZE=256
12881288
CONFIG_BSP_UART9_TX_BUFSIZE=0
1289+
# CONFIG_BSP_USING_HW_I2C is not set
1290+
# CONFIG_BSP_USING_SPI is not set
1291+
# CONFIG_BSP_USING_PWM is not set
1292+
# CONFIG_BSP_USING_ADC is not set
12891293
# end of On-chip Peripheral Drivers
12901294

12911295
#

bsp/renesas/ra2e2-ek/ra_gen/pin_data.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ const ioport_pin_cfg_t g_bsp_pin_cfg_data[] = {
3636
.pin = BSP_IO_PORT_03_PIN_00,
3737
.pin_cfg = ((uint32_t) IOPORT_CFG_PERIPHERAL_PIN | (uint32_t) IOPORT_PERIPHERAL_DEBUG)
3838
},
39-
{
40-
.pin = BSP_IO_PORT_04_PIN_00,
41-
.pin_cfg = ((uint32_t) IOPORT_CFG_PERIPHERAL_PIN | (uint32_t) IOPORT_PERIPHERAL_IIC)
42-
},
43-
{
44-
.pin = BSP_IO_PORT_04_PIN_01,
45-
.pin_cfg = ((uint32_t) IOPORT_CFG_PERIPHERAL_PIN | (uint32_t) IOPORT_PERIPHERAL_IIC)
46-
},
4739
{
4840
.pin = BSP_IO_PORT_09_PIN_14,
4941
.pin_cfg = ((uint32_t) IOPORT_CFG_PORT_DIRECTION_OUTPUT | (uint32_t) IOPORT_CFG_PORT_OUTPUT_LOW)

bsp/renesas/ra2e2-ek/rtconfig.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
/* end of rt_strnlen options */
6565
/* end of klibc options */
66-
#define RT_NAME_MAX 8
66+
#define RT_NAME_MAX 16
6767
#define RT_CPUS_NR 1
6868
#define RT_ALIGN_SIZE 8
6969
#define RT_THREAD_PRIORITY_32
@@ -84,6 +84,7 @@
8484

8585
#define RT_USING_SEMAPHORE
8686
#define RT_USING_MUTEX
87+
#define RT_USING_EVENT
8788
/* end of Inter-Thread communication */
8889

8990
/* Memory Management */

0 commit comments

Comments
 (0)