apps/examples/modbusmaster/mbmaster_main.c: eMBMasterRegHoldingCB cannot be static.

This commit is contained in:
Alan Carvalho de Assis 2019-03-07 16:11:45 -06:00 committed by Gregory Nutt
parent 53e6f4bf13
commit c019c9d7af
2 changed files with 28 additions and 26 deletions

View File

@ -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,
eMBRegisterMode mode)
{

View File

@ -170,7 +170,7 @@ eMBErrorCode eMBMasterTCPInit(uint16_t usTCPPort);
* hardware resources. It must only be called when the protocol stack
* 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.
*
* Returned Value:
@ -400,7 +400,8 @@ eMBErrorCode eMBMasterRegDiscreteCB(uint8_t *pucRegBuffer, uint16_t usAddress,
/****************************************************************************
* 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 /* __APPS_INCLUDE_MODBUS_MB_M_H */