Morse Micro IoT SDK  2.9.7
cplusplus_demo.cpp File Reference

Detailed Description

Morse Micro C++ example application.

This file demonstrates how to build and include C++ files with the MM-IoT-SDK. The application demonstrates how to use C++ standard library features such as iostream and how to use C++ exceptions. C++ exceptions are not enabled by default in the MM-IoT-SDK framework by default due to the high cost in terms of code size of the default exception handlers. You can enable support for exception handling by setting CSPECS to nosys.specs as shown in app.mk. You can exclude this change to reduce the code size with the implication being that any exception will simply exit the application.

Definition in file cplusplus_demo.cpp.

#include <iostream>
#include "mmosal.h"
Include dependency graph for cplusplus_demo.cpp:

Go to the source code of this file.

Data Structures

class  ClassDemo
 The ClassDemo class. More...
 

Functions

void app_init (void)
 Main entry point to the application. More...
 

Variables

ClassDemo global_demo ("global demo class")
 A global instance of the ClassDemo class.
 

Function Documentation

◆ app_init()

void app_init ( void  )

Main entry point to the application.

This will be invoked in a thread once operating system and hardware initialization has completed.

Definition at line 90 of file cplusplus_demo.cpp.