Skip to content

Commit 8622f66

Browse files
committed
Resolved review comments
1 parent d4eba5c commit 8622f66

File tree

11 files changed

+20
-84
lines changed

11 files changed

+20
-84
lines changed

drivers/include/drivers/RawCAN.h

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,14 @@
3131
namespace mbed {
3232
class RawCAN: public CAN {
3333
public:
34-
RawCAN(PinName rd, PinName td);
34+
using CAN::CAN;
3535

36-
/** Initialize CAN interface and set the frequency
37-
*
38-
* @param rd the read pin
39-
* @param td the transmit pin
40-
* @param hz the bus frequency in hertz
36+
/** Overriding lock apis to create unlocked CAN
4137
*/
42-
RawCAN(PinName rd, PinName td, int hz);
4338

44-
/** Initialize CAN interface
45-
*
46-
* @param pinmap reference to structure which holds static pinmap
47-
* @param td the transmit pin
48-
* @param hz the bus frequency in hertz
49-
*/
50-
51-
virtual ~RawCAN() {};
39+
void lock() override {};
40+
void unlock() override {};
5241

53-
/** Read a CANMessage from the bus.
54-
*
55-
* @param msg A CANMessage to read to.
56-
* @param handle message filter handle (0 for any message)
57-
*
58-
* @returns
59-
* 0 if no message arrived,
60-
* 1 if message arrived
61-
*/
62-
int read(CANMessage &msg, int handle = 0);
6342
};
6443
}
6544

drivers/source/RawCAN.cpp

Lines changed: 0 additions & 43 deletions
This file was deleted.

targets/TARGET_STM/TARGET_STM32F0/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct can_s {
155155
CAN_HandleTypeDef CanHandle;
156156
int index;
157157
int hz;
158-
int rxIrqStatus;
158+
int rxIrqEnabled;
159159
};
160160
#endif
161161

targets/TARGET_STM/TARGET_STM32F1/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ struct can_s {
145145
CAN_HandleTypeDef CanHandle;
146146
int index;
147147
int hz;
148-
int rxIrqStatus;
148+
int rxIrqEnabled;
149149
};
150150
#endif
151151

targets/TARGET_STM/TARGET_STM32F2/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ struct can_s {
154154
CAN_HandleTypeDef CanHandle;
155155
int index;
156156
int hz;
157-
int rxIrqStatus;
157+
int rxIrqEnabled;
158158
};
159159
#endif
160160

targets/TARGET_STM/TARGET_STM32F3/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct can_s {
142142
CAN_HandleTypeDef CanHandle;
143143
int index;
144144
int hz;
145-
int rxIrqStatus;
145+
int rxIrqEnabled;
146146
};
147147
#endif
148148

targets/TARGET_STM/TARGET_STM32F4/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ struct can_s {
157157
CAN_HandleTypeDef CanHandle;
158158
int index;
159159
int hz;
160-
int rxIrqStatus;
160+
int rxIrqEnabled;
161161
};
162162
#endif
163163

targets/TARGET_STM/TARGET_STM32F7/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ struct can_s {
166166
CAN_HandleTypeDef CanHandle;
167167
int index;
168168
int hz;
169-
int rxIrqStatus;
169+
int rxIrqEnabled;
170170
};
171171
#endif
172172

targets/TARGET_STM/TARGET_STM32L4/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ struct can_s {
156156
CAN_HandleTypeDef CanHandle;
157157
int index;
158158
int hz;
159-
int rxIrqStatus;
159+
int rxIrqEnabled;
160160
};
161161
#endif
162162

targets/TARGET_STM/TARGET_STM32L5/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ struct can_s {
156156
CAN_HandleTypeDef CanHandle;
157157
int index;
158158
int hz;
159-
int rxIrqStatus;
159+
int rxIrqEnabled;
160160
};
161161
#endif
162162

0 commit comments

Comments
 (0)