You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// 2022 Ahoy, https://www.mikrocontroller.net/topic/525778
|
|
|
|
// Creative Commons - http://creativecommons.org/licenses/by-nc-sa/3.0/de/
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include "utils/dbg.h"
|
|
|
|
#include "app.h"
|
|
|
|
#include "config/config.h"
|
|
|
|
|
|
|
|
|
|
|
|
app myApp;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
IRAM_ATTR void handleIntr(void) {
|
|
|
|
myApp.handleIntr();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
void setup() {
|
|
|
|
myApp.setup();
|
|
|
|
|
|
|
|
// TODO: move to HmRadio
|
|
|
|
attachInterrupt(digitalPinToInterrupt(myApp.getIrqPin()), handleIntr, FALLING);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
void loop() {
|
|
|
|
myApp.loop();
|
|
|
|
}
|