Skip to content

Commit e6a93d1

Browse files
khoa-nguyen-18KhiemNguyenT
authored andcommitted
hal: renesas: ra: Migrate RA FSP to version 5.8.0
Migrate RA FSP from version 5.3.0 to version 5.8.0 Signed-off-by: Khoa Nguyen <[email protected]>
1 parent a959f1b commit e6a93d1

File tree

1,033 files changed

+60956
-28972
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,033 files changed

+60956
-28972
lines changed

drivers/ra/fsp/inc/api/fsp_common_api.h

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

drivers/ra/fsp/inc/api/r_adc_api.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
2+
* Copyright (c) 2020 - 2025 Renesas Electronics Corporation and/or its affiliates
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
@@ -107,6 +107,8 @@ typedef enum e_adc_event
107107
ADC_EVENT_WINDOW_COMPARE_A, ///< Window A comparison condition met
108108
ADC_EVENT_WINDOW_COMPARE_B, ///< Window B comparison condition met
109109
ADC_EVENT_ZERO_CROSS_DETECTION, ///< Zero-cross detection interrupt
110+
ADC_EVENT_CAPTURE_A, ///< Capture A conversion complete
111+
ADC_EVENT_CAPTURE_B, ///< Capture B conversion complete
110112
} adc_event_t;
111113

112114
#endif
@@ -220,7 +222,6 @@ typedef struct st_adc_info
220222
elc_event_t elc_event; ///< Name of the ELC event for the peripheral
221223
uint32_t calibration_data; ///< Temperature sensor calibration data (0xFFFFFFFF if unsupported) for reference voltage
222224
int16_t slope_microvolts; ///< Temperature sensor slope in microvolts/degrees C
223-
bool calibration_ongoing; ///< Calibration is in progress.
224225
} adc_info_t;
225226

226227
#endif

drivers/ra/fsp/inc/api/r_can_api.h

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
2+
* Copyright (c) 2020 - 2025 Renesas Electronics Corporation and/or its affiliates
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
@@ -47,6 +47,8 @@ FSP_HEADER
4747
* Typedef definitions
4848
**********************************************************************************************************************/
4949

50+
#ifndef BSP_OVERRIDE_CAN_EVENT_T
51+
5052
/** CAN event codes */
5153
typedef enum e_can_event
5254
{
@@ -65,6 +67,8 @@ typedef enum e_can_event
6567
CAN_EVENT_FIFO_MESSAGE_LOST = 0x4000, ///< Receive FIFO overrun.
6668
} can_event_t;
6769

70+
#endif
71+
6872
/** CAN Operation modes */
6973
typedef enum e_can_operation_mode
7074
{
@@ -88,6 +92,8 @@ typedef enum e_can_test_mode
8892
CAN_TEST_MODE_INTERNAL_BUS = 0x80 ///< CANFD Internal CAN Bus Communication Test Mode.
8993
} can_test_mode_t;
9094

95+
#ifndef BSP_OVERRIDE_CAN_INFO_T
96+
9197
/** CAN status info */
9298
typedef struct st_can_info
9399
{
@@ -99,20 +105,30 @@ typedef struct st_can_info
99105
uint32_t error_code; ///< Error code, cleared after reading.
100106
} can_info_t;
101107

108+
#endif
109+
110+
#ifndef BSP_OVERRIDE_CAN_ID_MODE_T
111+
102112
/** CAN ID modes */
103113
typedef enum e_can_id_mode
104114
{
105115
CAN_ID_MODE_STANDARD, ///< Standard IDs of 11 bits used.
106116
CAN_ID_MODE_EXTENDED, ///< Extended IDs of 29 bits used.
107117
} can_id_mode_t;
108118

119+
#endif
120+
121+
#ifndef BSP_OVERRIDE_CAN_FRAME_TYPE_T
122+
109123
/** CAN frame types */
110124
typedef enum e_can_frame_type
111125
{
112126
CAN_FRAME_TYPE_DATA, ///< Data frame.
113127
CAN_FRAME_TYPE_REMOTE, ///< Remote frame.
114128
} can_frame_type_t;
115129

130+
#endif
131+
116132
/** CAN bit rate configuration. */
117133
typedef struct st_can_bit_timing_cfg
118134
{
@@ -122,6 +138,8 @@ typedef struct st_can_bit_timing_cfg
122138
uint32_t synchronization_jump_width; ///< Synchronization jump width.
123139
} can_bit_timing_cfg_t;
124140

141+
#ifndef BSP_OVERRIDE_CAN_FRAME_T
142+
125143
/** CAN data Frame */
126144
typedef struct st_can_frame
127145
{
@@ -133,6 +151,10 @@ typedef struct st_can_frame
133151
uint8_t data[CAN_DATA_BUFFER_LENGTH]; ///< CAN data.
134152
} can_frame_t;
135153

154+
#endif
155+
156+
#ifndef BSP_OVERRIDE_CAN_CALLBACK_ARGS_T
157+
136158
/** CAN callback parameter definition */
137159
typedef struct st_can_callback_args
138160
{
@@ -148,6 +170,8 @@ typedef struct st_can_callback_args
148170
can_frame_t frame; ///< Received frame data.
149171
} can_callback_args_t;
150172

173+
#endif
174+
151175
/** CAN Configuration */
152176
typedef struct st_can_cfg
153177
{

drivers/ra/fsp/inc/api/r_comparator_api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ typedef enum e_comparator_mode
5252
/** Trigger type: rising edge, falling edge, both edges, low level. */
5353
typedef enum e_comparator_trigger
5454
{
55-
COMPARATOR_TRIGGER_NO_EDGE = 0, ///< None edge trigger
5655
COMPARATOR_TRIGGER_RISING = 1, ///< Rising edge trigger
5756
COMPARATOR_TRIGGER_FALLING = 2, ///< Falling edge trigger
5857
COMPARATOR_TRIGGER_BOTH_EDGE = 3, ///< Both edges trigger

drivers/ra/fsp/inc/api/r_dac_api.h

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

drivers/ra/fsp/inc/api/r_display_api.h

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

drivers/ra/fsp/inc/api/r_elc_api.h

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

drivers/ra/fsp/inc/api/r_ether_api.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
2+
* Copyright (c) 2020 - 2025 Renesas Electronics Corporation and/or its affiliates
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
@@ -96,7 +96,13 @@ typedef enum e_ether_event
9696
ETHER_EVENT_WAKEON_LAN, ///< Magic packet detection event
9797
ETHER_EVENT_LINK_ON, ///< Link up detection event
9898
ETHER_EVENT_LINK_OFF, ///< Link down detection event
99-
ETHER_EVENT_INTERRUPT, ///< Interrupt event
99+
ETHER_EVENT_INTERRUPT, ///< DEPRECATED Interrupt event
100+
ETHER_EVENT_RX_COMPLETE, ///< Receive complete event.
101+
ETHER_EVENT_RX_MESSAGE_LOST, ///< Receive FIFO overflow or Receive descriptor is full.
102+
ETHER_EVENT_TX_COMPLETE, ///< Transmit complete event.
103+
ETHER_EVENT_TX_BUFFER_EMPTY, ///< Transmit descriptor or FIFO is empty.
104+
ETHER_EVENT_TX_ABORTED, ///< Transmit abort event.
105+
ETHER_EVENT_ERR_GLOBAL, ///< Global error has occurred.
100106
} ether_event_t;
101107
#endif
102108

drivers/ra/fsp/inc/api/r_ether_phy_api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
2+
* Copyright (c) 2020 - 2025 Renesas Electronics Corporation and/or its affiliates
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
@@ -53,6 +53,7 @@ typedef enum e_ether_phy_lsi_type
5353
ETHER_PHY_LSI_TYPE_KSZ8041 = 2, ///< Select configuration for KSZ8041.
5454
ETHER_PHY_LSI_TYPE_DP83620 = 3, ///< Select configuration for DP83620.
5555
ETHER_PHY_LSI_TYPE_ICS1894 = 4, ///< Select configuration for ICS1894.
56+
ETHER_PHY_LSI_TYPE_GPY111 = 5, ///< Select configuration for GPY111.
5657
ETHER_PHY_LSI_TYPE_CUSTOM = 0xFFU, ///< Select configuration for User custom.
5758
} ether_phy_lsi_type_t;
5859
#endif

drivers/ra/fsp/inc/api/r_external_irq_api.h

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

0 commit comments

Comments
 (0)