перестал работать проект для 002B
This commit is contained in:
@@ -40,8 +40,8 @@
|
||||
#define rs_huart huart1
|
||||
#define rs_htim htim14
|
||||
|
||||
#define RS_EnableReceive() GPIOB->ODR |= GPIO_PIN_3
|
||||
#define RS_EnableTransmit() GPIOB->ODR &= ~GPIO_PIN_3
|
||||
//#define RS_EnableReceive() GPIOB->ODR |= GPIO_PIN_3
|
||||
//#define RS_EnableTransmit() GPIOB->ODR &= ~GPIO_PIN_3
|
||||
/**
|
||||
* @brief Поменять комманды 0x03 и 0x04 местами (для LabView терминалки от двигателей)
|
||||
* @details Терминалка от двигателей использует для чтения регистров комманду R_HOLD_REGS вместо R_IN_REGS
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "modbus.h"
|
||||
|
||||
#include "crc_algs.h"
|
||||
#include "string.h"
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
@@ -43,7 +44,7 @@
|
||||
|
||||
|
||||
/* Clear message-uart buffer */
|
||||
#define RS_Clear_Buff(_buff_) for(int i=0; i<MSG_SIZE_MAX;i++) _buff_[i] = NULL
|
||||
#define RS_Clear_Buff(_buff_) memset(_buff_, 0, MSG_SIZE_MAX)
|
||||
|
||||
/* Set/Reset flags */
|
||||
#define RS_Set_Free(_hRS_) _hRS_->f.RS_Busy = 0
|
||||
|
||||
Reference in New Issue
Block a user