parent
4bb353ac65
commit
78e1702309
|
@ -14,8 +14,6 @@
|
|||
#include "os_access.h"
|
||||
#include "crc.h"
|
||||
#include "serial_can.h"
|
||||
#include "can.h"
|
||||
#include "can_msg_tx.h"
|
||||
|
||||
#if HAL_USE_CAN
|
||||
static CanStreamer streamer;
|
||||
|
@ -23,6 +21,11 @@ static CanStreamerState state(&streamer);
|
|||
static CanTsListener listener;
|
||||
#endif // HAL_USE_CAN
|
||||
|
||||
|
||||
#if HAL_USE_CAN || EFI_UNIT_TEST
|
||||
#include "can.h"
|
||||
#include "can_msg_tx.h"
|
||||
|
||||
int CanStreamerState::sendFrame(const IsoTpFrameHeader & header, const uint8_t *data, int num, can_sysinterval_t timeout) {
|
||||
int dlc = 8; // standard 8 bytes
|
||||
CanTxMessage txmsg(CAN_ECU_SERIAL_TX_ID, dlc, false);
|
||||
|
@ -360,3 +363,7 @@ msg_t canStreamReceiveTimeout(size_t *np, uint8_t *rxbuf, sysinterval_t timeout)
|
|||
}
|
||||
|
||||
#endif /* HAL_USE_CAN */
|
||||
|
||||
|
||||
|
||||
#endif // HAL_USE_CAN || EFI_UNIT_TEST
|
||||
|
|
Loading…
Reference in New Issue