Обновление

This commit is contained in:
cfif 2025-11-19 10:59:34 +03:00
parent a7f9844a50
commit 1ceff47557
2 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@
#include "fc7xxx_driver_lin.h"
// 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_GO_TO_SLEEP_ID (0x03U)

View File

@ -28,10 +28,10 @@ void GetLinCallbackHandler(tLinFlagchip *env, uint8_t u8LinIndex, void *state) {
if (pXferState->currentId == LIN_MASTER_SEND_ID) {
// Call to Send Frame DATA Function
LIN_DrvSendFrameNonBlocking(u8LinIndex, env->g_aTxBuffer, sizeof(env->g_aTxBuffer));
} else if (pXferState->currentId == LIN_MASTER_RECEIVE_ID) {
LIN_DrvReceiveFrameNonBlocking(u8LinIndex, env->g_aRxBuffer, sizeof(env->g_aRxBuffer));
} else if (pXferState->currentId == LIN_MASTER_GO_TO_SLEEP_ID) {
LIN_DrvGoToSleepMode(u8LinIndex);
//} else if (pXferState->currentId == LIN_MASTER_RECEIVE_ID) {
// LIN_DrvReceiveFrameNonBlocking(u8LinIndex, env->g_aRxBuffer, sizeof(env->g_aRxBuffer));
//} else if (pXferState->currentId == LIN_MASTER_GO_TO_SLEEP_ID) {
// LIN_DrvGoToSleepMode(u8LinIndex);
} else {
// Misra check.
uint8_t data = LIN_TIMEOUT;