demo/uart_blaster/main.c

/*
* EVALUATION AND USE OF THIS SOFTWARE IS SUBJECT TO THE TERMS AND
* CONDITIONS OF THE CONTROLLING LICENSE AGREEMENT FOUND AT LICENSE.md
* IN THIS SDK. IF YOU DO NOT AGREE TO THE LICENSE TERMS AND CONDITIONS,
* PLEASE RETURN ALL SOURCE FILES TO SILICON LABORATORIES.
* (c) Copyright 2018, Silicon Laboratories Inc. All rights reserved.
*/
/* 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();
}