1
1
/*
2
- * Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates
2
+ * Copyright (c) 2020 - 2025 Renesas Electronics Corporation and/or its affiliates
3
3
*
4
4
* SPDX-License-Identifier: BSD-3-Clause
5
5
*/
@@ -47,6 +47,8 @@ FSP_HEADER
47
47
* Typedef definitions
48
48
**********************************************************************************************************************/
49
49
50
+ #ifndef BSP_OVERRIDE_CAN_EVENT_T
51
+
50
52
/** CAN event codes */
51
53
typedef enum e_can_event
52
54
{
@@ -65,6 +67,8 @@ typedef enum e_can_event
65
67
CAN_EVENT_FIFO_MESSAGE_LOST = 0x4000 , ///< Receive FIFO overrun.
66
68
} can_event_t ;
67
69
70
+ #endif
71
+
68
72
/** CAN Operation modes */
69
73
typedef enum e_can_operation_mode
70
74
{
@@ -88,6 +92,8 @@ typedef enum e_can_test_mode
88
92
CAN_TEST_MODE_INTERNAL_BUS = 0x80 ///< CANFD Internal CAN Bus Communication Test Mode.
89
93
} can_test_mode_t ;
90
94
95
+ #ifndef BSP_OVERRIDE_CAN_INFO_T
96
+
91
97
/** CAN status info */
92
98
typedef struct st_can_info
93
99
{
@@ -99,20 +105,30 @@ typedef struct st_can_info
99
105
uint32_t error_code ; ///< Error code, cleared after reading.
100
106
} can_info_t ;
101
107
108
+ #endif
109
+
110
+ #ifndef BSP_OVERRIDE_CAN_ID_MODE_T
111
+
102
112
/** CAN ID modes */
103
113
typedef enum e_can_id_mode
104
114
{
105
115
CAN_ID_MODE_STANDARD , ///< Standard IDs of 11 bits used.
106
116
CAN_ID_MODE_EXTENDED , ///< Extended IDs of 29 bits used.
107
117
} can_id_mode_t ;
108
118
119
+ #endif
120
+
121
+ #ifndef BSP_OVERRIDE_CAN_FRAME_TYPE_T
122
+
109
123
/** CAN frame types */
110
124
typedef enum e_can_frame_type
111
125
{
112
126
CAN_FRAME_TYPE_DATA , ///< Data frame.
113
127
CAN_FRAME_TYPE_REMOTE , ///< Remote frame.
114
128
} can_frame_type_t ;
115
129
130
+ #endif
131
+
116
132
/** CAN bit rate configuration. */
117
133
typedef struct st_can_bit_timing_cfg
118
134
{
@@ -122,6 +138,8 @@ typedef struct st_can_bit_timing_cfg
122
138
uint32_t synchronization_jump_width ; ///< Synchronization jump width.
123
139
} can_bit_timing_cfg_t ;
124
140
141
+ #ifndef BSP_OVERRIDE_CAN_FRAME_T
142
+
125
143
/** CAN data Frame */
126
144
typedef struct st_can_frame
127
145
{
@@ -133,6 +151,10 @@ typedef struct st_can_frame
133
151
uint8_t data [CAN_DATA_BUFFER_LENGTH ]; ///< CAN data.
134
152
} can_frame_t ;
135
153
154
+ #endif
155
+
156
+ #ifndef BSP_OVERRIDE_CAN_CALLBACK_ARGS_T
157
+
136
158
/** CAN callback parameter definition */
137
159
typedef struct st_can_callback_args
138
160
{
@@ -148,6 +170,8 @@ typedef struct st_can_callback_args
148
170
can_frame_t frame ; ///< Received frame data.
149
171
} can_callback_args_t ;
150
172
173
+ #endif
174
+
151
175
/** CAN Configuration */
152
176
typedef struct st_can_cfg
153
177
{
0 commit comments