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/eventframeworkThis 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();
}