Announcing an EventFramework for AVR's

7 views
Skip to first unread message

David Lyon

unread,
Jan 24, 2014, 1:43:05 AM1/24/14
to clix...@googlegroups.com

Hi all,

This week has been pretty busy in the background.

We've got a new EventFramework being worked on making it easier than any other system to code up applications for embedded processors.

The code is currently here:

 - https://github.com/clixx-io/clixx.io/tree/master/eventframework

This is an example of what the code looks like:

/* Simple Timer

A trivial simple example of using circuits and timers.
*/

#include <stdio.h>
#include "clixxIO.hpp"

class App : public clixxIOApp{

  public:
  
    void timerevent(){
        /* hello Event handler

Fired once every second.
*/

        printf("Timer Callback\n");
    };
    
    void started(){
        /* started Event handler

Setup a simple timer to fire every second.
*/
        printf("Application in startup event\n");

        addTimerEvent(5, (void (*)()) &App::timerevent);
    };
    
};

// Final statement should be => App().run()
main(){

  App m;

  m.run();

}

Reply all
Reply to author
Forward
0 new messages