monoZ docs
MZ_timer_example.h File Reference

This is an example of how to use a timer and print in CLI using Application thread. More...

#include "MZ_error_handler.h"

Go to the source code of this file.

Macros

#define MZ_TIMER_EXAMPLE_H_
 Defines Monoz Timer Example. More...
 

Functions

mz_error_t timer_app_init (void)
 Initiate the Timer App and creates the thread for timer application. More...
 

Detailed Description

This is an example of how to use a timer and print in CLI using Application thread.

Author
Mz_click
Date
Apr 28 2021

Definition in file MZ_timer_example.h.

Macro Definition Documentation

◆ MZ_TIMER_EXAMPLE_H_

#define MZ_TIMER_EXAMPLE_H_

Defines Monoz Timer Example.

Definition at line 10 of file MZ_timer_example.h.

Function Documentation

◆ timer_app_init()

mz_error_t timer_app_init ( void  )

Initiate the Timer App and creates the thread for timer application.

Returns
_ret returns the status of app thread creation(MZ_OK/MZ_FAIL)
Note
semaphore is created for lock the process when multiple processes are in run status

Definition at line 79 of file MZ_timer_example.c.