Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tick #23

Open
epernia opened this issue Jan 8, 2017 · 1 comment
Open

Tick #23

epernia opened this issue Jan 8, 2017 · 1 comment

Comments

@epernia
Copy link
Contributor

epernia commented Jan 8, 2017

La idea es que este módulo utilice un TIMER a elección, la forma que charlamos por mail sería:

tickConfig( TICK_MS(1) ); o tickStart( TICK_MS(1) );
tickEnabeling( ENABLE );
tickSetCallback( function );

typedef tick_t uint64_t;

#define TICK_MS(t) ((typedef)(t))
#define TICK_S(t)  (((typedef)(t))*1000)

La idea es que a alguien que solo quiere usar el Tick para medir intervalos no tenga que tener en cuenta el callback

@fbucafusco
Copy link

En cualquiera de estas:
#define TICK_MS(t) ((typedef)(t))
#define TICK_S(t) (((typedef)(t))*1000)
Estaria bueno tener el scaling de cuanto es cada tick, en un config.h o algo similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants