Flipper Zero Firmware
Loading...
Searching...
No Matches
example_event_loop_timer.c File Reference

Example application that demonstrates FuriEventLoop's software timer capability. More...

#include <furi.h>

Data Structures

struct  EventLoopTimerApp
 

Macros

#define TAG   "ExampleEventLoopTimer"
 
#define COUNTDOWN_START_VALUE   (10)
 
#define COUNTDOWN_INTERVAL_MS   (1000)
 

Functions

int32_t example_event_loop_timer_app (void *arg)
 

Detailed Description

Example application that demonstrates FuriEventLoop's software timer capability.

This application prints a countdown from 10 to 0 to the debug output and then exits. Despite only one timer being used in this example for clarity, an event loop instance can have an arbitrary number of independent timers of any type (periodic or one-shot).