0.1.1
- исправлена интеграция с библиотекой MyLibs - добавлено обхъявление MODBUS_SlaveStart в заголовочный файл
This commit is contained in:
@@ -86,7 +86,8 @@ MODBUS_SlaveStart(&hmodbus1, NULL);
|
|||||||
void MODBUS_SetupHardware(RS_HandleTypeDef *hmodbus, UART_HandleTypeDef *huart, TIM_HandleTypeDef *htim);
|
void MODBUS_SetupHardware(RS_HandleTypeDef *hmodbus, UART_HandleTypeDef *huart, TIM_HandleTypeDef *htim);
|
||||||
/* Программная конфигурация модбас. */
|
/* Программная конфигурация модбас. */
|
||||||
void MODBUS_Config(RS_HandleTypeDef *hmodbus, uint8_t ID, uint16_t Timeout, uint8_t master);
|
void MODBUS_Config(RS_HandleTypeDef *hmodbus, uint8_t ID, uint16_t Timeout, uint8_t master);
|
||||||
|
/* Запуск слейв устройства */
|
||||||
|
void MODBUS_SlaveStart(RS_HandleTypeDef *hmodbus, RS_MsgTypeDef *modbus_msg);
|
||||||
/** MODBUS_INIT_FUNCTIONS
|
/** MODBUS_INIT_FUNCTIONS
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -87,7 +87,15 @@
|
|||||||
#define RS_EnableTransmit()
|
#define RS_EnableTransmit()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __MYLIBS_INCLUDE_H_
|
#ifndef printf_rs_err
|
||||||
|
#define printf_rs_err(...)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef printf_rs
|
||||||
|
#define printf_rs(...)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __MYLIBS_CONFIG_H_
|
||||||
// дефайны из mylibs include
|
// дефайны из mylibs include
|
||||||
static int dummy;
|
static int dummy;
|
||||||
#define TrackerTypeDef(num_user_vars) void *
|
#define TrackerTypeDef(num_user_vars) void *
|
||||||
@@ -110,14 +118,8 @@ static int dummy;
|
|||||||
#define TrackerClear_Warn(_cntstruct_)
|
#define TrackerClear_Warn(_cntstruct_)
|
||||||
#define TrackerClear_User(_cntstruct_)
|
#define TrackerClear_User(_cntstruct_)
|
||||||
#define TrackerClear_UserAll(_cntstruct_)
|
#define TrackerClear_UserAll(_cntstruct_)
|
||||||
|
#else
|
||||||
#ifndef printf_rs_err
|
#include "mylibs_include.h"
|
||||||
#define printf_rs_err(...)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef printf_rs
|
|
||||||
#define printf_rs(...)
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef RS_USER_VARS_NUMB
|
#ifndef RS_USER_VARS_NUMB
|
||||||
|
|||||||
Reference in New Issue
Block a user