demo/uart_blaster/main.c

/*******************************************************************************
* # License
* Copyright 2019 Silicon Laboratories Inc. www.silabs.com
*******************************************************************************
*
* The licensor of this software is Silicon Laboratories Inc. Your use of this
* software is governed by the terms of Silicon Labs Master Software License
* Agreement (MSLA) available at
* www.silabs.com/about-us/legal/master-software-license-agreement. This
* software is distributed to you in Source Code format and is governed by the
* sections of the MSLA applicable to Source Code.
*
******************************************************************************/
/* Documentation for this app is available online.
* See https://docs.silabs.com/gecko-os/4/standard/latest/sdk/examples/demo/uart-blaster
*/
#include "uart_blaster_internal.h"
/*************************************************************************************************/
void gos_app_init(void)
{
gos_result_t result;
GOS_LOG("\r\nUART Blaster Demo starting ...");
if(GOS_FAILED(result, gos_load_app_settings_once("settings.ini", SETTING_VERSION)))
{
GOS_LOG("Failed to load app settings, err:%d", result);
}
GOS_NVM_GET(BLASTER, SETTINGS, blaster_settings);
if(GOS_FAILED(result, uart_blaster_init()))
{
GOS_LOG("Failed to init blaster lib, err:%d", result);
}
commands_print_help();
}