source/MQTTButton.c
/* global functions ********************************************************* */
/*
 * @brief Initializes the buttons
 *
 * @return NONE
 */
global functions
@brief Initializes the buttons

@return NONE
global functions @brief Initializes the buttons @return NONE
Retcode_T MQTTButton_Init(void * CmdProcessorHandle)
{
	AppCmdProcessor = (CmdProcessor_T *) CmdProcessorHandle;
	Retcode_T returnVal = RETCODE_OK;
	returnVal = BSP_Button_Connect();
	if (RETCODE_OK != returnVal) {
		return returnVal;
	}
	returnVal = BSP_Button_Enable((uint32_t) BSP_XDK_BUTTON_1, button1Callback);
	if (RETCODE_OK != returnVal) {
		return returnVal;
	}
	returnVal = BSP_Button_Enable((uint32_t) BSP_XDK_BUTTON_2, button2Callback);
	if (RETCODE_OK != returnVal) {
		return returnVal;
	}
	return RETCODE_OK;
}
Retcode_T MQTTButton_Init ( void * CmdProcessorHandle ) { AppCmdProcessor = ( CmdProcessor_T * ) CmdProcessorHandle ; Retcode_T returnVal = RETCODE_OK ; returnVal = BSP_Button_Connect ( ) ; if ( RETCODE_OK != returnVal ) { return returnVal ; } returnVal = BSP_Button_Enable ( ( uint32_t ) BSP_XDK_BUTTON_1 , button1Callback ) ; if ( RETCODE_OK != returnVal ) { return returnVal ; } returnVal = BSP_Button_Enable ( ( uint32_t ) BSP_XDK_BUTTON_2 , button2Callback ) ; if ( RETCODE_OK != returnVal ) { return returnVal ; } return RETCODE_OK ; }
global functions 
 @brief Initializes the buttons
global functions @brief Initializes the buttons