intro/hello_world/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/intro/hello-world
*/
#include "gos.h"
#define APPLICATION_START_LINE "\r\n\r\nHello world!!"
/*************************************************************************************************/
void gos_app_init(void)
{
// This is called when the application first starts.
// This is where the application should initialize data structures and register event handlers.
// This API is required.
// Print to the log bus
GOS_LOG(APPLICATION_START_LINE);
}
/*************************************************************************************************/
void gos_app_deinit(void)
{
// This API is called just before the application finishes.
// Anything initialized or allocated by the app should be cleaned here.
// This API is optional.
}
/*************************************************************************************************/
void gos_app_idle(void)
{
// This is called when the event thread has no more pending events.
}