apps/examples/modbusmaster/mbmaster_main.c: eMBMasterRegHoldingCB cannot be static.
This commit is contained in:
parent
53e6f4bf13
commit
c019c9d7af
@ -232,7 +232,7 @@ static void mbmaster_showstatistics(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static eMBErrorCode eMBMasterRegHoldingCB(FAR uint8_t *buffer,
|
eMBErrorCode eMBMasterRegHoldingCB(FAR uint8_t *buffer,
|
||||||
uint16_t address, uint16_t nregs,
|
uint16_t address, uint16_t nregs,
|
||||||
eMBRegisterMode mode)
|
eMBRegisterMode mode)
|
||||||
{
|
{
|
||||||
|
@ -170,7 +170,7 @@ eMBErrorCode eMBMasterTCPInit(uint16_t usTCPPort);
|
|||||||
* hardware resources. It must only be called when the protocol stack
|
* hardware resources. It must only be called when the protocol stack
|
||||||
* is disabled.
|
* is disabled.
|
||||||
*
|
*
|
||||||
* \note Note all ports implement this function. A port which wants to
|
* Note that all ports implement this function. A port which wants to
|
||||||
* get an callback must define the macro MB_PORT_HAS_CLOSE to 1.
|
* get an callback must define the macro MB_PORT_HAS_CLOSE to 1.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
@ -400,7 +400,8 @@ eMBErrorCode eMBMasterRegDiscreteCB(uint8_t *pucRegBuffer, uint16_t usAddress,
|
|||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Description:
|
* Description:
|
||||||
* These Modbus functions are called for user when Modbus run in Master Mode.
|
* These Modbus functions are called for user when Modbus run in Master
|
||||||
|
* Mode.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@ -464,3 +465,4 @@ eMBMasterReqErrCode eMBMasterWaitRequestFinish(void);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __APPS_INCLUDE_MODBUS_MB_M_H */
|
#endif /* __APPS_INCLUDE_MODBUS_MB_M_H */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user