Bluetooth_Mesh_Network_Project_Source/Mesh_Comm_Files/app.c
void BleApp_Init(void)
{      
        /* UI */
    shell_init("BLE MESH >>> ");
    shell_register_function((cmd_tbl_t *)&mMeshPublishCmd);
    shell_register_function((cmd_tbl_t *)&mMeshSubscribeCmd);
    shell_register_function((cmd_tbl_t *)&mMeshRelayCmd);
    shell_register_function((cmd_tbl_t *)&mMeshTtlCmd);
    shell_register_function((cmd_tbl_t *)&mMeshLightCmd);
    shell_register_function((cmd_tbl_t *)&mMeshLogCmd);
    shell_register_function((cmd_tbl_t *)&mMeshCustomDataTxCmd);
    shell_register_function((cmd_tbl_t *)&mMeshCustomDataPollRateCmd);
    shell_register_function((cmd_tbl_t *)&mMeshCustomSenPollRateCmd);
    shell_register_function((cmd_tbl_t *)&mMeshCustomSenPower);
#if 0
    gpio_pin_config_t pin_config;
    port_pin_config_t i2c_pin_config = {0};

    /* Config pin mux as gpio */
    i2c_pin_config.pullSelect = kPORT_PullUp;
    i2c_pin_config.mux = kPORT_MuxAsGpio;

    pin_config.pinDirection = kGPIO_DigitalOutput;
    pin_config.outputLogic = 1U;

    PORT_SetPinConfig(UART_TX_IND_GPIO, UART_TX_IND_GPIO_PIN, &i2c_pin_config);

	GPIO_PinInit(UART_TX_IND_GPIO, UART_TX_IND_GPIO_PIN, &pin_config);
	uint32_t test = 100;

	GPIO_WritePinOutput(UART_TX_IND_GPIO, UART_TX_IND_GPIO_PIN, 0U);
#endif

}
/*! *********************************************************************************
* \brief    Initializes application specific functionality before the BLE stack init.
*
********************************************************************************** */
\brief    Initializes application specific functionality before the BLE stack init.
\ brief Initializes application specific functionality before the BLE stack init .
void BleApp_Init(void)
{      
    shell_init("BLE MESH >>> ");
    shell_register_function((cmd_tbl_t *)&mMeshPublishCmd);
    shell_register_function((cmd_tbl_t *)&mMeshSubscribeCmd);
    shell_register_function((cmd_tbl_t *)&mMeshRelayCmd);
    shell_register_function((cmd_tbl_t *)&mMeshTtlCmd);
    shell_register_function((cmd_tbl_t *)&mMeshLightCmd);
    shell_register_function((cmd_tbl_t *)&mMeshLogCmd);
    shell_register_function((cmd_tbl_t *)&mMeshCustomDataTxCmd);
    shell_register_function((cmd_tbl_t *)&mMeshCustomDataPollRateCmd);
    shell_register_function((cmd_tbl_t *)&mMeshCustomSenPollRateCmd);
    shell_register_function((cmd_tbl_t *)&mMeshCustomSenPower);
#if 0
    gpio_pin_config_t pin_config;
    port_pin_config_t i2c_pin_config = {0};
    i2c_pin_config.pullSelect = kPORT_PullUp;
    i2c_pin_config.mux = kPORT_MuxAsGpio;
    pin_config.pinDirection = kGPIO_DigitalOutput;
    pin_config.outputLogic = 1U;
    PORT_SetPinConfig(UART_TX_IND_GPIO, UART_TX_IND_GPIO_PIN, &i2c_pin_config);
	GPIO_PinInit(UART_TX_IND_GPIO, UART_TX_IND_GPIO_PIN, &pin_config);
	uint32_t test = 100;
	GPIO_WritePinOutput(UART_TX_IND_GPIO, UART_TX_IND_GPIO_PIN, 0U);
#endif
}
void BleApp_Init ( void ) { shell_init ( " " ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshPublishCmd ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshSubscribeCmd ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshRelayCmd ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshTtlCmd ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshLightCmd ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshLogCmd ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshCustomDataTxCmd ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshCustomDataPollRateCmd ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshCustomSenPollRateCmd ) ; shell_register_function ( ( cmd_tbl_t * ) & mMeshCustomSenPower ) ; #if 0 gpio_pin_config_t pin_config ; port_pin_config_t i2c_pin_config = { 0 } ; i2c_pin_config . pullSelect = kPORT_PullUp ; i2c_pin_config . mux = kPORT_MuxAsGpio ; pin_config . pinDirection = kGPIO_DigitalOutput ; pin_config . outputLogic = 1U ; PORT_SetPinConfig ( UART_TX_IND_GPIO , UART_TX_IND_GPIO_PIN , & i2c_pin_config ) ; GPIO_PinInit ( UART_TX_IND_GPIO , UART_TX_IND_GPIO_PIN , & pin_config ) ; uint32_t test = 100 ; GPIO_WritePinOutput ( UART_TX_IND_GPIO , UART_TX_IND_GPIO_PIN , 0U ) ; #endif }
\brief    Initializes application specific functionality before the BLE stack init.
\ brief Initializes application specific functionality before the BLE stack init .
/* UI */ /* Config pin mux as gpio */