Обновление
This commit is contained in:
parent
a7f9844a50
commit
1ceff47557
|
|
@ -13,7 +13,7 @@
|
||||||
#include "fc7xxx_driver_lin.h"
|
#include "fc7xxx_driver_lin.h"
|
||||||
|
|
||||||
// LIN protocol ID definition
|
// LIN protocol ID definition
|
||||||
#define LIN_MASTER_SEND_ID (0x01U)
|
#define LIN_MASTER_SEND_ID (0x3FU)
|
||||||
#define LIN_MASTER_RECEIVE_ID (0x02U)
|
#define LIN_MASTER_RECEIVE_ID (0x02U)
|
||||||
#define LIN_MASTER_GO_TO_SLEEP_ID (0x03U)
|
#define LIN_MASTER_GO_TO_SLEEP_ID (0x03U)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,10 @@ void GetLinCallbackHandler(tLinFlagchip *env, uint8_t u8LinIndex, void *state) {
|
||||||
if (pXferState->currentId == LIN_MASTER_SEND_ID) {
|
if (pXferState->currentId == LIN_MASTER_SEND_ID) {
|
||||||
// Call to Send Frame DATA Function
|
// Call to Send Frame DATA Function
|
||||||
LIN_DrvSendFrameNonBlocking(u8LinIndex, env->g_aTxBuffer, sizeof(env->g_aTxBuffer));
|
LIN_DrvSendFrameNonBlocking(u8LinIndex, env->g_aTxBuffer, sizeof(env->g_aTxBuffer));
|
||||||
} else if (pXferState->currentId == LIN_MASTER_RECEIVE_ID) {
|
//} else if (pXferState->currentId == LIN_MASTER_RECEIVE_ID) {
|
||||||
LIN_DrvReceiveFrameNonBlocking(u8LinIndex, env->g_aRxBuffer, sizeof(env->g_aRxBuffer));
|
// LIN_DrvReceiveFrameNonBlocking(u8LinIndex, env->g_aRxBuffer, sizeof(env->g_aRxBuffer));
|
||||||
} else if (pXferState->currentId == LIN_MASTER_GO_TO_SLEEP_ID) {
|
//} else if (pXferState->currentId == LIN_MASTER_GO_TO_SLEEP_ID) {
|
||||||
LIN_DrvGoToSleepMode(u8LinIndex);
|
// LIN_DrvGoToSleepMode(u8LinIndex);
|
||||||
} else {
|
} else {
|
||||||
// Misra check.
|
// Misra check.
|
||||||
uint8_t data = LIN_TIMEOUT;
|
uint8_t data = LIN_TIMEOUT;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue