theCore C++ embedded framework
particle_electron/platform.cpp File Reference
#include "application.h"
#include "stdarg.h"
#include "aux/platform_defines.hpp"
Include dependency graph for particle_electron/platform.cpp:

Data Structures

struct  tmr_cb
 Struct-container for timer callback and corresponding object. More...
 

Namespaces

 ecl
 
 ecl::systmr
 

Functions

 __attribute__ ((weak)) void systmr_handler()
 User-overridable timer event handler. More...
 
void ecl::systmr::enable ()
 Enables timer, start counting. More...
 
void ecl::systmr::disable ()
 Disables timer, stop counting. More...
 
uint32_t ecl::systmr::speed ()
 Gets speed in which timer generate events. More...
 
uint32_t ecl::systmr::events ()
 Gets amount of events occurred so far. More...
 

Variables

static struct tmr_cb cb_obj
 
static constexpr auto tmr_speed_hz = THECORE_SYSTMR_FREQ
 Timer speed in hertz. More...
 
static Timer particle_tmr {1000 / tmr_speed_hz, &tmr_cb::on_timeout, cb_obj}
 Particle timer object, used as system timer. More...
 

Function Documentation

◆ __attribute__()

__attribute__ ( (weak)  )

User-overridable timer event handler.

Variable Documentation

◆ cb_obj

struct tmr_cb cb_obj
static

◆ tmr_speed_hz

constexpr auto tmr_speed_hz = THECORE_SYSTMR_FREQ
static

Timer speed in hertz.

◆ particle_tmr

Timer particle_tmr {1000 / tmr_speed_hz, &tmr_cb::on_timeout, cb_obj}
static

Particle timer object, used as system timer.